diff --git a/scrapers.sql b/scrapers.sql index 1dae508681..cfaff00a52 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -1,4 +1,4 @@ --- 2 +-- 3 DELETE FROM scrapers; INSERT INTO "scrapers" VALUES(1, NULL, NULL, 20060603002000, 'Amazon.com Scraper', 'Simon Kornblith', '^http://www\.amazon\.com/gp/product/', NULL, 'var prefixRDF = ''http://www.w3.org/1999/02/22-rdf-syntax-ns#''; var prefixDC = ''http://purl.org/dc/elements/1.1/''; @@ -131,63 +131,63 @@ utilities.HTTPUtilities.doPost(newUri, ''exportselect=record&exporttype=plaintex for(var i=0;i"); + texts = texts[1].split(""); + text = texts[0]; + var lines = text.split("\n"); + + var record = new MARC_Record(); + + var tag, ind1, ind2, content; + for(var i=0; i 10) { + ind1 = line.substr(6, 1); + ind2 = line.substr(7, 1); + content = line.substr(8); + } else { + ind1 = ""; + ind2 = ""; + content = line.substring(6); + } + } + + model = utilities.importMARCRecord(record, uri, model); + done(); +}) wait();'); \ No newline at end of file