From cf7f7d82d46290a77eb8a859756d836b00cae73b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 12 Jan 2009 18:25:36 +0000 Subject: [PATCH] Fixed (what appeared to be) two obvious typos in the DRA translator -- still doesn't work for search results on http://umanitoba.ca, at least, but now works for single pages Pushed updated BibTeX with 1.0.9 Unicode fix --- repotime.txt | 2 +- translators/BibTeX.js | 2 +- translators/Library Catalog (DRA).js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/repotime.txt b/repotime.txt index b46c5918a8..2f98880f27 100644 --- a/repotime.txt +++ b/repotime.txt @@ -1 +1 @@ -2009-01-10 04:45:00 +2009-01-12 18:25:00 diff --git a/translators/BibTeX.js b/translators/BibTeX.js index c476d899fa..997a4cc648 100644 --- a/translators/BibTeX.js +++ b/translators/BibTeX.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":200, "inRepository":true, - "lastUpdated":"2008-12-29 23:54:59" + "lastUpdated":"2009-01-12 18:25:00" } Zotero.configure("dataMode", "block"); diff --git a/translators/Library Catalog (DRA).js b/translators/Library Catalog (DRA).js index 2a0b079b8d..517d663f96 100644 --- a/translators/Library Catalog (DRA).js +++ b/translators/Library Catalog (DRA).js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":100, "inRepository":true, - "lastUpdated":"2006-12-15 15:11:00" + "lastUpdated":"2009-01-12 18:25:00" } function detectWeb(doc, url) { @@ -39,12 +39,12 @@ function doWeb(doc, url) { return true; } - var uris = new Array(); + var uris = []; for(var i in items) { uris.push(i); } } else { - var ug = new Array(doc.location.href); + var uris = [doc.location.href]; } for(var i in uris) { @@ -64,7 +64,7 @@ function doWeb(doc, url) { translator.setTranslator("a6ee60df-1ddc-4aae-bb25-45e0537be973"); var domain = url.match(/https?:\/\/([^/]+)/); - marc.setHandler("itemDone", function(obj, item) { + translator.setHandler("itemDone", function(obj, item) { item.repository = domain[1]+" Library Catalog"; item.complete(); });