Fix double PDF when adding arXiv paper with Add Item by Identifier
This commit is contained in:
parent
90f37c485f
commit
65bdef42a1
1 changed files with 3 additions and 1 deletions
|
@ -68,9 +68,11 @@ 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.find(x => x.isImportedAttachment())
|
||||
&& newItems[0]
|
||||
&& !newItems[0].numPDFAttachments()
|
||||
// TEMP: Limit to dev builds
|
||||
&& Zotero.isDevBuild) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue