From: Galen Charlton Date: Wed, 8 Dec 2021 23:41:04 +0000 (-0500) Subject: LP#1942220: tweaks to order identifer handling X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fcbc8c7c5cdd5d25602e0915de10acf777979e3c;p=working%2FEvergreen.git LP#1942220: tweaks to order identifer handling - sort order ident types alphabetically - set 024 ind1 correctly when creating a brief record Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/brief-record.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/brief-record.component.ts index fa82cec9ad..3d5912e310 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/brief-record.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/brief-record.component.ts @@ -79,7 +79,11 @@ export class BriefRecordComponent implements OnInit { // Append fields to the document dfNode.setAttribute('tag', '' + tags[0]); - dfNode.setAttribute('ind1', ' '); + if (attr.code() === 'upc') { + dfNode.setAttribute('ind1', '1'); + } else { + dfNode.setAttribute('ind1', ' '); + } dfNode.setAttribute('ind2', ' '); sfNode.setAttribute('code', '' + subfields[0]); const tNode = doc.createTextNode(value); diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html index 974389ce6f..7f34a73c75 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html @@ -402,16 +402,16 @@ title="Order Identifier Type" i18n-title [disabled]="!canEditIdent(li)" [ngClass]="{'btn-warning': !selectedIdent(li)}"> ISBN - UPC ISSN + UPC
- +