Updated ARTstor and National Library of Australia (new catalog) to use JSON.parse() instead of eval() -- this will only work in Firefox 3.1, but JSON parsing isn't otherwise available in the sandbox in 1.0.9

Pushed to clients
This commit is contained in:
Dan Stillman 2009-02-08 22:11:12 +00:00
parent 893bbc2c89
commit 99bef356ca
3 changed files with 5 additions and 6 deletions

View file

@ -1 +1 @@
2009-02-03 05:45:00
2009-02-08 22:10:00

View file

@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
"lastUpdated":"2008-09-02 13:55:00"
"lastUpdated":"2009-02-08 22:10:00"
}
function detectWeb(doc, url) {
@ -50,7 +50,7 @@ function scrape(doc, url){
}
// Initial query to get results from the service - primary purpose is to get objectids. which in turn are required for the 2nd service call, which exposes the actual metadata
Zotero.Utilities.HTTP.doGet(urlstub + "secure/" + groupname + "//" + groupid, function(text) {
json = eval("(" + text + ")");
var json = JSON.parse(text);
items = new Object();
for(var i=0; i<json.thumbnails.length; i++) {
child = json.thumbnails[i];

View file

@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
"lastUpdated":"2009-01-08 08:19:07"
"lastUpdated":"2009-02-08 22:10:00"
}
function detectWeb(doc, url) {
@ -61,8 +61,7 @@ function as_array(obj) {
function load_item(responseText, requestObject, format) {
metadata = eval("(" + Zotero.Utilities.cleanString(responseText) + ")");
var metadata = JSON.parse(Zotero.Utilities.cleanString(responseText));
var newItem = new Zotero.Item(format);
/* load in our authors */