From 99bef356caa4e59fb98a22aff6f39c4b87701439 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 8 Feb 2009 22:11:12 +0000 Subject: [PATCH] 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 --- repotime.txt | 2 +- translators/ARTstor.js | 4 ++-- translators/National Library of Australia (new catalog).js | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/repotime.txt b/repotime.txt index 66acb23d34..752a7205eb 100644 --- a/repotime.txt +++ b/repotime.txt @@ -1 +1 @@ -2009-02-03 05:45:00 +2009-02-08 22:10:00 diff --git a/translators/ARTstor.js b/translators/ARTstor.js index b862762144..4533b86b77 100644 --- a/translators/ARTstor.js +++ b/translators/ARTstor.js @@ -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