From cd25ecc034f1fb2c80af08e0b14f514e4ea6d39d Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 29 Jun 2006 02:54:37 +0000 Subject: [PATCH] I swear I've fixed this bug before, but make multiple item ingest work right for InnoPAC --- scrapers.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scrapers.sql b/scrapers.sql index a0d749a617..d17e466699 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -1,7 +1,7 @@ --- 29 +-- 30 -- Set the following timestamp to the most recent scraper update date -REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-06-26 21:40:00')); +REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-06-28 22:52:00')); REPLACE INTO "translators" VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '2006-06-26 16:01:00', 3, 'Amazon.com Scraper', 'Simon Kornblith', '^http://www\.amazon\.com/(?:gp/(?:product|search)/|exec/obidos/search-handle-url/)', 'if(doc.title.indexOf("search") >= 0) { @@ -680,7 +680,7 @@ if(doc.title == "History Cooperative: Search Results") { scrape(doc); }'); -REPLACE INTO "translators" VALUES ('4fd6b89b-2316-2dc4-fd87-61a97dd941e8', '2006-06-26 16:01:00', 3, 'InnoPAC Scraper', 'Simon Kornblith', '^http://[^/]+/(?:search/|record=)', +REPLACE INTO "translators" VALUES ('4fd6b89b-2316-2dc4-fd87-61a97dd941e8', '2006-06-28 22:52:00', 3, 'InnoPAC Scraper', 'Simon Kornblith', '^http://[^/]+/(?:search/|record=)', '// First, check to see if the URL alone reveals InnoPAC, since some sites don''t reveal the MARC button var matchRegexp = new RegExp(''^(http://[^/]+/search/[^/]+/[^/]+/1\%2C[^/]+/)frameset(.+)$''); if(matchRegexp.test(doc.location.href)) { @@ -794,7 +794,7 @@ if(newUri) { var m = urlRe.exec(urls[0]); var clearUrl = m[0]+"?clear_saves=1"; var postUrl = m[0]; - var actionUrl = m[2]+m[3]; + var exportUrl = m[1]+"++export/1,-1,-1,B/export"; var postString = ""; for(i in items) {