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

This commit is contained in:
Abe Jellinek 2022-09-06 18:46:13 -04:00
parent a2d378448a
commit 5015b0e4cc

View file

@ -1285,6 +1285,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;
};