Hide "Find Available PDF" for feed items (#2807)

This commit is contained in:
Abe Jellinek 2022-09-06 18:46:13 -04:00 committed by GitHub
parent 04120099fb
commit 74051576dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1279,6 +1279,7 @@ Zotero.Attachments = new function(){
this.canFindPDFForItem = function (item) {
return item.isRegularItem()
&& !item.isFeedItem
&& (!!item.getField('DOI') || !!item.getField('url') || !!item.getExtraField('DOI'))
&& item.numPDFAttachments() == 0;
};