From: Bill Erickson Date: Thu, 5 Aug 2021 18:01:30 +0000 (-0400) Subject: LP1936233 Item status indicate item not found X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=03c8ff2ea59ac1db8d9887889ea040d751a4992a;p=working%2FEvergreen.git LP1936233 Item status indicate item not found Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.html b/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.html index 2d074faa49..b9b50c8af2 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.html +++ b/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.html @@ -35,7 +35,6 @@ Barcode @@ -188,6 +187,13 @@ +
+
+ Item not found: {{noSuchItem}} +
+
+ + {{r.call_number().prefix().label()}} {{r.call_number().label()}} diff --git a/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.ts index 12997ffbcd..1965f33e21 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.ts @@ -66,7 +66,7 @@ export class ItemStatusComponent implements OnInit, AfterViewInit { currentItemId: number; itemBarcode: string; - noSuchItem = false; + noSuchItem: string = null; item: IdlObject; tab: string; preloadCopyIds: number[]; @@ -305,11 +305,13 @@ export class ItemStatusComponent implements OnInit, AfterViewInit { if (bc) { barcodes.push(bc); } }); - return this.getItemsFromBarcodes(barcodes); + return this.getItemsFromBarcodes(barcodes) + .then(_ => this.selectInput()); } getItemsFromBarcodes(barcodes: string[]): Promise { let index = 0; + this.noSuchItem = null; return from(barcodes).pipe(concatMap(bc => { @@ -339,7 +341,7 @@ export class ItemStatusComponent implements OnInit, AfterViewInit { if (!res) { // Dialog was canceled, nothing to do } else if (!res.id) { - this.noSuchItem = true; + this.noSuchItem = barcode; } else { this.itemBarcode = null; if (this.tab === 'list') {