I could do that tomorrow if you want.
On Aug 2, 2013 12:51 AM, "Aurimas Vinckevicius" <notifications@github.com>
wrote:

> In BibTeX.js:
>
> > +					child = collection.children[ci];
> > +					Zotero.debug("jabref: child " + child.name + " found under " + collection.name);
> > +					break;
> > +				}
> > +				if (!child) {
> > +					child = new Zotero.Collection();
> > +					child.name = collectionPath[cpi];
> > +					child.type = 'collection';
> > +					child.children = [];
> > +
> > +					collection.children.push(child);
> > +					Zotero.debug("jabref: child " + child.name + " created under " + collection.name);
> > +				}
> > +
> > +				collection = child;
> > +			}
>
> Just a suggestion, but wouldn't it be easier to first create a mock
> collection tree as a JS object and then at the end go through it and create
> Zotero collections?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zotero/translators/pull/603/files#r5543232>
> .
>