From: Bill Erickson <berickxx@gmail.com> Date: Wed, 10 Jul 2019 15:51:53 +0000 (-0400) Subject: LP1834665 Flat text editor uses '$' delimiter X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a538206397f25d207282dc0d493fb2d2a9d1ebee;p=evergreen%2Fequinox.git LP1834665 Flat text editor uses '$' delimiter Consistent with the AngJS flat text MARC editor, use '$' as the subfield delimiter instead of the default '‡'. Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu> --- diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/marcrecord.ts b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/marcrecord.ts index 1b0c488e46..df1a492762 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/marcrecord.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/marcrecord.ts @@ -4,6 +4,9 @@ declare var MARC21; +// MARC breaker delimiter +const DELIMITER = '$'; + export class MarcRecord { id: number; // Database ID when known. @@ -12,7 +15,7 @@ export class MarcRecord { breakerText: string; constructor(xml: string) { - this.record = new MARC21.Record({marcxml: xml}); + this.record = new MARC21.Record({marcxml: xml, delimiter: DELIMITER}); this.breakerText = this.record.toBreaker(); } @@ -25,7 +28,8 @@ export class MarcRecord { } absorbBreakerChanges() { - this.record = new MARC21.Record({marcbreaker: this.breakerText}); + this.record = new MARC21.Record( + {marcbreaker: this.breakerText, delimiter: DELIMITER}); } }