From 094fe1c6a2a0e06080b91e5161450803a215949d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 28 Oct 2008 05:14:06 +0000 Subject: [PATCH] Fix export error (broken by r3603) --- chrome/content/zotero/xpcom/translate.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js index 4924879ae8..72129d1107 100644 --- a/chrome/content/zotero/xpcom/translate.js +++ b/chrome/content/zotero/xpcom/translate.js @@ -2147,11 +2147,12 @@ Zotero.Translate.prototype._exportToArray = function(returnItem) { // preserve notes if(returnItemArray.note) returnItemArray.uniqueFields.note = returnItemArray.note; - // TODO: Change tag.tag references in scrapers.sql to tag.name + // TODO: Change tag.tag references in translators to tag.name // once translators are 1.5-only + // TODO: Preserve tag type? if (returnItemArray.tags) { for (var i in returnItemArray.tags) { - returnItemArray.tags[i].tag = returnItemArray.tags[i].name; + returnItemArray.tags[i].tag = returnItemArray.tags[i].fields.name; } } @@ -2168,7 +2169,8 @@ Zotero.Translate.prototype._exportGetCollection = function() { if(this._collectionsLeft && this._collectionsLeft.length != 0) { var returnItem = this._collectionsLeft.shift(); - return returnItem.toArray(); + var obj = returnItem.serialize(); + obj.name = obj.fields.name; } }