From a71926da26257b1b864a3898d95ef7cbaa67ce23 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 13 Nov 2009 04:14:27 +0000 Subject: [PATCH] Restore JSON.parse() calls that were overwritten --- translators/ARTstor.js | 4 ++-- translators/National Library of Australia (new catalog).js | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/translators/ARTstor.js b/translators/ARTstor.js index 4533b86b77..a5dc5babc2 100644 --- a/translators/ARTstor.js +++ b/translators/ARTstor.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":100, "inRepository":true, - "lastUpdated":"2009-02-08 22:10:00" + "lastUpdated":"2009-11-13 04:15:00" } function detectWeb(doc, url) { @@ -133,7 +133,7 @@ function scrape(doc, url){ } //this gets called when an object is selected in the dialog box, fires off a get on the service url Zotero.Utilities.HTTP.doGet(urls, function(text) { - json = eval("(" + text + ")"); + var json = JSON.parse(text); var newArticle = new Zotero.Item('artwork'); for (var i=0; i