[1] ensure that null indicators are converted to blanks
[2] fix glitch when supplying default indicator values
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@19066
dcc99617-32d9-48b4-a31d-
7c20da2025e4
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 = [];
}
} 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;