commit cced7d84818bf9a5fba89fea2d8ba31b1300592e
parent 28a2ed26c8c0a2d37489641209a7cbc771399b9d
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 28 Sep 2010 06:35:12 +0000
Pushed IRIS, with a couple tweaks (don't set Accessed field and set Library Catalog to just "IRIS" rather than "www.iris.rutgers.edu Library Catalog")
Diffstat:
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/translators/IRIS.js b/translators/IRIS.js
@@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
- "lastUpdated":"2010-09-03 00:45:00"
+ "lastUpdated":"2010-09-28 06:40:00"
}
function detectWeb(doc, url) {
@@ -163,9 +163,7 @@ function scrape(doc) {
newItem.callNumber = callNumber.nodeValue;
}
- var domain = doc.location.href.match(/https?:\/\/([^/]+)/);
- newItem.repository = domain[1]+" Library Catalog";
- newItem.accessed = Date();
+ newItem.libraryCatalog = "IRIS";
newItem.complete();
return true;
}//END try
@@ -317,8 +315,8 @@ function scrape(doc) {
}//end FOR
var newItem = new Zotero.Item();
record.translate(newItem);
- var domain = url.match(/https?:\/\/([^/]+)/);
- newItem.repository = domain[1]+" Library Catalog";
+
+ newItem.libraryCatalog = "IRIS";
newItem.complete();
}//end FOR
Zotero.done();