Limit OA PDF lookup to dev builds
This commit is contained in:
parent
2ebc78adc0
commit
62e403bc55
1 changed files with 3 additions and 1 deletions
|
@ -69,7 +69,9 @@ var Zotero_Lookup = new function () {
|
|||
collections: collection ? [collection.id] : false
|
||||
});
|
||||
// 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())) {
|
||||
// TEMP: Limit to dev builds
|
||||
if ((Zotero.version.includes('beta') || Zotero.version.includes('SOURCE'))
|
||||
&& identifier.DOI && !newItems.find(x => x.isImportedAttachment())) {
|
||||
try {
|
||||
yield Zotero.Attachments.addOpenAccessPDF(newItems[0]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue