From ff9b7bb1ce107ced3f2a0b18ff206b27e7b994d3 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 6 Nov 2010 04:57:16 +0000 Subject: [PATCH] fix related item bug that appears to be due to inability to iterate over SJOW --- chrome/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 index c7732ec3f..2d6aeff6f 100644 --- 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