From 220cf2c29b51631c367ead1d085ef37006314ed6 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 21 Mar 2016 00:14:19 -0400 Subject: [PATCH] Fix export of attachment linkMode/contentType and standalone note text Closes #889 Needs better tests, but that will have to happen on 5.0 in #923. --- chrome/content/zotero/xpcom/utilities_internal.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/utilities_internal.js b/chrome/content/zotero/xpcom/utilities_internal.js index 151f584a05..3747427b94 100644 --- a/chrome/content/zotero/xpcom/utilities_internal.js +++ b/chrome/content/zotero/xpcom/utilities_internal.js @@ -497,10 +497,13 @@ Zotero.Utilities.Internal = { // Zotero RDF translator pretended to use it item.seeAlso = []; - // Fix linkMode if (zoteroItem.isAttachment()) { - item.linkMode = zoteroItem.attachmentLinkMode; - item.mimeType = item.contentType; + item.linkMode = item.uniqueFields.linkMode = zoteroItem.attachmentLinkMode; + item.mimeType = item.uniqueFields.mimeType = item.contentType; + } + + if (item.note) { + item.uniqueFields.note = item.note; } return item;