Temporarily disable Add Item by Identifier open-access PDF retrieval

Not going out in 5.0.52
This commit is contained in:
Dan Stillman 2018-06-20 17:07:11 -04:00
parent a9cd47dc3f
commit faa310e0f0

View file

@ -69,14 +69,14 @@ var Zotero_Lookup = new function () {
collections: collection ? [collection.id] : false
});
// If there's a DOI and we don't yet have a file, check for open-access PDFs
if (identifier.DOI && !newItems.find(x => x.isImportedAttachment())) {
/*if (identifier.DOI && !newItems.find(x => x.isImportedAttachment())) {
try {
yield Zotero.Attachments.addOpenAccessPDF(newItems[0]);
}
catch (e) {
Zotero.logError(e);
}
}
}*/
successful++;
}
// Continue with other ids on failure