LP1904036 Checkout grid title/barcode links
authorBill Erickson <berickxx@gmail.com>
Tue, 17 Aug 2021 21:15:49 +0000 (17:15 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:36 +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/circ/patron/checkout.component.html
Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.ts
Open-ILS/src/eg2/src/app/staff/circ/patron/patron.service.ts

index df1d397..408b502 100644 (file)
   </div>
 </div>
 
+<ng-template #copyBarcodeTemplate let-r="row">
+  <ng-container *ngIf="r.copy">
+    <a href="/eg/staff/cat/item/{{r.copy.id()}}">{{r.copy.barcode()}}</a>
+  </ng-container>
+</ng-template>
+
 <ng-template #titleTemplate let-r="row">
   <ng-container *ngIf="r.record">
-    <a routerLink="/staff/catalog/record/{{r.record.id()}}">{{r.title}}</a>
+    <a routerLink="/staff/catalog/record/{{r.record.doc_id()}}">{{r.title}}</a>
   </ng-container>
   <ng-container *ngIf="!r.record">{{r.title}}</ng-container>
 </ng-template>
         timezoneContextOrg="circ.circ_lib" dateOnlyIntervalField="circ.duration"
         datatype="timestamp"></eg-grid-column>
 
-      <eg-grid-column path="copy.barcode" label="Barcode" i18n-label></eg-grid-column>
+      <eg-grid-column name="copy_barcode" label="Barcode" i18n-label
+        [cellTemplate]="copyBarcodeTemplate"></eg-grid-column>
 
       <eg-grid-column path="copy.alert_message" label="Alert Message" 
         i18n-label></eg-grid-column>
index ed99cb5..804adad 100644 (file)
@@ -207,6 +207,8 @@ export class CheckoutComponent implements OnInit, AfterViewInit {
             dueDate: null,
             copyAlertCount: 0,
             nonCatCount: 0,
+            record: result.record,
+            volume: result.volume,
             title: result.title,
             author: result.author,
             isbn: result.isbn
index db32264..cf4ce45 100644 (file)
@@ -22,6 +22,8 @@ export interface CircGridEntry {
     isbn?: string;
     copy?: IdlObject;
     circ?: IdlObject;
+    volume?: IdlObject;
+    record?: IdlObject;
     dueDate?: string;
     copyAlertCount: number;
     nonCatCount: number;