From 03a15d47afdc70367387cf5c99c56a04350ac88a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 1 Sep 2018 01:15:27 -0400 Subject: [PATCH] Remove redundant OA PDF search in Add Item by Identifier --- chrome/content/zotero/lookup.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/chrome/content/zotero/lookup.js b/chrome/content/zotero/lookup.js index efbf19e492..22997fafd8 100644 --- a/chrome/content/zotero/lookup.js +++ b/chrome/content/zotero/lookup.js @@ -68,18 +68,6 @@ var Zotero_Lookup = new function () { libraryID, collections: collection ? [collection.id] : false }); - - // If we don't yet have a file, check for available PDFs - if (Zotero.Prefs.get('downloadAssociatedFiles') - && newItems[0] - && !newItems[0].numPDFAttachments()) { - try { - yield Zotero.Attachments.addAvailablePDF(newItems[0]); - } - catch (e) { - Zotero.logError(e); - } - } successful++; } // Continue with other ids on failure