Fix double PDF when adding arXiv paper with Add Item by Identifier

This commit is contained in:
Dan Stillman 2018-08-15 02:35:09 -04:00
parent 90f37c485f
commit 65bdef42a1

View file

@ -68,9 +68,11 @@ var Zotero_Lookup = new function () {
libraryID, libraryID,
collections: collection ? [collection.id] : false collections: collection ? [collection.id] : false
}); });
// If we don't yet have a file, check for available PDFs // If we don't yet have a file, check for available PDFs
if (Zotero.Prefs.get('downloadAssociatedFiles') if (Zotero.Prefs.get('downloadAssociatedFiles')
&& !newItems.find(x => x.isImportedAttachment()) && newItems[0]
&& !newItems[0].numPDFAttachments()
// TEMP: Limit to dev builds // TEMP: Limit to dev builds
&& Zotero.isDevBuild) { && Zotero.isDevBuild) {
try { try {