diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index ce3df35726..b51ca3238a 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -1347,7 +1347,12 @@ Zotero.Fulltext = Zotero.FullText = new function(){ * Item must be a non-web-link attachment that isn't already fully indexed */ this.canReindex = Zotero.Promise.coroutine(function* (item) { - if (item.isAttachment() && item.attachmentLinkMode != Zotero.Attachments.LINK_MODE_LINKED_URL) { + if (item.isAttachment() + && item.attachmentLinkMode != Zotero.Attachments.LINK_MODE_LINKED_URL) { + let contentType = item.attachmentContentType; + if (!contentType || contentType != 'application/pdf' && !Zotero.MIME.isTextType(contentType)) { + return false; + } switch (yield this.getIndexedState(item)) { case this.INDEX_STATE_UNAVAILABLE: case this.INDEX_STATE_UNINDEXED: