projects
/
working
/
Evergreen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46e4045
)
LP1841823 Marc flat editor repair slashes (AngJS)
user/berick/lp1841823-marc-flat-edit-slashes
author
Bill Erickson
<berickxx@gmail.com>
Mon, 16 Sep 2019 15:26:23 +0000
(11:26 -0400)
committer
Bill Erickson
<berickxx@gmail.com>
Mon, 16 Sep 2019 15:26:51 +0000
(11:26 -0400)
Replace all control field spaces with backslashes in MARC Flat text
editor (AngJS edition).
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/marcrecord.js
patch
|
blob
|
history
diff --git
a/Open-ILS/web/js/ui/default/staff/marcrecord.js
b/Open-ILS/web/js/ui/default/staff/marcrecord.js
index
9fe525b
..
2e3a422
100644
(file)
--- a/
Open-ILS/web/js/ui/default/staff/marcrecord.js
+++ b/
Open-ILS/web/js/ui/default/staff/marcrecord.js
@@
-297,7
+297,7
@@
var MARC21 = {
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, ' ')
})
);
}
@@
-367,7
+367,7
@@
var MARC21 = {
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 + ' ' +