Fix some locate engines (e.g., Google Scholar)

This commit is contained in:
Dan Stillman 2016-11-03 17:34:00 -04:00
parent 499da5ca3d
commit fabf801fdb

View file

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