([\w\W]*?)\/;
+ if (text.match(auth))
+ {
+ //newItem.author=Zotero.Utilities.cleanAuthor(text.match(auth)[1]);
+ cleanauth=Zotero.Utilities.cleanTags(text.match(auth)[1]);
+ newItem.creators.push(Zotero.Utilities.cleanAuthor(cleanauth, "author"));
+
+ }
+
+ newItem.websiteTitle="The Hindu";
+ newItem.edition="Online";
+
+ //hooray for real meta tags!
+ var meta = //g;
+ var metaTags = text.match(meta);
+ for (var i = 0 ; i ([^<]+))[1];
+ newItem.date = Zotero.Utilities.trimInternal(date.split(" ")[1]);
+ newItem.complete();
+ });
+ }
+ }, function() {Zotero.done;});
+ Zotero.wait();
+}
+');
+
+REPLACE INTO translators VALUES ('fe39e97d-7397-4f3f-a5f3-396a1a79213c', '1.0.0b4.r5', '', '2008-05-08 20:30:00', '0', '100', '4', 'OpenJudis - Indian Supreme Court cases', 'Prashant Iyengar and Michael Berkowitz', 'http://(www.)?openarchive.in/(judis|newcases)',
+'function detectWeb(doc, url) {
+ if (doc.evaluate(''//div[@id="footer"]/dl/dt/a'', doc, null, XPathResult.ANY_TYPE, null).iterateNext()) {
+ return "multiple";
+ } else if (url.match(/\d+\.htm/)) {
+ return "case";
+ }
+}',
+'function regexMeta(stuff, item) {
+ if (stuff) {
+ if (stuff[0] == "Origlink") {
+ item.source = stuff[1].split(/\s+/)[0];
+ }
+ if (stuff[0] == "Acts") {
+ if (stuff[1].indexOf("|")!=-0) {
+ echts=stuff[1].split(" | ");
+ for (i=0;i 1) {
+ item.reporter=stuff[1];
+ }
+ if (stuff[0] == "Judges") {
+ if (stuff[1].indexOf(";")!=-0) {
+ jedges=stuff[1].split(" ; ");
+ for (i=0;i([\w\W]*?)<\/title/;
+ newItem.title = Zotero.Utilities.trimInternal(t.exec(text)[1]);
+ newItem.caseName = newItem.title;
+ newItem.url = newurl;
+ newItem.court="The Supreme Court of India";
+
+ newItem.websiteTitle="OpenJudis - http://judis.openarchive.in";
+ newItem.edition="Online";
+
+ var metareg = /]+\>/g;
+ var tags = text.match(metareg);
+ for each (var tag in tags) {
+ var stuff = tag.match(/NAME=\"([^"]+)\"\s+CONTENT=\"([^"]+)\"/);
+ regexMeta([stuff[1], stuff[2]], newItem);
+ }
+ pdfurl = ''http://judis.openarchive.in/makepdf.php?filename='' + newItem.url;
+ newItem.attachments = [
+ {url:newItem.url, title:"OpenJudis Snapshot", mimeType:"text/html"},
+ {url:pdfurl, title:"OpenJudis PDF", mimeType:"application/pdf"}
+ ];
+ newItem.complete();
+ }, function() {Zotero.done;});
+ Zotero.wait();
+ }
+}
+');
+
+REPLACE INTO translators VALUES ('c0d7d260-d795-4782-9446-f6c403a7922c', '1.0.0b4.r5', '', '2008-05-08 20:30:00', '0', '100', '4', 'Science Links Japan', 'Michael Berkowitz', 'http://sciencelinks.jp/',
+'function detectWeb(doc, url) {
+ if (url.match(/result/) || url.match(/journal/)) {
+ return "multiple";
+ } else if (url.match(/article/)) {
+ return "journalArticle";
+ }
+}',
+'function doWeb(doc, url) {
+ var ns = doc.documentElement.namespaceURI;
+ nsR = ns ? function(prefix) {
+ if (prefix == ''x'') return ns; else return null;
+ } : null;
+
+ var arts = new Array();
+ if (detectWeb(doc, url) == "multiple") {
+ var items = Zotero.Utilities.getItemArray(doc, doc, "(article|display\.php)");
+ items = Zotero.selectItems(items);
+ for (var i in items) {
+ arts.push(i);
+ }
+ } else {
+ arts = [url];
+ }
+ Zotero.Utilities.processDocuments(arts, function(doc) {
+ var data = new Array();
+ var bits = doc.evaluate(''//div[@id="result_detail"]/table/tbody/tr/td'', doc, nsR, XPathResult.ANY_TYPE, null);
+ var bit;
+ while (bit = bits.iterateNext()) {
+ data.push(Zotero.Utilities.trimInternal(bit.textContent));
+ }
+ var item = new Zotero.Item("journalArticle");
+ for each (var datum in data) {
+ if (datum.match(/^Title;/)) {
+ item.title = Zotero.Utilities.capitalizeTitle(datum.match(/Title;(.*)$/)[1]);
+ } else if (datum.match(/^Author;/)) {
+ var auts = datum.match(/\b[A-Z''\-]+\s+[A-Z''\-]+/g);
+ for each (var aut in auts) {
+ item.creators.push(Zotero.Utilities.cleanAuthor(Zotero.Utilities.capitalizeTitle(aut, true), "author"));
+ }
+ } else if (datum.match(/^Journal Title;/)) {
+ item.publicationTitle = datum.match(/;(.*)$/)[1];
+ } else if (datum.match(/^ISSN/)) {
+ item.ISSN = datum.match(/[\d\-]+/)[0];
+ } else if (datum.match(/^VOL/)) {
+ var voliss = datum.match(/^VOL\.([^;]*);NO\.([^;]*);PAGE\.([^(]*)\((\d+)\)/);
+ item.volume = voliss[1];
+ item.issue = voliss[2];
+ item.pages = voliss[3];
+ item.date = voliss[4];
+ } else if (datum.match(/^Abstract/)) {
+ item.abstractNote = datum.match(/;(.*)/)[1];
+ }
+ }
+ item.url = doc.location.href;
+ item.attachments = [{url:item.url, title:"Science Links Japan Snapshot", mimeType:"text/html"}];
+ item.complete();
+ }, function() {Zotero.done;});
+ Zotero.wait();
+}');
+
+REPLACE INTO translators VALUES ('2cd7d362-5fba-423a-887f-579ed343e751', '1.0.0b4.r5', '', '2008-05-06 08:15:00', '0', '100', '4', 'The Microfinance Gateway', 'Michael Berkowitz', 'http://(www.)?microfinancegateway.org/',
+'function detectWeb(doc, url) {
+ if (url.match(/results\.php/) || url.match(/search/)) {
+ return "multiple";
+ } else if (url.match(/content\/article/)) {
+ return "journalArticle";
+ }
+}',
+'function doWeb(doc, url) {
+ var ns = doc.documentElement.namespaceURI;
+ var nsResolver = ns ? function (prefix) {
+ if (prefix == ''x'') return ns; else return null;
+ } : null;
+
+ var arts = new Array();
+ if (detectWeb(doc, url) == "multiple") {
+ var items = Zotero.Utilities.getItemArray(doc, doc, "content/article/detail");
+ items = Zotero.selectItems(items);
+ for (var i in items) {
+ arts.push(i);
+ }
+ } else {
+ arts = [url];
+ }
+ Zotero.Utilities.processDocuments(arts, function(doc) {
+ var item = new Zotero.Item("journalArticle");
+ item.title = Zotero.Utilities.trimInternal(doc.evaluate(''//td[2][@class="main_content_box"]/h1'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent);
+ var authors = Zotero.Utilities.trimInternal(doc.evaluate(''//div[@class="source"]/strong'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent).split(/(\.,|&)/);
+ for each (var aut in authors) {
+ if (aut.match(/\w+/)) {
+ item.creators.push(Zotero.Utilities.cleanAuthor(Zotero.Utilities.trimInternal(aut), "author", true));
+ }
+ }
+ item.url = doc.location.href;
+ item.date = Zotero.Utilities.trimInternal(doc.evaluate(''//span[@class="date"]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent);
+ item.abstractNote = Zotero.Utilities.trimInternal(doc.evaluate(''//span[@class="summary"]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent);
+ var pdfurl = doc.evaluate(''//div[@class="articleTopics"]/div/a[1]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().href;
+ item.publicationTitle = doc.evaluate(''//div[@class="articleTopics"]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent.match(/Published\s+by:\s+(.*)\n/)[1];
+ item.attachments = [
+ {url:item.url, title:item.title + " Snapshot", mimeType:"text/html"},
+ {url:pdfurl, title:item.title + " PDF", mimeType:"application/pdf"}
+ ];
+
+ item.complete();
+ }, function() {Zotero.done;});
+}');
+
+REPLACE INTO translators VALUES ('291934d5-36ec-4b81-ac9c-c5ad5313dba4', '1.0.0b4.r5', '', '2008-05-06 08:15:00', '0', '100', '4', 'Pion Journals', 'Michael Berkowitz', 'http://(www.)?(hthpweb|envplan|perceptionweb).com/',
+'function detectWeb(doc, url) {
+ if (url.match(/search\.cgi/) || url.match(/ranking/) || url.match(/volume=/)) {
+ return "multiple";
+ } else if (url.match(/abstract\.cgi/)) {
+ return "journalArticle";
+ }
+}',
+'function doWeb(doc, url) {
+ var namespace = doc.documentElement.namespaceURI;
+ var nsResolver = namespace ? function(prefix) {
+ if (prefix == ''x'') return namespace; else return null;
+ } : null;
+
+ var arts = new Array();
+ if (detectWeb(doc, url) == "multiple") {
+ var items = Zotero.Utilities.getItemArray(doc, doc, "abstract.cgi\\?id=");
+ items = Zotero.selectItems(items);
+ for (var i in items) {
+ arts.push(i);
+ }
+ } else {
+ arts = [url];
+ }
+ Zotero.debug(arts);
+ Zotero.Utilities.processDocuments(arts, function(doc) {
+ var item = new Zotero.Item("journalArticle");
+ item.publicationTitle = Zotero.Utilities.trimInternal(doc.evaluate(''//div[@id="footer"]/div[@class="left"]/i'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent);
+ item.title = Zotero.Utilities.trimInternal(doc.evaluate(''//div[@id="total"]/p[2]/font/b'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent);
+ var authors = Zotero.Utilities.trimInternal(doc.evaluate(''//div[@id="total"]/p[3]/b'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent).split(/,\s*/);
+ for each (var aut in authors) {
+ item.creators.push(Zotero.Utilities.cleanAuthor(aut, "author"));
+ }
+ if (doc.evaluate(''//div[@id="title"]/div[@class="left"]/font'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent.match(/\d+/)) {
+ var voliss = doc.evaluate(''//div[@id="title"]/div[@class="left"]/font'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent.match(/(\d+)\s+volume\s+(\d+)\s*\((\d+)\)\s+(pages\s+(.*))?$/);
+ Zotero.debug(voliss);
+ item.date = voliss[1];
+ item.volume = voliss[2];
+ item.issue = voliss[3];
+ if (voliss[5]) item.pages = voliss[5];
+ } else {
+ item.date = Zotero.Utilities.trimInternal(doc.evaluate(''//div[@id="total"]/p[4]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent).match(/(\d+)$/)[1];
+ }
+ item.DOI = Zotero.Utilities.trimInternal(doc.evaluate(''//div[@id="title"]/div[@class="right"]/font'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent).substr(4);
+
+ if (doc.evaluate(''//a[contains(@href, ".pdf")]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) var pdfurl = doc.evaluate(''//a[contains(@href, ".pdf")]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().href;
+ item.url = doc.location.href;
+ var pub = item.publicationTitle;
+ item.attachments = [{url:item.url, title:pub + " Snapshot", mimeType:"text/html"}];
+ if (pdfurl) item.attachments.push({url:pdfurl, title:pub + " Full Text PDF", mimeType:"application/pdf"});
+ item.abstractNote = Zotero.Utilities.trimInternal(doc.evaluate(''//div[@id="total"]/p[5]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent).substr(10);
+ item.complete();
+ }, function() {Zotero.done;});
+}');
+
+REPLACE INTO translators VALUES ('2e304579-dd7b-4770-85e9-0d724c9b49a5', '1.0.0b4.r5', '', '2008-05-05 07:45:00', '0', '100', '4', 'European Educational Research Journal', 'Michael Berkowitz', 'http://www.wwwords.co.uk/eerj/',
'function detectWeb(doc, url) {
if (doc.evaluate(''//div[@id="maincontent"]/table[*//p[@class="articletitle"]]'', doc, null, XPathResult.ANY_TYPE, null).iterateNext()) {
return "multiple";
@@ -1164,7 +2026,7 @@ function doWeb(doc, url) {
}
}');
-REPLACE INTO translators VALUES ('bdaac15c-b0ee-453f-9f1d-f35d00c7a994', '1.0.0b4.r5', '', '2008-05-01 16:30:00', '0', '100', '4', 'AMS Journals', 'Michael Berkowitz', 'http://www.ams.org/',
+REPLACE INTO translators VALUES ('bdaac15c-b0ee-453f-9f1d-f35d00c7a994', '1.0.0b4.r5', '', '2008-05-05 07:45:00', '0', '100', '4', 'AMS Journals', 'Michael Berkowitz', 'http://www.ams.org/',
'function detectWeb(doc, url) {
if (url.match(/jour(nals|search)/)) {
return "multiple";
@@ -1231,9 +2093,9 @@ REPLACE INTO translators VALUES ('bdaac15c-b0ee-453f-9f1d-f35d00c7a994', '1.0.0b
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('5278b20c-7c2c-4599-a785-12198ea648bf', '1.0.0b4.r5', '', '2008-04-30 21:00:00', '0', '100', '4', 'ARTstor', 'Ameer Ahmed and Michael Berkowitz', 'http://web2.artstor.org',
+REPLACE INTO translators VALUES ('5278b20c-7c2c-4599-a785-12198ea648bf', '1.0.0b4.r5', '', '2008-05-08 20:30:00', '1', '100', '4', 'ARTstor', 'Ameer Ahmed and Michael Berkowitz', 'http://web2.artstor.org',
'function detectWeb(doc, url) {
- if (url.match(''Search'')) return "multiple"
+ if (url.match(/(S|s)earch/)) return "multiple"
}',
'function doWeb(doc, url) {
if (url.indexOf("|")!=-1){
@@ -1366,9 +2228,21 @@ function scrape(doc, url){
}
}
if (child.fieldName.indexOf("Creator")!=-1){
- var aut = child.fieldValue.match(/^([^,]+),\s+(.*)$/);
- newArticle.notes.push({note:"Artist information: " + aut[2]});
- newArticle.creators.push(Zotero.Utilities.cleanAuthor(aut[1], "artist"));
+ if (child.fieldValue != "") {
+ if (child.fieldValue.match(/,/)) {
+ var aut = child.fieldValue.match(/^([^,]+),\s+(.*)$/);
+ if (aut[1].match(/\s/)) {
+ newArticle.notes.push({note:"Artist information: " + aut[2]});
+ newArticle.creators.push(Zotero.Utilities.cleanAuthor(aut[1], "artist"));
+ } else {
+ var extras = aut[2].match(/^([^,]+),\s+(.*)$/);
+ newArticle.creators.push({firstName:extras[1], lastName:aut[1], creatorType:"author"});
+ newArticle.notes.push({note:"Artist information: " + extras[2]});
+ }
+ } else {
+ newArticle.creators.push(Zotero.Utilities.cleanAuthor(child.fieldValue, "artist"));
+ }
+ }
}
if (child.fieldName.indexOf("Culture")!=-1){
newArticle.creators.push(Zotero.Utilities.cleanAuthor(child.fieldValue, "producer", true));
@@ -1464,7 +2338,7 @@ function scrape(doc, url){
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('79f6f9ed-537a-4d4f-8270-c4fbaafdf327', '1.0.0b4.r5', '', '2008-04-30 19:30:00', '0', '100', '4', 'Emerald Publishing', 'Michael Berkowitz', 'www.emeraldinsight.com/',
+REPLACE INTO translators VALUES ('79f6f9ed-537a-4d4f-8270-c4fbaafdf327', '1.0.0b4.r5', '', '2008-05-05 07:45:00', '0', '100', '4', 'Emerald Publishing', 'Michael Berkowitz', 'www.emeraldinsight.com/',
'function detectWeb(doc, url) {
if (url.match(''searchQuickOptions.do'')) {
return "multiple"
@@ -1536,7 +2410,7 @@ function doWeb(doc, url) {
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('bc39e05b-141a-4322-85f0-a5b86edf896b', '1.0.0b4.r5', '', '2008-04-30 17:15:00', '0', '100', '4', 'Hindawi Publishing Corporation', 'Michael Berkowitz', 'http://www.hindawi.com/',
+REPLACE INTO translators VALUES ('bc39e05b-141a-4322-85f0-a5b86edf896b', '1.0.0b4.r5', '', '2008-05-05 07:45:00', '0', '100', '4', 'Hindawi Publishing Corporation', 'Michael Berkowitz', 'http://www.hindawi.com/',
'function detectWeb(doc, url) {
if (url.match(''GetArticle.aspx'')) {
return "journalArticle";
@@ -1599,7 +2473,7 @@ REPLACE INTO translators VALUES ('bc39e05b-141a-4322-85f0-a5b86edf896b', '1.0.0b
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('252c6a50-0900-41c5-a66b-ec456137c43c', '1.0.0b4.r5', '', '2008-04-29 21:30:00', '0', '100', '4', 'AcademicJournals.net', 'Michael Berkowitz', 'http://www.academicjournals.net/',
+REPLACE INTO translators VALUES ('252c6a50-0900-41c5-a66b-ec456137c43c', '1.0.0b4.r5', '', '2008-05-05 07:45:00', '0', '100', '4', 'AcademicJournals.net', 'Michael Berkowitz', 'http://www.academicjournals.net/',
'function detectWeb(doc, url) {
if (url.match(''articleno='')) {
return "journalArticle";
@@ -1678,7 +2552,7 @@ REPLACE INTO translators VALUES ('252c6a50-0900-41c5-a66b-ec456137c43c', '1.0.0b
}, function() {Zotero.done;});
}');
-REPLACE INTO translators VALUES ('1e1e35be-6264-45a0-ad2e-7212040eb984', '1.0.0b4.r5', '', '2008-04-29 19:00:00', '0', '100', '4', 'APA PsycNET', 'Michael Berkowitz', 'http://psycnet\.apa\.org/',
+REPLACE INTO translators VALUES ('1e1e35be-6264-45a0-ad2e-7212040eb984', '1.0.0b4.r5', '', '2008-05-05 07:45:00', '0', '100', '4', 'APA PsycNET', 'Michael Berkowitz', 'http://psycnet\.apa\.org/',
'function detectWeb(doc, url) {
if (url.match(/search\.searchResults/)) {
return "multiple";
@@ -1965,7 +2839,7 @@ function doWeb(doc, url) {
}
}');
-REPLACE INTO translators VALUES ('0eeb2ac0-fbaf-4994-b98f-203d273eb9fa', '1.0.0b4.r5', '', '2008-04-30 21:30:00', '1', '100', '4', 'Inter-Research Science Center', 'Michael Berkowitz', 'http://www.int-res.com/',
+REPLACE INTO translators VALUES ('0eeb2ac0-fbaf-4994-b98f-203d273eb9fa', '1.0.0b4.r5', '', '2008-05-05 07:45:00', '1', '100', '4', 'Inter-Research Science Center', 'Michael Berkowitz', 'http://www.int-res.com/',
'function detectWeb(doc, url) {
if (doc.evaluate(''//div[@class="journal-index"]'', doc, null, XPathResult.ANY_TYPE, null).iterateNext() ||
doc.evaluate(''//div[@class="tx-indexedsearch-res"]//tr[1]/td[2]//a'', doc, null, XPathResult.ANY_TYPE, null).iterateNext()) {
@@ -2866,7 +3740,7 @@ function doWeb(doc, url){
}
}');
-REPLACE INTO translators VALUES ('a69deb08-47d9-46ad-afca-bc3a2499ad34', '1.0.0b4.r5', '', '2008-04-08 03:00:00', '0', '100', '4', 'Royal Historical Society', 'Michael Berkowitz', 'http://www.rhs.ac.uk/bibl/',
+REPLACE INTO translators VALUES ('a69deb08-47d9-46ad-afca-bc3a2499ad34', '1.0.0b4.r5', '', '2008-05-15 00:30:00', '1', '100', '4', 'Royal Historical Society', 'Michael Berkowitz', 'http://www.rhs.ac.uk/bibl/',
'function detectWeb(doc, url) {
if (doc.evaluate(''//tr/td[3][@class="bib_data"]/a[@class="bibref"]'', doc, null, XPathResult.ANY_TYPE, null).iterateNext()) {
return "multiple";
@@ -2901,7 +3775,7 @@ REPLACE INTO translators VALUES ('a69deb08-47d9-46ad-afca-bc3a2499ad34', '1.0.0b
if (xml..journal_title.length() != 0) itemtype = "journalArticle";
var item = new Zotero.Item(itemtype);
- item.title = xml..title;
+ item.title = Zotero.Utilities.capitalizeTitle(xml..title.toString());
for (var i = 0; i < xml..author.length(); i++) {
var name = xml..author[i].toString().match(/^[^,]+,[^,]+/)[0].split(/,\s+/);
item.creators.push({lastName:name[0], firstName:name[1], creatorType:"author"});
@@ -2927,7 +3801,7 @@ REPLACE INTO translators VALUES ('a69deb08-47d9-46ad-afca-bc3a2499ad34', '1.0.0b
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('d921155f-0186-1684-615c-ca57682ced9b', '1.0.0b4.r1', '', '2008-04-04 20:00:00', '1', '100', '4', 'JSTOR', 'Simon Kornblith, Sean Takats and Michael Berkowitz', 'https?://[^/]*jstor\.org[^/]*/(action/(showArticle|doBasicSearch|doAdvancedSearch)|stable/)',
+REPLACE INTO translators VALUES ('d921155f-0186-1684-615c-ca57682ced9b', '1.0.0b4.r1', '', '2008-05-15 18:30:00', '1', '100', '4', 'JSTOR', 'Simon Kornblith, Sean Takats and Michael Berkowitz', 'https?://[^/]*jstor\.org[^/]*/(action/(showArticle|doBasicSearch|doAdvancedSearch)|stable/|pss)',
'function detectWeb(doc, url) {
var namespace = doc.documentElement.namespaceURI;
var nsResolver = namespace ? function(prefix) {
@@ -2935,7 +3809,7 @@ REPLACE INTO translators VALUES ('d921155f-0186-1684-615c-ca57682ced9b', '1.0.0b
} : null;
// See if this is a seach results page
- if(doc.title == "JSTOR: Search Results" || url.indexOf("/stable/i") != -1) {
+ if (doc.title == "JSTOR: Search Results" || url.match(/\/i\d+/)) {
return "multiple";
} else if(url.indexOf("/search/") != -1) {
return false;
@@ -2944,7 +3818,7 @@ REPLACE INTO translators VALUES ('d921155f-0186-1684-615c-ca57682ced9b', '1.0.0b
// If this is a view page, find the link to the citation
var xpath = ''//a[@id="favorites"]'';
var elmts = doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null);
- if(elmts.iterateNext()) {
+ if(elmts.iterateNext() || url.match(/pss/)) {
return "journalArticle";
}
}',
@@ -2961,50 +3835,57 @@ REPLACE INTO translators VALUES ('d921155f-0186-1684-615c-ca57682ced9b', '1.0.0b
// If this is a view page, find the link to the citation
var xpath = ''//a[@id="favorites"]'';
var elmts = doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null);
- if(elmts.iterateNext()) {
- var jid;
- var jidRe1 = new RegExp("doi=[0-9\.]+/([0-9]+)");
- var jidRe2 = new RegExp("stable/view/([0-9]+)");
- var jidRe3 = new RegExp("stable/([0-9]+)");
- var jidmatch1 = jidRe1.exec(url);
- var jidmatch2 = jidRe2.exec(url);
- var jidmatch3 = jidRe3.exec(url);
- if (jidmatch1) {
- jid = jidmatch1[1];
- } else if (jidmatch2) {
- jid = jidmatch2[1];
- } else if (jidmatch3) {
- jid = jidmatch3[1];
- } else {
- return false;
- }
- var downloadString = "&noDoi=yesDoi&downloadFileName=deadbeef&suffix="+jid;
- }
- else{
- var availableItems = new Object();
- var tableRows = doc.evaluate(''//li[ul/li/a[@class="title"]]'', doc, nsResolver, XPathResult.ANY_TYPE, null);
- var tableRow;
- var jid;
- var title;
- var jidRe = new RegExp("[0-9\.]+/([0-9]+)");
- while(tableRow = tableRows.iterateNext()) {
- title = doc.evaluate(''./ul/li/a[@class="title"]'', tableRow, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent;
- jid = doc.evaluate(''.//input[@name="doi"]'', tableRow, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().value;
- var m = jidRe.exec(jid);
- if (m) {
- jid = m[1];
+ if (url.match(/pss/)) {
+ var jid = url.match(/\d+/);
+ var downloadString = "&noDoi=yesDoi&downloadFileName=deadbeef&suffix=" + jid;
+ var pdfYes = false;
+ } else {
+ if(elmts.iterateNext()) {
+ var jid;
+ var jidRe1 = new RegExp("doi=[0-9\.]+/([0-9]+)");
+ var jidRe2 = new RegExp("stable/view/([0-9]+)");
+ var jidRe3 = new RegExp("stable/([0-9]+)");
+ var jidmatch1 = jidRe1.exec(url);
+ var jidmatch2 = jidRe2.exec(url);
+ var jidmatch3 = jidRe3.exec(url);
+ if (jidmatch1) {
+ jid = jidmatch1[1];
+ } else if (jidmatch2) {
+ jid = jidmatch2[1];
+ } else if (jidmatch3) {
+ jid = jidmatch3[1];
+ } else {
+ return false;
}
- availableItems[jid] = title;
+ var downloadString = "&noDoi=yesDoi&downloadFileName=deadbeef&suffix="+jid;
}
-
- var items = Zotero.selectItems(availableItems);
- if(!items) {
- return true;
- }
- var downloadString="&noDoi=yesDoi&downloadFileName=deadbeef";
- for(var i in items) {
- downloadString+="&suffix="+i;
+ else{
+ var availableItems = new Object();
+ var tableRows = doc.evaluate(''//li[ul/li/a[@class="title"]]'', doc, nsResolver, XPathResult.ANY_TYPE, null);
+ var tableRow;
+ var jid;
+ var title;
+ var jidRe = new RegExp("[0-9\.]+/([0-9]+)");
+ while(tableRow = tableRows.iterateNext()) {
+ title = doc.evaluate(''./ul/li/a[@class="title"]'', tableRow, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent;
+ jid = doc.evaluate(''.//input[@name="doi"]'', tableRow, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().value;
+ var m = jidRe.exec(jid);
+ if (m) {
+ jid = m[1];
+ }
+ availableItems[jid] = title;
+ }
+
+ var items = Zotero.selectItems(availableItems);
+ if(!items) {
+ return true;
+ }
+ var downloadString="&noDoi=yesDoi&downloadFileName=deadbeef";
+ for(var i in items) {
+ downloadString+="&suffix="+i;
+ }
}
+ var pdfYes = true;
}
Zotero.Utilities.HTTP.doPost(host+"/action/downloadCitation?format=refman&direct=true",
@@ -3025,7 +3906,7 @@ REPLACE INTO translators VALUES ('d921155f-0186-1684-615c-ca57682ced9b', '1.0.0b
item.attachments[0].mimeType = "text/html";
Zotero.debug(host);
var pdfurl = item.url.replace(/([^\d]+)(\d+)$/, host + "/stable/pdfplus/$2") + ".pdf";
- item.attachments.push({url:pdfurl, title:"JSTOR Full Text PDF", mimeType:"application/pdf"});
+ if (pdfYes == true) item.attachments.push({url:pdfurl, title:"JSTOR Full Text PDF", mimeType:"application/pdf"});
item.complete();
});
@@ -3215,7 +4096,7 @@ function doWeb(doc, url){
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('e85a3134-8c1a-8644-6926-584c8565f23e', '1.0.0b4.r1', '', '2008-04-18 08:55:00', '1', '100', '4', 'History Cooperative', 'Simon Kornblith', 'https?://[^/]*historycooperative\.org[^/]*/(?:journals/.+/.+/.+\.s?html$|cgi-bin/search.cgi|journals/.+/.+/)',
+REPLACE INTO translators VALUES ('e85a3134-8c1a-8644-6926-584c8565f23e', '1.0.0b4.r1', '', '2008-05-06 08:15:00', '1', '100', '4', 'History Cooperative', 'Simon Kornblith', 'https?://[^/]*historycooperative\.org[^/]*/(?:journals/.+/.+/.+\.s?html$|cgi-bin/search.cgi|journals/(?!cp|whc).+/.+/)',
'function detectWeb(doc, url) {
var contents = doc.title.replace("Contents", "");
if(doc.title != contents || doc.title == "History Cooperative: Search Results") {
@@ -4303,24 +5184,36 @@ REPLACE INTO translators VALUES ('636c8ea6-2af7-4488-8ccd-ea280e4a7a98', '1.0.0b
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('3eabecf9-663a-4774-a3e6-0790d2732eed', '1.0.0b4.r5', '', '2008-04-28 17:50:00', '0', '100', '4', 'SciELO', 'Michael Berkowitz', 'http://www.scielo.(org|br)/',
+REPLACE INTO translators VALUES ('3eabecf9-663a-4774-a3e6-0790d2732eed', '1.0.0b4.r5', '', '2008-05-15 00:30:00', '1', '100', '4', 'SciELO', 'Michael Berkowitz', 'http://(www.)?scielo.(org|br)/',
'function detectWeb(doc, url) {
if (url.indexOf("wxis.exe") != -1) {
if (doc.evaluate(''//*[@class="isoref"]'', doc, null, XPathResult.ANY_TYPE, null).iterateNext()) {
return "multiple";
}
+ } else if (url.indexOf("issuetoc") != -1) {
+ return "multiple"
} else if (url.indexOf("&pid=") != -1) {
return "journalArticle";
} else {
Zotero.debug("ok");
}
}',
-'function doWeb(doc, url) {
+'function makeURL(host, str) {
+ return ''http://'' + host + ''/scieloOrg/php/articleXML.php?pid='' + str.match(/pid=([^&]+)/)[1] + ''&lang=en'';
+}
+
+function doWeb(doc, url) {
+ var host = doc.location.host;
var arts = new Array();
if (detectWeb(doc, url) == "multiple") {
var items = new Object();
- var titlepath = ''//font[@class="isoref"]/font[@class="negrito"]'';
- var linkpath = ''//font[@class="isoref"]/a[@class="isoref"]'';
+ if (url.indexOf(".exe") != -1) {
+ var titlepath = ''//font[@class="isoref"]/font[@class="negrito"]'';
+ var linkpath = ''//font[@class="isoref"]/a[@class="isoref"]'';
+ } else {
+ var titlepath = ''//font[@class="normal"]/b/b[1]'';
+ var linkpath = ''//tr/td/div/a[1]'';
+ }
var titles = doc.evaluate(titlepath, doc, null, XPathResult.ANY_TYPE, null);
var links = doc.evaluate(linkpath, doc, null, XPathResult.ANY_TYPE, null);
var next_title;
@@ -4330,69 +5223,59 @@ REPLACE INTO translators VALUES ('3eabecf9-663a-4774-a3e6-0790d2732eed', '1.0.0b
}
items = Zotero.selectItems(items);
for (var i in items) {
- arts.push(i);
+ arts.push(makeURL(host, i));
}
} else {
- arts = [url];
+ arts = [makeURL(host, url)];
}
- for each (var url in arts) {
- Zotero.debug(url);
- Zotero.Utilities.HTTP.doGet(url, function(text) {
- var link = text.match(/\"([^"]+articleXML[^"]+)\"/)[1];
- Zotero.debug(link);
-
- Zotero.Utilities.HTTP.doGet(link, function(text) {
- var item = new Zotero.Item("journalArticle");
-
- text = text.replace(/]*>/, "").replace(/<\?xml[^>]*\?>/, "").replace(//g, "");
- var journal = text.split("")[1].split("")[0];
- journal = "" + journal + "";
- journal = journal.replace(/\-([a-z])/g, "$1");
- var xml2 = new XML(journal);
- var art = text.split("")[1].split("")[0];
- art = "" + art + "";
- art = art.replace(/\-([a-z])/g, "$1");
- var xml3 = new XML(art);
-
- item.publicationTitle = xml2..journaltitle.text().toString();
- item.journalAbbreviation = xml2..abbrevjournaltitle.text().toString();
- item.ISSN = xml2..issn.text().toString();
- item.publisher = xml2..publisher..publishername.text().toString();
-
- item.title = xml3..titlegroup..articletitle.text().toString();
- for (var i = 0 ; i < xml3..contribgroup..contrib.length() ; i++) {
- var name = xml3..contribgroup..contrib[i]..name;
- item.creators.push({firstName:name..givennames.text().toString(), lastName:name..surname.text().toString(), creatorType:"author"});
- }
-
- var date = xml3..pubdate[0];
- var day = date..day.text().toString();
- var month = date..month.text().toString();
- var year = date..year.text().toString();
-
- date = year;
- if (month != "00") {
- date = month + "/" + date;
- }
- if (day != "00") {
- date = day + "/" + date;
- }
- item.date = date;
- item.volume = xml3..volume.text().toString();
- item.pages = xml3..fpage.text().toString() + "-" + xml3..lpage.text().toString();
-
- for (var i = 0 ; i < xml3..kwdgroup..kwd.length() ; i++) {
- item.tags.push(xml3..kwdgroup..kwd[i].text().toString());
- }
-
- item.attachments = [
- {url:url, title:"SciELO Snapshot", mimeType:"text/html"}
- ];
+ Zotero.Utilities.HTTP.doGet(arts, function(text) {
+ var item = new Zotero.Item("journalArticle");
+ text = text.replace(/]*>/, "").replace(/<\?xml[^>]*\?>/, "").replace(//g, "");
+ var journal = text.split("")[1].split("")[0];
+ journal = "" + journal + "";
+ journal = journal.replace(/\-([a-z])/g, "$1");
+ var xml2 = new XML(journal);
+ var art = text.split("")[1].split("")[0];
+ art = "" + art + "";
+ art = art.replace(/\-([a-z])/g, "$1");
+ var xml3 = new XML(art);
- item.complete();
- });
- });
- }
+ item.publicationTitle = xml2..journaltitle.text().toString();
+ item.journalAbbreviation = xml2..abbrevjournaltitle.text().toString();
+ item.ISSN = xml2..issn.text().toString();
+ item.publisher = xml2..publisher..publishername.text().toString();
+ item.title = xml3..titlegroup..articletitle.text().toString();
+ for (var i = 0 ; i < xml3..contribgroup..contrib.length() ; i++) {
+ var name = xml3..contribgroup..contrib[i]..name;
+ item.creators.push({firstName:name..givennames.text().toString(), lastName:name..surname.text().toString(), creatorType:"author"});
+ }
+
+ var date = xml3..pubdate[0];
+ var day = date..day.text().toString();
+ var month = date..month.text().toString();
+ var year = date..year.text().toString();
+
+ date = year;
+ if (month != "00") {
+ date = month + "/" + date;
+ }
+ if (day != "00") {
+ date = day + "/" + date;
+ }
+ item.date = date;
+ item.volume = xml3..volume.text().toString();
+ item.pages = xml3..fpage.text().toString() + "-" + xml3..lpage.text().toString();
+
+ for (var i = 0 ; i < xml3..kwdgroup..kwd.length() ; i++) {
+ item.tags.push(xml3..kwdgroup..kwd[i].text().toString());
+ }
+
+ item.attachments = [
+ {url:url, title:"SciELO Snapshot", mimeType:"text/html"}
+ ];
+
+ item.complete();
+ });
}');
REPLACE INTO translators VALUES ('0a84a653-79ea-4c6a-8a68-da933e3b504a', '1.0.0b4.r5', '', '2008-03-28 16:30:00', '0', '100', '4', 'Alexander Street Press', 'John West and Michael Berkowitz', 'http://(?:www\.)alexanderstreet',
@@ -4737,7 +5620,7 @@ function doWeb(doc, url) {
}
}');
-REPLACE INTO translators VALUES ('99f958ab-0732-483d-833f-6bd8e42f6277', '1.0.0b4.r1', '', '2008-04-28 19:30:00', '0', '100', '4', 'National Bureau of Economic Research', 'Michael Berkowitz', '^https?://(?:papers\.|www\.)?nber\.org/(papers|s|new)',
+REPLACE INTO translators VALUES ('99f958ab-0732-483d-833f-6bd8e42f6277', '1.0.0b4.r1', '', '2008-05-05 07:45:00', '0', '100', '4', 'National Bureau of Economic Research', 'Michael Berkowitz', '^https?://(?:papers\.|www\.)?nber\.org/(papers|s|new)',
'function detectWeb(doc, url) {
var namespace = doc.documentElement.namespaceURI;
var nsResolver = namespace ? function(prefix) {
@@ -9103,7 +9986,7 @@ REPLACE INTO translators VALUES ('a1a97ad4-493a-45f2-bd46-016069de4162', '1.0.0b
}');
-REPLACE INTO translators VALUES ('b61c224b-34b6-4bfd-8a76-a476e7092d43', '1.0.0b4.r5', '', '2008-05-01 15:00:00', '1', '100', '4', 'SSRN', 'Michael Berkowitz', 'http://papers\.ssrn\.com/',
+REPLACE INTO translators VALUES ('b61c224b-34b6-4bfd-8a76-a476e7092d43', '1.0.0b4.r5', '', '2008-05-05 07:45:00', '1', '100', '4', 'SSRN', 'Michael Berkowitz', 'http://papers\.ssrn\.com/',
'function detectWeb(doc, url) {
var namespace=doc.documentElement.namespaceURI;
var nsResolver=namespace?function(prefix) {
@@ -9595,7 +10478,7 @@ function doWeb(doc, url) {
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('4fd6b89b-2316-2dc4-fd87-61a97dd941e8', '1.0.0b3.r1', '', '2008-04-28 17:50:00', '1', '100', '4', 'Library Catalog (InnoPAC)', 'Simon Kornblith and Michael Berkowitz', 'https?://[^/]+/(search(\*spi)?(\?|~(S[\d]+)?)?)\??/(a|X|t)?\??',
+REPLACE INTO translators VALUES ('4fd6b89b-2316-2dc4-fd87-61a97dd941e8', '1.0.0b3.r1', '', '2008-05-15 00:30:00', '1', '200', '4', 'Library Catalog (InnoPAC)', 'Simon Kornblith and Michael Berkowitz', 'https?://[^/]+/(search(\*spi)?(\?|~(S[\d]+)?)?)\??/(a|X|t)?\??',
'function detectWeb(doc, url) {
// First, check to see if the URL alone reveals InnoPAC, since some sites don''t reveal the MARC button
var matchRegexp = new RegExp(''^https?://[^/]+/search[^/]*\\??/[^/]+(/[^/]+/[0-9]+\%2C[^/]+/frameset(.+)$)?'');
@@ -9719,7 +10602,7 @@ function doWeb(doc, url) {
if (prefix == ''x'') return namespace; else return null;
} : null;
- if (!url.match("SEARCH") && !url.match("searchtype")) {
+ if (detectWeb(doc, url) == "book") {
var matchRegexp = new RegExp(''^(.*)frameset(.+)$'');
var m = matchRegexp.exec(uri);
if (m) {
@@ -10095,7 +10978,7 @@ function doWeb(doc, url){
}
}');
-REPLACE INTO translators VALUES ('a77690cf-c5d1-8fc4-110f-d1fc765dcf88', '1.0.0b3.r1', '', '2007-12-03 03:00:00', '1', '100', '4', 'ProQuest', 'Simon Kornblith', '^https?://[^/]+/pqdweb\?((?:.*\&)?did=.*&Fmt=[0-9]|(?:.*\&)Fmt=[0-9].*&did=|(?:.*\&)searchInterface=|(?:.*\&)TS=[0-9])',
+REPLACE INTO translators VALUES ('a77690cf-c5d1-8fc4-110f-d1fc765dcf88', '1.0.0b3.r1', '', '2008-05-15 18:30:00', '1', '100', '4', 'ProQuest', 'Simon Kornblith', '^https?://[^/]+/pqdweb\?((?:.*\&)?did=.*&Fmt=[0-9]|(?:.*\&)Fmt=[0-9].*&did=|(?:.*\&)searchInterface=|(?:.*\&)TS=[0-9])',
'function detectWeb(doc, url) {
var namespace = doc.documentElement.namespaceURI;
var nsResolver = namespace ? function(prefix) {
@@ -10140,10 +11023,8 @@ REPLACE INTO translators VALUES ('a77690cf-c5d1-8fc4-110f-d1fc765dcf88', '1.0.0b
//^https?://[^/]+/pqdweb\?((?:.*\&)?did=.*&Fmt=[0-9]|(?:.*\&)Fmt=[0-9].*&did=|(?:.*\&)searchInterface=)',
'function parseRIS(uris) {
-
Zotero.Utilities.HTTP.doGet(uris, function(text, xmlhttp, url){
// load translator for RIS
-
if(url.match("exportFormat=1")=="exportFormat=1") {
var translator = Zotero.loadTranslator("import");
translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7");
@@ -10167,7 +11048,7 @@ REPLACE INTO translators VALUES ('a77690cf-c5d1-8fc4-110f-d1fc765dcf88', '1.0.0b
}
}
}
-
+ if (item.publicationTitle) item.publicationTitle = Zotero.Utilities.trimInternal(item.publicationTitle.replace(/\([\d\-]+\)/g, ""));
item.complete();
});
@@ -12325,6 +13206,161 @@ REPLACE INTO translators VALUES ('a326fc49-60c2-405b-8f44-607e5d18b9ad', '1.0.0b
Zotero.wait();
}');
+REPLACE INTO translators VALUES ('c3edb423-f267-47a1-a8c2-158c247f87c2', '1.0.0b4.r5', '', '2008-05-06 08:15:00', '0', '100', '4', 'Common-Place', 'Frederick Gibbs', 'http://www.common-place\.|historycooperative\.org/journals/cp',
+'function detectWeb(doc, url) {
+ if(doc.title.indexOf("Previous Issues") != -1 || doc.title.indexOf("Search Site") != -1 ) {
+ return "multiple";
+ } else {
+ return "journalArticle";
+ }
+}',
+'function scrape(doc) {
+
+ var namespace = doc.documentElement.namespaceURI;
+ var nsResolver = namespace ? function(prefix) {
+ if (prefix == ''x'') return namespace; else return null;
+ } : null;
+
+ var newItem = new Zotero.Item("journalArticle");
+ newItem.publicationTitle = "Common-Place";
+ newItem.url = doc.location.href;
+
+
+ //get issue year and month
+ //these will determine what xpaths we use for title and author
+ var pubDate;
+ var dateRe = /(.*)<\/a><\/b>/;
+ var m = dateRe.exec(Zotero.Utilities.trimInternal(doc.getElementsByTagName("body")[0].innerHTML));
+
+ if(m) {
+ //newItem.title = Zotero.Utilities.trimInternal(Zotero.Utilities.unescapeHTML(m[1]));
+ pubDate = m[1];
+ } else {
+ pubDate = doc.evaluate(''//div[@id="container"]/div[@id="top"]/p/b/a[2]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent;
+ }
+ var d;
+ //Zotero.debug(pubDate);
+ pubDateVolRE = /vol. (.*) · no. /;
+ d = pubDateVolRE.exec(pubDate);
+ newItem.volume = d[1];
+
+ pubDateVolRE = /no. (.*) ·/;
+ d = pubDateVolRE.exec(pubDate);
+ newItem.issue = d[1];
+
+ pubDateVolRE = /no. [0-9] · (.*)/;
+ d = pubDateVolRE.exec(pubDate);
+ newItem.date = d[1];
+
+ //usually the page begins with the article title or book title (of reviewed book)
+ //some pages have an image just before them, so we need to skip it if it''s there.
+ var pLevel;
+ var m=doc.evaluate(''//div[@id="content"]/p[1]/img'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext();
+
+ //if there is an image here, offset the xpath
+ if (m == null) {
+ pLevel = ''//div[@id="content"]/p[1]'';
+ } else {
+ pLevel = ''//div[@id="content"]/p[2]'';
+ }
+
+ //issues before 2004 have a table based layout, so a totally different xpath.
+ //check to see if we have anything, then try again if we don''t.
+ var author;
+ var title;
+
+ author = doc.evaluate(pLevel+''/span[1]'', doc, nsResolver, XPathResult.ANY_TYPE, null);
+ author = author.iterateNext();
+
+ if (author != null) {
+ //Zotero.debug("au"+author+"au");
+ var title = doc.evaluate(pLevel+''/span[2]'', doc, nsResolver, XPathResult.ANY_TYPE, null);
+ //Zotero.debug("ti"+title+"ti");
+ title = title.iterateNext().textContent;
+
+ //determine if we have a book review
+ // if so, get the publication information
+ if (author.textContent.indexOf("Review by") != -1 ) {
+ newItem.title = String.concat("Review of ", title);
+ newItem.author = author.textContent.substring(10);
+ } else {
+ newItem.author = author.textContent;
+ newItem.title = title;
+ }
+
+ }
+ else { //we have older issue
+
+ //check if we are on a review
+ var review = doc.evaluate(''/html/body/table/tbody/tr/td[2]/p[2]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext();
+ var temp = review.textContent;
+ if (temp.indexOf("Review") != -1) {
+ title = doc.evaluate(''/html/body/table/tbody/tr/td[2]/p/i'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent;
+ title = "Review of " + title;
+ author = review.textContent.substring(10);
+ } else { //for articles
+ title = doc.evaluate(''/html/body/table/tbody/tr/td[2]/p/b'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent;
+ author = doc.evaluate(''/html/body/table/tbody/tr/td[2]/p[1]'', doc, null, XPathResult.ANY_TYPE, null).iterateNext().textContent.split(/\n/)[1];
+ //Zotero.debug(author);
+ }
+ newItem.author = author;
+ newItem.title = title;
+ }
+
+ newItem.attachments.push({document:doc, title:doc.title});
+
+ newItem.complete();
+}
+
+function doWeb(doc, url) {
+var type = detectWeb(doc, url);
+if (type == "multiple") {
+
+ var namespace = doc.documentElement.namespaceURI;
+ var nsResolver = namespace ? function(prefix) {
+ if (prefix == ''x'') return namespace; else return null;
+ } : null;
+
+ //create list of items
+ //what about home page (current issue table of contents?)
+ //for search result links: /html/body/table[2]/tbody/tr/td[2]/li[3]/a
+ //for previous issues: //tr/td/p/a/b (but we need to strip out volume links (starts with ''Volume'')
+
+ var link;
+ var title;
+ var items = new Object();
+ var searchLinks = doc.evaluate(''/html/body/table[2]/tbody/tr/td[2]/li/a'', doc, nsResolver, XPathResult.ANY_TYPE, null);
+
+ while (elmt = searchLinks.iterateNext()) {
+ Zotero.debug(elmt.textContent);
+ title = elmt.textContent;
+ link = elmt.href;
+ if (title && link){
+ items[link] = title;
+ }
+ }
+
+ items = Zotero.selectItems(items);
+
+ if(!items) {
+ return true;
+ }
+
+ var uris = new Array();
+ for(var i in items) {
+ uris.push(i);
+ }
+
+ Zotero.Utilities.processDocuments(uris, function(doc) { scrape(doc) },
+ function() { Zotero.done(); }, null);
+
+ Zotero.wait();
+ } else {
+ scrape(doc);
+ }
+}');
+
+
REPLACE INTO translators VALUES ('37445f52-64fa-4a2a-9532-35753520a0f0', '1.0.0b4.r5', '', '2008-01-16 06:30:00', '0', '100', '4', 'HeinOnline', 'Michael Berkowitz', 'http://heinonline\.org/HOL/',
'function detectWeb(doc, url) {
if (url.indexOf("LuceneSearch") != -1) {
@@ -13382,7 +14418,7 @@ function doWeb(doc, url) {
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('d0b1914a-11f1-4dd7-8557-b32fe8a3dd47', '1.0.0b3.r1', '', '2008-05-03 06:00:00', '1', '100', '4', 'EBSCOhost', 'Simon Kornblith', 'https?://[^/]+/(?:bsi|ehost)/(?:results|detail|folder)',
+REPLACE INTO translators VALUES ('d0b1914a-11f1-4dd7-8557-b32fe8a3dd47', '1.0.0b3.r1', '', '2008-05-05 07:45:00', '1', '100', '4', 'EBSCOhost', 'Simon Kornblith', 'https?://[^/]+/(?:bsi|ehost)/(?:results|detail|folder)',
'function detectWeb(doc, url) {
var namespace = doc.documentElement.namespaceURI;
var nsResolver = namespace ? function(prefix) {
@@ -14478,7 +15514,7 @@ REPLACE INTO translators VALUES ('232903bc-7307-4058-bb1a-27cfe3e4e655', '1.0.0b
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('fe728bc9-595a-4f03-98fc-766f1d8d0936', '1.0.0b4.r5', '', '2007-12-03 22:00:00', '0', '100', '4', 'Wiley InterScience', 'Sean Takats', 'https?:\/\/(?:www3\.|www\.)?interscience\.wiley\.com[^\/]*\/(?:search\/|cgi-bin\/abstract\/[0-9]+)',
+REPLACE INTO translators VALUES ('fe728bc9-595a-4f03-98fc-766f1d8d0936', '1.0.0b4.r5', '', '2008-05-15 00:30:00', '0', '100', '4', 'Wiley InterScience', 'Sean Takats and Michael Berkowitz', 'https?:\/\/(?:www3\.|www\.)?interscience\.wiley\.com[^\/]*\/(?:search\/|(cgi-bin|journal)\/[0-9]+\/abstract|journal)',
'function detectWeb(doc, url){
var namespace = doc.documentElement.namespaceURI;
var nsResolver = namespace ? function(prefix) {
@@ -14489,33 +15525,50 @@ REPLACE INTO translators VALUES ('fe728bc9-595a-4f03-98fc-766f1d8d0936', '1.0.0b
if(doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) {
return "multiple";
}
- var m = url.match(/https?:\/\/[^\/]*\/cgi-bin\/abstract\/[0-9]+/);
+ if (doc.evaluate(''//div[@id="contentCell"]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) {
+ return "multiple";
+ }
+ var m = url.match(/https?:\/\/[^\/]*\/(cgi-bin|journal)(\/abstract)?\/[0-9]+(\/abstract)?/);
if (m){
return "journalArticle";
}
}',
'function doWeb(doc, url){
+ Zotero.debug(doc.location.host);
var namespace = doc.documentElement.namespaceURI;
var nsResolver = namespace ? function(prefix) {
if (prefix == ''x'') return namespace; else return null;
} : null;
- var m = url.match(/https?:\/\/[^\/]*\/cgi-bin\/abstract\/([0-9]+)/);
+ var m = url.match(/https?:\/\/[^\/]*\/journal\/([0-9]+)\/abstract/);
var ids = new Array();
- var xpath = ''//tr[td/input[@name="ID"][@type="checkbox"]]'';
+ /*var xpath = ''//tr[td/input[@name="ID"][@type="checkbox"]]'';
var elmt;
var elmts = doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null);
- elmt = elmts.iterateNext();
- if(elmt) { //search
+ elmt = elmts.iterateNext();*/
+ if(detectWeb(doc, url) == "multiple") { //search
var id;
var title;
var availableItems = new Array();
- do {
- title = doc.evaluate(''./td/strong'', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent;
- id = doc.evaluate(''./td/input[@name="ID"][@type="checkbox"]'', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().value;
- availableItems[id] = title;
- } while (elmt = elmts.iterateNext())
-
+ var xpath = ''//tr[td/input[@name="ID"][@type="checkbox"]]'';
+ if (doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) {
+ elmts = doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null);
+ var elmt = elmts.iterateNext();
+ do {
+ title = doc.evaluate(''./td/strong'', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent;
+ id = doc.evaluate(''./td/input[@name="ID"][@type="checkbox"]'', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().value;
+ availableItems[id] = title;
+ } while (elmt = elmts.iterateNext())
+ } else {
+ var xpath = ''//div[@id="contentCell"]/div[*/a]'';
+ var elmts = doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null);
+ var elmt = elmts.iterateNext();
+ do {
+ title = Zotero.Utilities.trimInternal(doc.evaluate(''.//strong'', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent);
+ id = doc.evaluate(''.//a[1]'', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().href.match(/abstract\/([\d]+)\//)[1];
+ availableItems[id] = title;
+ } while (elmt = elmts.iterateNext())
+ }
var items = Zotero.selectItems(availableItems);
if(!items) {
return true;
@@ -14527,7 +15580,6 @@ REPLACE INTO translators VALUES ('fe728bc9-595a-4f03-98fc-766f1d8d0936', '1.0.0b
} else if (m){ //single article
ids.push(m[1]);
}
-
var hostRe = new RegExp("^http(?:s)?://[^/]+");
var m = hostRe.exec(doc.location.href);
var host = m[0];
@@ -14547,7 +15599,7 @@ REPLACE INTO translators VALUES ('fe728bc9-595a-4f03-98fc-766f1d8d0936', '1.0.0b
var authors = m[1].split(",")
for each (var author in authors){
if (author != ""){
- newauthors = newauthors + "%A "+Zotero.Utilities.trimInternal(author)+"\n";
+ newauthors = newauthors + "%A "+Zotero.Utilities.unescapeHTML(Zotero.Utilities.trimInternal(author))+"\n";
}
}
text = text.replace(/%A\s.*\n/, newauthors);
@@ -14555,6 +15607,10 @@ REPLACE INTO translators VALUES ('fe728bc9-595a-4f03-98fc-766f1d8d0936', '1.0.0b
var translator = Zotero.loadTranslator("import");
translator.setTranslator("881f60f2-0802-411a-9228-ce5f47b64c7d"); //EndNote/Refer/BibIX
translator.setString(text);
+ translator.setHandler("itemDone", function(obj, item) {
+ item.DOI = item.url.match(/\.org\/(.*)$/)[1];
+ item.complete();
+ });
translator.translate();
Zotero.done();
});
@@ -14925,7 +15981,7 @@ REPLACE INTO translators VALUES ('2c310a37-a4dd-48d2-82c9-bd29c53c1c76', '1.0.0b
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('cde4428-5434-437f-9cd9-2281d14dbf9', '1.0.0b3.r1', '', '2008-04-23 09:45:00', '1', '100', '4', 'Ovid', 'Simon Kornblith and Michael Berkowitz', '/(gw2|spa|spb)/ovidweb\.cgi',
+REPLACE INTO translators VALUES ('cde4428-5434-437f-9cd9-2281d14dbf9', '1.0.0b3.r1', '', '2008-05-08 20:30:00', '1', '100', '4', 'Ovid', 'Simon Kornblith and Michael Berkowitz', '/(gw2|spa|spb)/ovidweb\.cgi',
'function detectWeb(doc, url) {
var namespace = doc.documentElement.namespaceURI;
var nsResolver = namespace ? function(prefix) {
@@ -14997,8 +16053,12 @@ function doWeb(doc, url) {
if (detectWeb(doc, url) == "multiple") {
var selectvar = doc.evaluate(''.//input[@name="SELECT"]'', doc, nsResolver, XPathResult.ANY_TYPE, null);
- var nextselect = selectvar.iterateNext();
- post += "&SELECT="+ selectvar.iterateNext().value;
+ var nextselect = selectvar.iterateNext().value;
+ if (next = selectvar.iterateNext()) {
+ post += "&SELECT=" + next.value;
+ } else {
+ post += "&SELECT="+ nextselect;
+ }
} else {
post += "&SELECT=" + doc.evaluate(''.//input[@name="SELECT"]'', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().value;
}
@@ -15446,9 +16506,9 @@ REPLACE INTO translators VALUES ('6614a99-479a-4524-8e30-686e4d66663e', '1.0.0b3
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('92d4ed84-8d0-4d3c-941f-d4b9124cfbb', '1.0.0b3.r1', '', '2008-02-27 15:00:00', '1', '100', '4', 'IEEE Xplore', 'Simon Kornblith and Michael Berkowitz', 'https?://[^/]*ieeexplore.ieee.org[^/]*/(?:[^\?]+\?(?:|.*&)arnumber=[0-9]+|search/(?:searchresult.jsp|selected.jsp))',
+REPLACE INTO translators VALUES ('92d4ed84-8d0-4d3c-941f-d4b9124cfbb', '1.0.0b3.r1', '', '2008-05-08 20:30:00', '1', '100', '4', 'IEEE Xplore', 'Simon Kornblith and Michael Berkowitz', 'https?://[^/]*ieeexplore.ieee.org[^/]*/(?:[^\?]+\?(?:|.*&)arnumber=[0-9]+|search/(?:searchresult.jsp|selected.jsp))',
'function detectWeb(doc, url) {
- var articleRe = /[?&]arnumber=([0-9]+)/;
+ var articleRe = /[?&]ar(N|n)umber=([0-9]+)/;
var m = articleRe.exec(url);
if(m) {
@@ -15465,10 +16525,10 @@ REPLACE INTO translators VALUES ('92d4ed84-8d0-4d3c-941f-d4b9124cfbb', '1.0.0b3.
if (prefix == ''x'') return namespace; else return null;
} : null;
- var articleRe = /[?&]arnumber=([0-9]+)/;
+ var articleRe = /[?&]ar(N|n)umber=([0-9]+)/;
var m = articleRe.exec(url);
- if(!m) {
+ if(detectWeb(doc, url) == "multiple") {
// search page
var items = new Array();
@@ -15502,7 +16562,7 @@ REPLACE INTO translators VALUES ('92d4ed84-8d0-4d3c-941f-d4b9124cfbb', '1.0.0b3.
var arnumber = "";
for each(var url in urls) {
var m = articleRe.exec(url);
- arnumber = "%3Carnumber%3E"+m[1]+"%3C%2Farnumber%3E";
+ arnumber = "%3Carnumber%3E"+m[2]+"%3C%2Farnumber%3E";
var post = "dlSelect=cite_abs&fileFormate=ris&arnumber="+arnumber+"&x=5&y=10";
var isRe = /[?&]isnumber=([0-9]+)/;
var puRe = /[?&]punumber=([0-9]+)/;
@@ -15685,7 +16745,7 @@ REPLACE INTO translators VALUES ('7bdb79e-a47f-4e3d-b317-ccd5a0a74456', '1.0.0b3
Zotero.wait();
}');
-REPLACE INTO translators VALUES ('850f4c5f-71fb-4669-b7da-7fb7a95500ef', '1.0.0b3r1', '', '2008-04-29 16:00:00', '1', '100', '4', 'Cambridge Journals Online', 'Sean Takats and Michael Berkowitz', 'https?://[^/]*journals.cambridge.org[^/]*//?action/(quickSearch|search|displayAbstract|displayFulltext|displayIssue)',
+REPLACE INTO translators VALUES ('850f4c5f-71fb-4669-b7da-7fb7a95500ef', '1.0.0b3r1', '', '2008-05-05 07:45:00', '1', '100', '4', 'Cambridge Journals Online', 'Sean Takats and Michael Berkowitz', 'https?://[^/]*journals.cambridge.org[^/]*//?action/(quickSearch|search|displayAbstract|displayFulltext|displayIssue)',
'function detectWeb(doc, url) {
var namespace=doc.documentElement.namespaceURI;
var nsResolver=namespace?function(prefix) {
@@ -16622,7 +17682,7 @@ REPLACE INTO translators VALUES ('a354331-981b-43de-a61-bc26dd1be3a9', '1.0.0b3.
});
}');
-REPLACE INTO translators VALUES ('938ebe32-2b2e-4349-a5b3-b3a05d3de627', '1.0.0b3.r1', '', '2008-03-18 02:30:00', '1', '100', '4', 'ACS Publications', 'Sean Takats and Michael Berkowitz', 'http://[^/]*pubs.acs.org[^/]*/(?:wls/journals/query/(?:subscriberResults|query)\.html|acs/journals/toc.page|cgi-bin/(?:article|abstract|sample|asap).cgi)?',
+REPLACE INTO translators VALUES ('938ebe32-2b2e-4349-a5b3-b3a05d3de627', '1.0.0b3.r1', '', '2008-05-06 08:15:00', '1', '100', '4', 'ACS Publications', 'Sean Takats and Michael Berkowitz', 'http://[^/]*pubs3?.acs.org[^/]*/(?:wls/journals/query/(?:subscriberResults|query)\.html|acs/journals/toc.page|cgi-bin/(?:article|abstract|sample|asap).cgi)?',
'function detectWeb(doc, url) {
var namespace = doc.documentElement.namespaceURI;
var nsResolver = namespace ? function(prefix) {
@@ -17145,6 +18205,121 @@ REPLACE INTO translators VALUES ('66928fe3-1e93-45a7-8e11-9df6de0a11b3', '1.0.0b
Zotero.wait();
}');
+
+REPLACE INTO translators VALUES ('0507797c-9bc4-4374-92ca-9e3763b6922b', '1.0.0b4.r5', '', '2008-05-06 08:15:00', '0', '100', '4', 'World History Connected', 'Frederick Gibbs', 'worldhistoryconnected\.press|historycooperative.*/whc/', '',
+'function associateMeta(newItem, metaTags, field, zoteroField) {
+ var field = metaTags.namedItem(field);
+ if(field) {
+ newItem[zoteroField] = field.getAttribute("content");
+ }
+}
+
+function scrape(doc) {
+
+ var namespace = doc.documentElement.namespaceURI;
+ var nsResolver = namespace ? function(prefix) {
+ if (prefix == ''x'') return namespace; else return null;
+ } : null;
+
+ var newItem = new Zotero.Item("journalArticle");
+ newItem.url = doc.location.href;
+
+ var titlePath;
+ var bookTitle;
+ var month, year;
+ var metaTags = doc.getElementsByTagName("meta");
+
+ associateMeta(newItem, metaTags, "Journal", "publicationTitle");
+ associateMeta(newItem, metaTags, "Volume", "volume");
+ associateMeta(newItem, metaTags, "Issue", "issue");
+
+ // in the case of book reviews, the title field is blank
+ //but quotes are not escaped properly, so if an article title begins with quotes, then the title tag looks blank even though it is not.
+ //(though semantically it is)
+ //they use the meta tag ''FileType'' to indicate Aritlce or Book Review. silly, but we can use it.
+
+ if (metaTags.namedItem(''FileType'').getAttribute("content") == ''Book Review'') {
+ //for a book review, title of reviewed book is
+ titlePath = ''/html/body/table[4]/tbody/tr[3]/td[1]/i'';
+ newItem.title = "Review of " + doc.evaluate(titlePath, doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent;
+
+ } else {
+ //it would be nice to grab the title from the meta tags, but quotations are properly escaped and the tags are therefore malformed.
+ titlePath = ''/html/body/table[4]/tbody/tr[2]/td[1]/h2/font/b'';
+ newItem.title = Zotero.Utilities.superCleanString(doc.evaluate(titlePath, doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent);
+ }
+
+ var author = metaTags.namedItem("Author");
+ if(author) {
+ var authors = author.getAttribute("content").split(" and ");
+ for(j in authors) {
+ authors[j] = authors[j].replace("Reviewed by ", "");
+ newItem.creators.push(Zotero.Utilities.cleanAuthor(authors[j], "author"));
+ }
+ }
+
+ var month = metaTags.namedItem("PublicationMonth");
+ var year = metaTags.namedItem("PublicationYear");
+ if(month && year) {
+ newItem.date = month.getAttribute("content")+" "+year.getAttribute("content");
+ }
+
+ newItem.attachments.push({document:doc, title:"World History Connected Snapshot"});
+
+ newItem.complete();
+}
+
+function doWeb(doc, url) {
+
+ var searchLinks;
+
+ var namespace = doc.documentElement.namespaceURI;
+ var nsResolver = namespace ? function(prefix) {
+ if (prefix == ''x'') return namespace; else return null;
+ } : null;
+
+ if(doc.title.indexOf("Contents") != -1 || doc.title.indexOf("Search results") != -1) {
+
+ if(doc.title.indexOf("Contents") != -1) {
+ searchLinks = doc.evaluate(''//tbody/tr[2]/td[1]/table/tbody/tr/td/a'', doc, nsResolver, XPathResult.ANY_TYPE, null);
+ }
+ else if ( doc.title.indexOf("Search results") != -1) {
+ searchLinks = doc.evaluate(''/html/body/dl/dt/strong/a'', doc, nsResolver, XPathResult.ANY_TYPE, null);
+ }
+
+ var link;
+ var title;
+ var items = new Object();
+
+ while (elmt = searchLinks.iterateNext()) {
+ Zotero.debug(elmt.href);
+ title = Zotero.Utilities.superCleanString(elmt.textContent);
+ link = elmt.href;
+ if (title && link){
+ items[link] = title;
+ }
+ }
+
+ items = Zotero.selectItems(items);
+
+ if(!items) {
+ return true;
+ }
+
+ var uris = new Array();
+ for(var i in items) {
+ uris.push(i);
+ }
+
+ Zotero.Utilities.processDocuments(uris, function(doc) { scrape(doc) },
+ function() { Zotero.done(); }, null);
+
+ Zotero.wait();
+ } else {
+ scrape(doc);
+ }
+}');
+
REPLACE INTO translators VALUES ('c73a4a8c-3ef1-4ec8-8229-7531ee384cc4', '1.0.0b3.r1', '', '2007-11-05 18:00:00', '1', '100', '4', 'Open WorldCat (Web)', 'Sean Takats', '^http://(?:www\.)?worldcat\.org/(?:search\?|profiles/[^/]+/lists/)',
'function detectWeb(doc, url){
var nsResolver = doc.createNSResolver(doc.documentElement);
@@ -19935,7 +21110,7 @@ function doExport() {
}
}');
-REPLACE INTO translators VALUES ('9cb70025-a888-4a29-a210-93ec52da40d4', '1.0.0b4.r1', '', '2008-03-26 16:04:37', '1', '200', '3', 'BibTeX', 'Simon Kornblith', 'bib',
+REPLACE INTO translators VALUES ('9cb70025-a888-4a29-a210-93ec52da40d4', '1.0.0b4.r1', '', '2008-05-06 18:45:00', '1', '200', '3', 'BibTeX', 'Simon Kornblith', 'bib',
'Zotero.configure("dataMode", "block");
Zotero.addOption("UTF8", true);
@@ -21521,6 +22696,8 @@ function processField(item, field, value) {
} else {
item.tags = value.split(/, ?/g);
}
+ } else if (field == "comment") {
+ item.notes.push({note:value});
}
}
@@ -21904,13 +23081,17 @@ function doExport() {
if(item.itemType == "webpage") {
writeField("howpublished", item.url);
}
-
+ if (item.notes) {
+ for each (var note in item.notes) {
+ writeField("comment", note["note"]);
+ }
+ }
Zotero.write("\n}");
}
}');
-REPLACE INTO translators VALUES ('a6ee60df-1ddc-4aae-bb25-45e0537be973', '1.0.0b3.r1', '', '2008-04-30 18:15:00', '1', '100', '1', 'MARC', 'Simon Kornblith', 'marc',
+REPLACE INTO translators VALUES ('a6ee60df-1ddc-4aae-bb25-45e0537be973', '1.0.0b3.r1', '', '2008-05-05 07:45:00', '1', '100', '1', 'MARC', 'Simon Kornblith', 'marc',
'function detectImport() {
var marcRecordRegexp = /^[0-9]{5}[a-z ]{3}$/
var read = Zotero.read(8);
@@ -22645,20 +23826,20 @@ function doExport() {
-- CSL styles
--
-- ----------------------------------------------------------------
-REPLACE INTO csl VALUES ('http://www.zotero.org/syles/ama', '2008-02-02 00:00:00', 'American Medical Association',
+REPLACE INTO csl VALUES ('http://www.zotero.org/styles/ama', '2008-05-08 19:00:00', 'American Medical Association',
'
');
-REPLACE INTO csl VALUES ('http://www.zotero.org/styles/apa', '2008-02-02 00:00:00', 'American Psychological Association',
+REPLACE INTO csl VALUES ('http://www.zotero.org/styles/apa', '2008-05-08 19:00:00', 'American Psychological Association',
'
@@ -23200,11 +24424,11 @@ REPLACE INTO csl VALUES ('http://www.zotero.org/styles/apsa', '2008-02-02 00:00:
');
-REPLACE INTO csl VALUES ('http://www.zotero.org/styles/asa', '2008-02-02 00:00:00', 'American Sociological Association (Author-Date)',
+REPLACE INTO csl VALUES ('http://www.zotero.org/styles/asa', '2008-05-08 19:00:00', 'American Sociological Association',
'
');
-REPLACE INTO csl VALUES ('http://www.zotero.org/styles/chicago-author-date', '2008-02-02 00:00:00', 'Chicago Manual of Style (Author-Date format)',
+REPLACE INTO csl VALUES ('http://www.zotero.org/styles/chicago-author-date', '2008-05-15 01:15:00', 'Chicago Manual of Style (Author-Date format)',
'
');
-REPLACE INTO csl VALUES ('http://www.zotero.org/styles/chicago-fullnote-bibliography', '2008-02-02 00:00:00', 'Chicago Manual of Style (Full Note with Bibliography)',
+REPLACE INTO csl VALUES ('http://www.zotero.org/styles/chicago-fullnote-bibliography', '2008-05-15 01:15:00', 'Chicago Manual of Style (Full Note with Bibliography)',
'
');
-REPLACE INTO csl VALUES ('http://www.zotero.org/styles/chicago-note-bibliography', '2008-02-02 00:00:00', 'Chicago Manual of Style (Note with Bibliography)',
+REPLACE INTO csl VALUES ('http://www.zotero.org/styles/chicago-note-bibliography', '2008-05-15 01:15:00', 'Chicago Manual of Style (Note with Bibliography)',
'
');
-REPLACE INTO csl VALUES ('http://www.zotero.org/styles/chicago-note', '2008-02-02 00:00:00', 'Chicago Manual of Style (Note without Bibliography)',
+REPLACE INTO csl VALUES ('http://www.zotero.org/styles/chicago-note', '2008-05-15 01:15:00', 'Chicago Manual of Style (Note without Bibliography)',
'
');
-REPLACE INTO csl VALUES ('http://www.zotero.org/styles/ieee', '2008-02-02 00:00:00', 'IEEE',
+REPLACE INTO csl VALUES ('http://www.zotero.org/styles/ieee', '2008-05-08 19:00:00', 'IEEE',
'
');
-REPLACE INTO csl VALUES ('http://www.zotero.org/styles/harvard1', '2008-02-02 00:00:00', 'Harvard Reference format 1 (Author-Date)',
+REPLACE INTO csl VALUES ('http://www.zotero.org/styles/harvard1', '2008-05-08 19:00:00', 'Harvard Reference format 1 (Author-Date)',
'
');
-REPLACE INTO csl VALUES ('http://www.zotero.org/styles/mla', '2008-02-02 00:00:00', 'Modern Language Association',
+REPLACE INTO csl VALUES ('http://www.zotero.org/styles/mla', '2008-05-08 19:00:00', 'Modern Language Association',
'
');
-REPLACE INTO csl VALUES ('http://www.zotero.org/styles/nature', '2008-02-02 00:00:00', 'Nature Journal',
+REPLACE INTO csl VALUES ('http://www.zotero.org/styles/nature', '2008-05-08 19:00:00', 'Nature Journal',
'