www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit ff9b7bb1ce107ced3f2a0b18ff206b27e7b994d3
parent 1703dfe5cce855f0cb8d2350096c52d0448c7538
Author: Simon Kornblith <simon@simonster.com>
Date:   Sat,  6 Nov 2010 04:57:16 +0000

fix related item bug that appears to be due to inability to iterate over SJOW


Diffstat:
Mchrome/content/zotero/xpcom/translation/item_local.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/item_local.js b/chrome/content/zotero/xpcom/translation/item_local.js @@ -289,6 +289,7 @@ Zotero.Translate.ItemSaver.prototype = { if(attachment.snapshot === false || !this._saveFiles) { // if snapshot is explicitly set to false, attach as link if(attachment.document) { + Zotero.debug("mime type is "+attachment.document.contentType); Zotero.Attachments.linkFromURL(attachment.document.location.href, parentID, (attachment.mimeType ? attachment.mimeType : attachment.document.contentType), (attachment.title ? attachment.title : attachment.document.title)); @@ -444,7 +445,8 @@ Zotero.Translate.ItemSaver.prototype = { // add see alsos if(item.seeAlso) { - for each(var seeAlso in item.seeAlso) { + for(var i=0; i<item.seeAlso.length; i++) { + var seeAlso = item.seeAlso[i]; if(this._IDMap[seeAlso]) { newItem.addRelatedItem(this._IDMap[seeAlso]); }