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.
This commit is contained in:
parent
c5aa935b16
commit
220cf2c29b
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue