LP1825851 Server managed/processed print templates
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / share / holds / grid.component.html
index 6b60930..14f96e5 100644 (file)
         i18-group group="Hold" i18n-label label="Cancel Hold"
         (onClick)="showCancelDialog($event)"></eg-grid-toolbar-action>
 
+      <eg-grid-toolbar-action
+        i18-group group="Hold" i18n-label label="Print Holds"
+        (onClick)="printHolds()"></eg-grid-toolbar-action>
+
       <eg-grid-column i18n-label label="Hold ID" path='id' [index]="true" datatype="id">
       </eg-grid-column>
 
       <ng-template #barcodeTmpl let-hold="row">
-        <a href="/eg/staff/cat/item/{{cp_id}}/summary">
+        <a href="/eg/staff/cat/item/{{hold.cp_id}}/summary">
           {{hold.cp_barcode}}
         </a>
       </ng-template>
         [cellTemplate]="barcodeTmpl">
       </eg-grid-column>
 
-      <eg-grid-column i18n-label label="Patron Barcode"
-          path='ucard_barcode' [hidden]="true"></eg-grid-column>
+      <ng-template #userBarcodeTmpl let-hold="row">
+        <a href="/eg/staff/circ/patron/{{hold.usr_id}}/checkout">
+          {{hold.ucard_barcode}}
+        </a>
+      </ng-template>
+      <eg-grid-column i18n-label label="Patron Barcode" 
+        [cellTemplate]="userBarcodeTmpl" [hidden]="true"></eg-grid-column>
+
       <eg-grid-column i18n-label label="Patron alias" path="usr_alias"></eg-grid-column>
       <eg-grid-column i18n-label label="Request Date"
           path='request_time' datatype="timestamp"></eg-grid-column>