From 7785b8df14778477e4e94c9fb0a14e6e356a12c5 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 20 Jun 2018 17:19:39 -0400 Subject: [PATCH] Restore open-access PDF retrieval for Add Item by Identifier This reverts commit faa310e0f0a77602e01f8f76146355f9e53ee816. --- chrome/content/zotero/lookup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/lookup.js b/chrome/content/zotero/lookup.js index 42866c223b..b89bd23778 100644 --- a/chrome/content/zotero/lookup.js +++ b/chrome/content/zotero/lookup.js @@ -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