From 9cb95ac77ccecfb6066f8d950d30cf4208b92b80 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 9 Sep 2008 21:01:47 +0000 Subject: [PATCH] don't show option to retrieve metadata if PDF indexer is not installed --- chrome/content/zotero/recognizePDF.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/recognizePDF.js b/chrome/content/zotero/recognizePDF.js index 90de7055b..f2c00533b 100644 --- a/chrome/content/zotero/recognizePDF.js +++ b/chrome/content/zotero/recognizePDF.js @@ -39,7 +39,7 @@ var Zotero_RecognizePDF = new function() { * @returns {Boolean} True if the PDF can be recognized, false if it cannot be */ this.canRecognize = function(/**Zotero.Item*/ item) { - return (Zotero.Fulltext.pdfConverterIsRegistered && item.attachmentMIMEType && + return (Zotero.Fulltext.pdfConverterIsRegistered() && item.attachmentMIMEType && item.attachmentMIMEType == "application/pdf" && !item.getSource()); }