[open-ils-commits] r18261 - trunk/Open-ILS/web/js/dojo/MARC (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Oct 11 12:06:55 EDT 2010
Author: miker
Date: 2010-10-11 12:06:52 -0400 (Mon, 11 Oct 2010)
New Revision: 18261
Modified:
trunk/Open-ILS/web/js/dojo/MARC/Record.js
Log:
supply a dummy leader, as required by the Perl MARC modules
Modified: trunk/Open-ILS/web/js/dojo/MARC/Record.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/MARC/Record.js 2010-10-11 16:06:23 UTC (rev 18260)
+++ trunk/Open-ILS/web/js/dojo/MARC/Record.js 2010-10-11 16:06:52 UTC (rev 18261)
@@ -27,7 +27,7 @@
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 @@
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 @@
// 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({
More information about the open-ils-commits
mailing list