From 4b756d700b2964653811f2b7a43b7e15d31bdc0b Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 31 Aug 2006 05:21:41 +0000 Subject: [PATCH] fixed an issue that could prevent MARC fields below 100 (ISBN and call number) from appearing in records --- scrapers.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scrapers.sql b/scrapers.sql index 8040c807b..39ce57ba5 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -1,4 +1,4 @@ --- 67 +-- 68 -- Set the following timestamp to the most recent scraper update date REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-08-15 15:42:00')); @@ -5659,6 +5659,7 @@ record.prototype.importBinary = function(record) { // add a field to this record record.prototype.addField = function(field, indicator, value) { + field = parseInt(field, 10); // make sure indicator is the right length if(indicator.length > this.indicatorLength) { indicator = indicator.substr(0, this.indicatorLength); @@ -5681,6 +5682,7 @@ record.prototype.addField = function(field, indicator, value) { // get all fields with a certain field number record.prototype.getField = function(field) { + field = parseInt(field, 10); var fields = new Array(); // make sure fields exist