LP1904036 Show item barcode in circ events dialog
authorBill Erickson <berickxx@gmail.com>
Tue, 25 May 2021 19:11:35 +0000 (15:11 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:35 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts
Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.html
Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.ts

index e5df857..1891887 100644 (file)
@@ -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;
 
index 0c35a48..b88f786 100644 (file)
@@ -19,6 +19,7 @@
       <div class="card mb-2">
         <div class="card-header text-danger">{{evt.textcode}}</div>
         <div class="card-body">
+          <div class="font-weight-bold">{{copyBarcode}}</div>
           <div>{{evt.desc}}</div>
           <ng-container *ngIf="evt.textcode == 'COPY_ALERT_MESSAGE'">
             <ng-container *ngIf="!isArray(evt.payload)">
index e7fb4d5..c6834d2 100644 (file)
@@ -21,6 +21,7 @@ export class CircEventsComponent extends DialogComponent implements OnInit {
     clearHolds = false;
     patronId: number = null;
     patronName: string;
+    copyBarcode: string;
 
     constructor(
         private modal: NgbModal,