lp1668352 Add barcode to patron neg balance grid
authorMike Risher <mrisher@catalyte.io>
Thu, 13 Feb 2020 21:02:09 +0000 (21:02 +0000)
committerJane Sandberg <sandbej@linnbenton.edu>
Sat, 22 Feb 2020 16:07:14 +0000 (08:07 -0800)
Add a barcode column to the existing Patron Negative Balance Grid.
It should be hyperlinked and link to the relevant patron.

Signed-off-by: Mike Risher <mrisher@catalyte.io>
Signed-off-by: Dawn Dale <ddale@georgialibraries.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>

Open-ILS/src/templates/staff/admin/local/circ/neg_balance_users.tt2

index 8291796..b7af3cb 100644 (file)
 
   <eg-grid-action handler="get_user"
     label="[% l('Retrieve Patron') %]"></eg-grid-action>
-
   <eg-grid-field label="[% l('Barred') %]" path='usr.barred'></eg-grid-field>
+  <eg-grid-field label="[% l('Barcode') %]" path="usr.card.barcode">
+    <a href="./circ/patron/{{item.usr.id()}}/checkout/" target="_blank">
+      {{item.usr.card().barcode()}}
+    </a>
+  </eg-grid-field>
   <eg-grid-field label="[% l('Date of Birth') %]" dateformat="{{$root.egDateFormat}}" datatype="timestamp" path='usr.dob'></eg-grid-field>
   <eg-grid-field label="[% l('Last Name') %]" path='usr.family_name'></eg-grid-field>
   <eg-grid-field label="[% l('First Name') %]" path='usr.first_given_name'></eg-grid-field>
@@ -48,8 +52,8 @@
   <eg-grid-field label="[% l('Balance Owed') %]" path='balance_owed'></eg-grid-field>
   <eg-grid-field label="[% l('Last Billing Activity') %]" 
     path='last_billing_activity' datatype='timestamp'></eg-grid-field>
-
   <eg-grid-field path='usr.*' parent-idl-class="au" hidden></eg-grid-field>
+  
 </eg-grid>