Remove redundant OA PDF search in Add Item by Identifier

This commit is contained in:
Dan Stillman 2018-09-01 01:15:27 -04:00
parent 66ed33b9fb
commit 03a15d47af

View file

@ -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