Addresses #1276, RDF export loses collection info

This commit is contained in:
Dan Stillman 2009-01-02 18:55:44 +00:00
parent a161217f3b
commit 3c419f9f5a

View file

@ -2176,6 +2176,7 @@ Zotero.Translate.prototype._exportGetCollection = function() {
if(this._collectionsLeft && this._collectionsLeft.length != 0) {
var returnItem = this._collectionsLeft.shift();
var obj = returnItem.serialize();
obj.id = obj.primary.collectionID;
obj.name = obj.fields.name;
return obj;
}