From 63398baa543accf2692d288c84bca244bfdea295 Mon Sep 17 00:00:00 2001 From: "Thomas P. Ventimiglia" Date: Wed, 20 Sep 2023 12:25:41 -0400 Subject: [PATCH] dont remove $6 during presearch --- cloudapp/src/app/main/bib-utils.ts | 2 +- cloudapp/src/app/main/main.component.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cloudapp/src/app/main/bib-utils.ts b/cloudapp/src/app/main/bib-utils.ts index c157b54..a5cf340 100644 --- a/cloudapp/src/app/main/bib-utils.ts +++ b/cloudapp/src/app/main/bib-utils.ts @@ -151,7 +151,7 @@ export class BibUtils { } fieldTable.set(id,mdf); } - unmatched.forEach((tag,id) => { + unmatched.forEach((tag,id) => { let mdf = fieldTable.get(id); mdf.hasParallel = false fieldTable.set(id,mdf) diff --git a/cloudapp/src/app/main/main.component.ts b/cloudapp/src/app/main/main.component.ts index c225654..201d78c 100644 --- a/cloudapp/src/app/main/main.component.ts +++ b/cloudapp/src/app/main/main.component.ts @@ -443,7 +443,9 @@ export class MainComponent implements OnInit, OnDestroy { } placeholder_tag = t.substring(0,3) } - field.deleteSubfield("61") + if(!presearch) { + field.deleteSubfield("61") + } let parallel_field = new MarcDataField("880",field.ind1,field.ind2); let seqno = this.findUnusedLinkage(); let seq = placeholder_tag + "-" + seqno;