LP1907115 MARC editor correctly absorbs breaker changes
authorBill Erickson <berickxx@gmail.com>
Mon, 7 Dec 2020 18:28:56 +0000 (10:28 -0800)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 10 Feb 2021 20:25:07 +0000 (12:25 -0800)
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 <berickxx@gmail.com>
Signed-off-by: Elaine Hardy <ehardy@georgialibraries.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>

Open-ILS/src/eg2/src/app/staff/share/marc-edit/marcrecord.ts

index 326f80a..49f4b96 100644 (file)
@@ -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 {