Restore open-access PDF retrieval for Add Item by Identifier

This reverts commit faa310e0f0.
This commit is contained in:
Dan Stillman 2018-06-20 17:19:39 -04:00
parent 3d818a6cac
commit 7785b8df14

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