From a218da859cd1669d44fd1d7b12cd1e9da0097fd9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 24 Apr 2016 04:50:29 -0400 Subject: [PATCH] Fix COinS generation outside of translators Fixes #963, 5.0: CrossRef lookup is not working --- chrome/content/zotero/xpcom/openurl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/openurl.js b/chrome/content/zotero/xpcom/openurl.js index 8600782b6..509673bbb 100644 --- a/chrome/content/zotero/xpcom/openurl.js +++ b/chrome/content/zotero/xpcom/openurl.js @@ -105,8 +105,8 @@ Zotero.OpenURL = new function() { } } - if(item.toArray) { - item = item.toArray(); + if (item.toJSON) { + item = item.toJSON(); } // find pmid