[open-ils-commits] r19059 - branches/rel_1_6/Open-ILS/web/js/dojo/MARC (gmc)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Dec 23 08:40:55 EST 2010
Author: gmc
Date: 2010-12-23 08:40:54 -0500 (Thu, 23 Dec 2010)
New Revision: 19059
Modified:
branches/rel_1_6/Open-ILS/web/js/dojo/MARC/Field.js
branches/rel_1_6/Open-ILS/web/js/dojo/MARC/Record.js
Log:
commit 620f5d756619b84200add4c534a7cf22e1c0d037
further fixes to null indicator handling in flat-text MARC editor
[1] ensure that null indicators are converted to blanks
[2] fix glitch when supplying default indicator values
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
Modified: branches/rel_1_6/Open-ILS/web/js/dojo/MARC/Field.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/js/dojo/MARC/Field.js 2010-12-23 06:11:36 UTC (rev 19058)
+++ branches/rel_1_6/Open-ILS/web/js/dojo/MARC/Field.js 2010-12-23 13:40:54 UTC (rev 19059)
@@ -31,8 +31,8 @@
constructor : function(kwargs) {
this.record = kwargs.record;
this.tag = kwargs.tag;
- this.ind1 = kwargs.ind1;
- this.ind2 = kwargs.ind2;
+ this.ind1 = kwargs.ind1 || ' ';
+ this.ind2 = kwargs.ind2 || ' ';
this.data = kwargs.data;
if (kwargs.subfields) this.subfields = kwargs.subfields;
else this.subfields = [];
Modified: branches/rel_1_6/Open-ILS/web/js/dojo/MARC/Record.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/js/dojo/MARC/Record.js 2010-12-23 06:11:36 UTC (rev 19058)
+++ branches/rel_1_6/Open-ILS/web/js/dojo/MARC/Record.js 2010-12-23 13:40:54 UTC (rev 19059)
@@ -256,7 +256,7 @@
}
} else {
if (current_line.substring(4,5) == me.delimiter) // add delimiters if they were left out
- current_line = current_line.substring(0,3) + '\\\\' + current_line.substring(4);
+ current_line = current_line.substring(0,3) + ' \\\\' + current_line.substring(4);
var data = df_line_data(current_line);
if (!(data.substring(0,1) == me.delimiter)) data = me.delimiter + 'a' + data;
More information about the open-ils-commits
mailing list