Save attachments that have snapshot=false when automaticSnapshots and downloadAssociatedFiles are false. This behavior might be confusing, but it's probably the best option given that links are usually important metadata.
This commit is contained in:
parent
125f14efb5
commit
2353e73bf2
1 changed files with 7 additions and 5 deletions
|
@ -315,11 +315,13 @@ Zotero.Translate.ItemSaver.prototype = {
|
||||||
Zotero.debug("Translate: Not adding attachment: no URL specified", 2);
|
Zotero.debug("Translate: Not adding attachment: no URL specified", 2);
|
||||||
} else {
|
} else {
|
||||||
// Determine whether to save an attachment
|
// Determine whether to save an attachment
|
||||||
if(attachment.document
|
if(attachment.snapshot !== false) {
|
||||||
|| (attachment.mimeType && attachment.mimeType == "text/html")) {
|
if(attachment.document
|
||||||
if(!Zotero.Prefs.get("automaticSnapshots")) return;
|
|| (attachment.mimeType && attachment.mimeType == "text/html")) {
|
||||||
} else {
|
if(!Zotero.Prefs.get("automaticSnapshots")) return;
|
||||||
if(!Zotero.Prefs.get("downloadAssociatedFiles")) return;
|
} else {
|
||||||
|
if(!Zotero.Prefs.get("downloadAssociatedFiles")) return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(attachment.document && "__wrappedDOMObject" in attachment.document) {
|
if(attachment.document && "__wrappedDOMObject" in attachment.document) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue