From: Bill Erickson Date: Mon, 7 Dec 2020 18:28:56 +0000 (-0800) Subject: LP1907115 MARC editor correctly absorbs breaker changes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=10339d10220d0b1f706eb5b849bf34af5d5d1822;p=evergreen%2Fmasslnc.git LP1907115 MARC editor correctly absorbs breaker changes MARC editor now correctly extracts MARC field data from the new underlying MARC record when it is changed as a result of a breaker text change and re-absorb. Signed-off-by: Bill Erickson Signed-off-by: Elaine Hardy Signed-off-by: Jane Sandberg --- 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 326f80a00c..49f4b9667e 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 @@ -82,6 +82,8 @@ export class MarcRecord { absorbBreakerChanges() { this.record = new MARC21.Record( {marcbreaker: this.breakerText, delimiter: DELIMITER}); + // Replacing the underlying record means regenerating the field metadata + this.stampFieldIds(); } extractFixedField(fieldCode: string): string {