From a76ae6d966ccecee7082081c602035da40e7508f Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 11 Oct 2010 16:06:52 +0000 Subject: [PATCH] supply a dummy leader, as required by the Perl MARC modules git-svn-id: svn://svn.open-ils.org/ILS/trunk@18261 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/MARC/Record.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/dojo/MARC/Record.js b/Open-ILS/web/js/dojo/MARC/Record.js index d2f6b1d2be..f9385502bc 100644 --- a/Open-ILS/web/js/dojo/MARC/Record.js +++ b/Open-ILS/web/js/dojo/MARC/Record.js @@ -27,7 +27,7 @@ if(!dojo._hasResource["MARC.Record"]) { constructor : function(kwargs) { this.fields = []; - this.leader = ''; + this.leader = '00000cam a2200205Ka 4500'; if (kwargs.delimiter) this.delimiter = kwargs.delimiter; if (kwargs.onLoad) this.onLoad = kwargs.onLoad; @@ -151,7 +151,7 @@ if(!dojo._hasResource["MARC.Record"]) { fromXmlDocument : function (mxml) { var me = this; - me.leader = dojox.xml.parser.textContent(dojo.query('leader', mxml)[0]) || ''; + me.leader = dojox.xml.parser.textContent(dojo.query('leader', mxml)[0]) || '00000cam a2200205Ka 4500'; dojo.forEach( dojo.query('controlfield', mxml), function (cf) { me.fields.push( @@ -240,7 +240,7 @@ if(!dojo._hasResource["MARC.Record"]) { // skip comment lines } else if (isControlField(current_line)) { if (line_tag(current_line) == 'LDR') { - me.leader = cf_line_data(current_line) || ''; + me.leader = cf_line_data(current_line) || '00000cam a2200205Ka 4500'; } else { me.fields.push( new MARC.Field({ -- 2.11.0