Skip to content

Commit 6ca4bc3

Browse files
committed
fix LoC SRU to use new format ( http://www.loc.gov/standards/sru/lcServers.html ) which seems more reliable.
Some compat updates (@simonster - you're aware tests are down again?)
1 parent 991cfc6 commit 6ca4bc3

9 files changed

+20
-19
lines changed

Archiv fuer Sozialgeschichte.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
11-
"browserSupport": "gcv",
12-
"lastUpdated": "2013-05-10 05:23:14"
11+
"browserSupport": "gcbv",
12+
"lastUpdated": "2013-05-15 20:05:47"
1313
}
1414

1515
/*

DTU Orbit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
11-
"browserSupport": "gcv",
12-
"lastUpdated": "2013-05-08 23:03:38"
11+
"browserSupport": "gcbv",
12+
"lastUpdated": "2013-05-15 20:05:47"
1313
}
1414

1515
/*

HLAS (historical).js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"translatorID": "9f52911f-e1b5-41f8-be66-b16982269e6a",
33
"label": "HLAS (historical)",
44
"creator": "Sebastian Karcher",
5-
"target": "http://lcweb2.loc.gov/cgi-bin/query",
5+
"target": "^https?://lcweb2\\.loc\\.gov/cgi-bin/query",
66
"minVersion": "3.0",
77
"maxVersion": "",
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsv",
12-
"lastUpdated": "2013-04-15 18:04:37"
12+
"lastUpdated": "2013-06-01 14:47:30"
1313
}
1414

1515
/*
@@ -74,7 +74,8 @@ function scrape(doc, url){
7474
//scrape the LC control number from the page and get LoC catalog data for it via SRU
7575
var idnumbers = ZU.xpathText(doc, '//body/p[b[contains(text(), "LC Control No")]]');
7676
if (idnumbers) var LCcontrol = idnumbers.match(/LC Control No\:\s*(\d+)/)[1]
77-
ZU.doGet("http://z3950.loc.gov:7090/voyager?version=1.1&operation=searchRetrieve&query=dc.resourceIdentifier=" + LCcontrol + "&maximumRecords=1", function (text) {
77+
Z.debug(LCcontrol)
78+
ZU.doGet("http://lx2.loc.gov:210/LCDB?operation=searchRetrieve&version=1.1&query=bath.LCCN=" + LCcontrol + "&maximumRecords=1", function (text) {
7879
//Z.debug(text);
7980
var translator = Zotero.loadTranslator("import");
8081
translator.setTranslator("edd87d07-9194-42f8-b2ad-997c4c7deefd");

Hindawi Publishers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
11-
"browserSupport": "gcsv",
12-
"lastUpdated": "2013-05-08 23:03:38"
11+
"browserSupport": "gcsbv",
12+
"lastUpdated": "2013-05-15 20:05:47"
1313
}
1414

1515
/*

Library Catalog (Aquabrowser).js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
11-
"browserSupport": "gcs",
12-
"lastUpdated": "2013-04-25 14:10:42"
11+
"browserSupport": "gcsbv",
12+
"lastUpdated": "2013-05-15 20:05:47"
1313
}
1414

1515
/*

Library Catalog (PICA2).js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"priority": 199,
99
"inRepository": true,
1010
"translatorType": 4,
11-
"browserSupport": "gcsv",
12-
"lastUpdated": "2013-05-10 05:23:14"
11+
"browserSupport": "gcsbv",
12+
"lastUpdated": "2013-05-15 20:05:47"
1313
}
1414

1515
/*

Library of Congress ISBN.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ function detectSearch(item) {
2525
function doSearch(item) {
2626
//Sends an SRU formatted as CQL to the library of Congress asking for marcXML back
2727
//http://www.loc.gov/standards/sru/
28-
ZU.doGet("http://z3950.loc.gov:7090/voyager?version=1.1&operation=searchRetrieve&query=dc.resourceIdentifier=" + ZU.cleanISBN(item.ISBN) + "&maximumRecords=1", function (text) {
29-
//Z.debug(text);
28+
ZU.doGet("http://lx2.loc.gov:210/LCDB?operation=searchRetrieve&version=1.1&query=bath.ISBN=" + ZU.cleanISBN(item.ISBN) + "&maximumRecords=1", function (text) {
29+
Z.debug(text);
3030
var translator = Zotero.loadTranslator("import");
3131
translator.setTranslator("edd87d07-9194-42f8-b2ad-997c4c7deefd");
3232
translator.setString(text);

National Archive of the UK.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
11-
"browserSupport": "gcv",
12-
"lastUpdated": "2013-05-08 23:03:38"
11+
"browserSupport": "gcbv",
12+
"lastUpdated": "2013-05-15 20:05:47"
1313
}
1414

1515
/**

Oxford Music and Art Online.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"priority": 100,
99
"inRepository": true,
1010
"translatorType": 4,
11-
"browserSupport": "gcsib",
12-
"lastUpdated": "2012-01-30 22:44:47"
11+
"browserSupport": "gcsibv",
12+
"lastUpdated": "2013-05-14 21:20:45"
1313
}
1414

1515
function detectWeb(doc, url) {

0 commit comments

Comments
 (0)