commit 4b756d700b2964653811f2b7a43b7e15d31bdc0b
parent b0b82a63694d803e523f2114ffab06b63f9b87f6
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 31 Aug 2006 05:21:41 +0000
fixed an issue that could prevent MARC fields below 100 (ISBN and call number) from appearing in records
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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