mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Inline PMCID check in canFindFileForItem
This commit is contained in:
parent
96601456b3
commit
1ab82635a7
1 changed files with 1 additions and 2 deletions
|
|
@ -1239,10 +1239,9 @@ Zotero.Attachments = new function () {
|
|||
|
||||
|
||||
this.canFindFileForItem = function (item) {
|
||||
let pmcid = item.getField('PMCID');
|
||||
return item.isRegularItem()
|
||||
&& !item.isFeedItem
|
||||
&& (!!item.getField('DOI') || !!item.getField('url') || !!item.getExtraField('DOI') || !!pmcid)
|
||||
&& (!!item.getField('DOI') || !!item.getField('url') || !!item.getExtraField('DOI') || !!item.getField('PMCID'))
|
||||
&& this.FIND_AVAILABLE_FILE_TYPES.every(type => item.numFileAttachmentsWithContentType(type) == 0);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue