From 26a02aa9493055dfca0d7f7644e2a371d38c3aa4 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 25 May 2021 15:11:35 -0400 Subject: [PATCH] LP1904036 Show item barcode in circ events dialog Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts | 4 +++- .../src/eg2/src/app/staff/share/circ/events-dialog.component.html | 1 + Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.ts | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts index e5df857537..1891887c8d 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts @@ -424,7 +424,8 @@ export class CircService { response.map(r => this.evt.parse(r)) : [this.evt.parse(response)]; - console.debug('checkout returned', allEvents.map(e => e.textcode)); + console.debug('checkout events', allEvents.map(e => e.textcode)); + console.debug('checkout returned', allEvents); const firstEvent = allEvents[0]; const payload = firstEvent.payload; @@ -649,6 +650,7 @@ export class CircService { this.components.circEventsDialog.patronName = holdShelfEvent.payload.patron_name; } + this.components.circEventsDialog.copyBarcode = result.params.copy_barcode; this.components.circEventsDialog.events = events; this.components.circEventsDialog.mode = mode; diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.html b/Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.html index 0c35a488fb..b88f786881 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.html @@ -19,6 +19,7 @@
{{evt.textcode}}
+
{{copyBarcode}}
{{evt.desc}}
diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.ts index e7fb4d51e3..c6834d21fd 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.ts @@ -21,6 +21,7 @@ export class CircEventsComponent extends DialogComponent implements OnInit { clearHolds = false; patronId: number = null; patronName: string; + copyBarcode: string; constructor( private modal: NgbModal, -- 2.11.0