From 5eecc5d32f495bbd147a7d4d1473d19c0c27f8cb Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 12 Jan 2009 23:40:06 +0000 Subject: [PATCH] Pushed updated The Economist translator that fixes single-page saves, while we figure out what's wrong with the processDocuments() call --- repotime.txt | 2 +- translators/The Economist.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/repotime.txt b/repotime.txt index 2f98880f27..25d12b7c01 100644 --- a/repotime.txt +++ b/repotime.txt @@ -1 +1 @@ -2009-01-12 18:25:00 +2009-01-12 23:40:00 diff --git a/translators/The Economist.js b/translators/The Economist.js index 1ffbb0f3df..83ef051fa3 100644 --- a/translators/The Economist.js +++ b/translators/The Economist.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":100, "inRepository":true, - "lastUpdated":"2008-05-22 20:30:00" + "lastUpdated":"2009-01-12 23:40:00" } function detectWeb(doc, url) { @@ -108,7 +108,8 @@ function doWeb(doc, url) { urls.push(i); } } else if (doc.location.href.toLowerCase().indexOf("displaystory") != -1) { - urls.push(url); + scrape(doc, url); + return; } Zotero.Utilities.processDocuments(urls, scrape, function() { Zotero.done(); });