Remove redundant OA PDF search in Add Item by Identifier
This commit is contained in:
parent
66ed33b9fb
commit
03a15d47af
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue