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
|
@ -497,10 +497,13 @@ Zotero.Utilities.Internal = {
|
||||||
// Zotero RDF translator pretended to use it
|
// Zotero RDF translator pretended to use it
|
||||||
item.seeAlso = [];
|
item.seeAlso = [];
|
||||||
|
|
||||||
// Fix linkMode
|
|
||||||
if (zoteroItem.isAttachment()) {
|
if (zoteroItem.isAttachment()) {
|
||||||
item.linkMode = zoteroItem.attachmentLinkMode;
|
item.linkMode = item.uniqueFields.linkMode = zoteroItem.attachmentLinkMode;
|
||||||
item.mimeType = item.contentType;
|
item.mimeType = item.uniqueFields.mimeType = item.contentType;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.note) {
|
||||||
|
item.uniqueFields.note = item.note;
|
||||||
}
|
}
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user