fixed an issue that could prevent MARC fields below 100 (ISBN and call number) from appearing in records
This commit is contained in:
parent
b0b82a6369
commit
4b756d700b
|
@ -1,4 +1,4 @@
|
||||||
-- 67
|
-- 68
|
||||||
|
|
||||||
-- Set the following timestamp to the most recent scraper update date
|
-- Set the following timestamp to the most recent scraper update date
|
||||||
REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-08-15 15:42:00'));
|
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
|
// add a field to this record
|
||||||
record.prototype.addField = function(field, indicator, value) {
|
record.prototype.addField = function(field, indicator, value) {
|
||||||
|
field = parseInt(field, 10);
|
||||||
// make sure indicator is the right length
|
// make sure indicator is the right length
|
||||||
if(indicator.length > this.indicatorLength) {
|
if(indicator.length > this.indicatorLength) {
|
||||||
indicator = indicator.substr(0, 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
|
// get all fields with a certain field number
|
||||||
record.prototype.getField = function(field) {
|
record.prototype.getField = function(field) {
|
||||||
|
field = parseInt(field, 10);
|
||||||
var fields = new Array();
|
var fields = new Array();
|
||||||
|
|
||||||
// make sure fields exist
|
// make sure fields exist
|
||||||
|
|
Loading…
Reference in New Issue
Block a user