From fabf801fdbc27d949ffc809e4cf2421e0e7ddf49 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 3 Nov 2016 17:34:00 -0400 Subject: [PATCH] Fix some locate engines (e.g., Google Scholar) --- chrome/content/zotero/xpcom/locateManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/locateManager.js b/chrome/content/zotero/xpcom/locateManager.js index 88571e4b1c..4fdecda86d 100644 --- a/chrome/content/zotero/xpcom/locateManager.js +++ b/chrome/content/zotero/xpcom/locateManager.js @@ -428,9 +428,9 @@ Zotero.LocateManager = new function() { if(responseType && responseType !== "text/html") { throw "LocateManager supports only responseType text/html"; } - - if(item.toArray) { - item = item.toArray(); + + if (item.toJSON) { + item = item.toJSON(); } var itemAsOpenURL = Zotero.OpenURL.createContextObject(item, "1.0", true);