-Removes debug from InnoPAC translator
This commit is contained in:
parent
3d0e48bd88
commit
630de4d1ef
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
-- Set the following timestamp to the most recent scraper update date
|
||||
REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2008-03-05 17:30:00'));
|
||||
REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2008-03-05 18:00:00'));
|
||||
|
||||
REPLACE INTO translators VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '1.0.0b4.r1', '', '2007-06-21 20:00:00', '1', '100', '4', 'Amazon.com', 'Sean Takats', '^https?://(?:www\.)?amazon',
|
||||
'function detectWeb(doc, url) {
|
||||
|
@ -6964,7 +6964,7 @@ function doWeb(doc, url) {
|
|||
Zotero.wait();
|
||||
}');
|
||||
|
||||
REPLACE INTO translators VALUES ('4fd6b89b-2316-2dc4-fd87-61a97dd941e8', '1.0.0b3.r1', '', '2008-03-05 17:30:00', '1', '100', '4', 'Library Catalog (InnoPAC)', 'Simon Kornblith', 'https?://[^/]+/(?:search\??/|record=?|search%7e/|search~S0\?)',
|
||||
REPLACE INTO translators VALUES ('4fd6b89b-2316-2dc4-fd87-61a97dd941e8', '1.0.0b3.r1', '', '2008-03-05 18:00:00', '1', '100', '4', 'Library Catalog (InnoPAC)', 'Simon Kornblith', 'https?://[^/]+/(?:search\??/|record=?|search%7e/|search~S0\?)',
|
||||
'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(.+)$'');
|
||||
|
@ -7076,7 +7076,6 @@ function doWeb(doc, url) {
|
|||
var marc = translator.getTranslatorObject();
|
||||
|
||||
var matchRegexp = new RegExp(''^(https?://[^/]+/search\\??/[^/]+/[^/]+/[0-9]+\%2C[^/]+/)frameset(.+)$'');
|
||||
Zotero.debug(matchRegexp);
|
||||
var m = matchRegexp.exec(uri);
|
||||
if(m) {
|
||||
newUri = m[1]+''marc''+m[2];
|
||||
|
|
Loading…
Reference in New Issue
Block a user