From 6ac9af07396014bb191f139316cfbfcc11199bc3 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 7 Dec 2020 10:28:56 -0800 Subject: [PATCH] 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 --- Open-ILS/src/eg2/src/app/staff/share/marc-edit/marcrecord.ts | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.43.2