don't show option to retrieve metadata if PDF indexer is not installed

This commit is contained in:
Simon Kornblith 2008-09-09 21:01:47 +00:00
parent a9c4e0385c
commit 9cb95ac77c

View file

@ -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());
}