LP1904036 Patron search barcode/last-name links
authorBill Erickson <berickxx@gmail.com>
Thu, 26 Aug 2021 18:40:17 +0000 (14:40 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:37 +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/patron/search.component.html

index 46959ff..52500e1 100644 (file)
   </ng-container><!-- expand form -->
 </div>
 
+<ng-template #barcodeTemplate let-r="row">
+  <a routerLink="/staff/circ/patron/{{r.id()}}/checkout">{{r.card().barcode()}}</a>
+</ng-template>
+<ng-template #familyNameTemplate let-r="row">
+  <a routerLink="/staff/circ/patron/{{r.id()}}/checkout">{{r.family_name()}}</a>
+</ng-template>
+
 <div class="patron-search-grid mt-4">
   <eg-grid #searchGrid idlClass="au" 
     persistKey="circ.patron.search"
 
     <eg-grid-column path='id' [hidden]="true"
       i18n-label label="ID"></eg-grid-column>      
-    <eg-grid-column path='card.barcode' 
+    <eg-grid-column name='card.barcode' [cellTemplate]="barcodeTemplate"
       i18n-label label="Card"></eg-grid-column>
     <eg-grid-column path='profile.name' 
       i18n-label label="Profile"></eg-grid-column>
-    <eg-grid-column path='family_name' 
+    <eg-grid-column name='family_name' [cellTemplate]="familyNameTemplate"
       [sortable]="true" [multiSortable]="true"></eg-grid-column>
     <eg-grid-column path='first_given_name' 
       [sortable]="true" [multiSortable]="true"></eg-grid-column>