From 41f5137e2417891ed5520718dd681269e4a75573 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 3 Nov 2015 17:06:36 -0500 Subject: [PATCH] Update some attachmentMIMEType -> attachmentContentType --- chrome/content/zotero/xpcom/fulltext.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index ca9a0752b4..47e5ba4da6 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -768,7 +768,7 @@ Zotero.Fulltext = new function(){ } } let libraryKey = libraryID + "/" + item.key; - let mimeType = item.attachmentMIMEType; + let mimeType = item.attachmentContentType; if (isCachedMIMEType(mimeType) || Zotero.MIME.isTextType(mimeType)) { try { let cacheFile = this.getItemCacheFile(item); @@ -795,7 +795,7 @@ Zotero.Fulltext = new function(){ text = yield Zotero.File.getContentsAsync(file, item.attachmentCharset); // If HTML, convert to plain text first, and cache the result - if (item.attachmentMIMEType == 'text/html') { + if (item.attachmentContentType == 'text/html') { let obj = yield convertItemHTMLToText( itemID, text, @@ -1226,7 +1226,7 @@ Zotero.Fulltext = new function(){ let itemID = item.id; let content; - let mimeType = item.attachmentMIMEType; + let mimeType = item.attachmentContentType; let maxLength = Zotero.Prefs.get('fulltext.textMaxLength'); let binaryMode = mode && mode.indexOf('Binary') != -1; @@ -1366,7 +1366,7 @@ Zotero.Fulltext = new function(){ */ var getTotalCharsFromFile = Zotero.Promise.coroutine(function* (itemID) { var item = yield Zotero.Items.getAsync(itemID); - switch (item.attachmentMIMEType) { + switch (item.attachmentContentType) { case 'application/pdf': var file = Zotero.Attachments.getStorageDirectory(item); file.append(this.pdfConverterCacheFile); @@ -1430,7 +1430,7 @@ Zotero.Fulltext = new function(){ } var itemID = item.id; - switch (item.attachmentMIMEType) { + switch (item.attachmentContentType) { // Use pages for PDFs case 'application/pdf': var pages = yield this.getPages(itemID);