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")

This commit is contained in:
Dan Stillman 2010-09-28 06:35:12 +00:00
parent 28a2ed26c8
commit cced7d8481

View File

@ -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();