Restore open-access PDF retrieval for Add Item by Identifier
This reverts commit faa310e0f0
.
This commit is contained in:
parent
3d818a6cac
commit
7785b8df14
1 changed files with 2 additions and 2 deletions
|
@ -69,14 +69,14 @@ var Zotero_Lookup = new function () {
|
||||||
collections: collection ? [collection.id] : false
|
collections: collection ? [collection.id] : false
|
||||||
});
|
});
|
||||||
// If there's a DOI and we don't yet have a file, check for open-access PDFs
|
// If there's a DOI and we don't yet have a file, check for open-access PDFs
|
||||||
/*if (identifier.DOI && !newItems.find(x => x.isImportedAttachment())) {
|
if (identifier.DOI && !newItems.find(x => x.isImportedAttachment())) {
|
||||||
try {
|
try {
|
||||||
yield Zotero.Attachments.addOpenAccessPDF(newItems[0]);
|
yield Zotero.Attachments.addOpenAccessPDF(newItems[0]);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
Zotero.logError(e);
|
Zotero.logError(e);
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
successful++;
|
successful++;
|
||||||
}
|
}
|
||||||
// Continue with other ids on failure
|
// Continue with other ids on failure
|
||||||
|
|
Loading…
Add table
Reference in a new issue