don't show option to retrieve metadata if PDF indexer is not installed
This commit is contained in:
parent
a9c4e0385c
commit
9cb95ac77c
|
@ -39,7 +39,7 @@ var Zotero_RecognizePDF = new function() {
|
||||||
* @returns {Boolean} True if the PDF can be recognized, false if it cannot be
|
* @returns {Boolean} True if the PDF can be recognized, false if it cannot be
|
||||||
*/
|
*/
|
||||||
this.canRecognize = function(/**Zotero.Item*/ item) {
|
this.canRecognize = function(/**Zotero.Item*/ item) {
|
||||||
return (Zotero.Fulltext.pdfConverterIsRegistered && item.attachmentMIMEType &&
|
return (Zotero.Fulltext.pdfConverterIsRegistered() && item.attachmentMIMEType &&
|
||||||
item.attachmentMIMEType == "application/pdf" && !item.getSource());
|
item.attachmentMIMEType == "application/pdf" && !item.getSource());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user