Replace all control field spaces with backslashes in MARC Flat text
editor (AngJS edition).
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Elaine Hardy <ehardy@georgialibraries.org>
new MARC21.Field({
record : me,
tag : line_tag(current_line),
- data : cf_line_data(current_line).replace('\\',' ','g'),
+ data : cf_line_data(current_line).replace(/\\/g, ' ')
})
);
}
mtxt += this.fields.map( function (f) {
if (f.isControlfield()) {
- if (f.data) return '=' + f.tag + ' ' + f.data.replace(' ','\\','g');
+ if (f.data) return '=' + f.tag + ' ' + f.data.replace(/ /g, '\\');
return '=' + f.tag;
} else {
return '=' + f.tag + ' ' +