www

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

commit 220cf2c29b51631c367ead1d085ef37006314ed6
parent c5aa935b1611a743d32bd23886c8fe54f569a6b8
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 21 Mar 2016 00:14:19 -0400

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.

Diffstat:
Mchrome/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 @@ -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;