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,
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue