LP#1528909: Patron search clickable barcodes
authorBill Erickson <berickxx@gmail.com>
Tue, 22 May 2018 15:18:01 +0000 (11:18 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 25 May 2018 19:35:24 +0000 (15:35 -0400)
Patron barcodes in the patron search grid are now click-able, making it
possible to quickly open multiple patrons in new tabs from patron search
by control-clicking (or middle-clicking) the barcode links.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/circ/patron/t_search_results.tt2

index 65ef0a1..f42ba4a 100644 (file)
@@ -24,7 +24,9 @@
     handler="addToBucket" disabled="need_one_selected"></eg-grid-menu-item>
 
   <eg-grid-field label="[% l('ID') %]" path='id' visible></eg-grid-field>
-  <eg-grid-field label="[% l('Card') %]" path='card.barcode' visible></eg-grid-field>
+  <eg-grid-field label="[% l('Card') %]" path='card.barcode' visible>
+    <a href="./circ/patron/{{item.id()}}/checkout">{{item.card().barcode()}}</a>
+  </eg-grid-field>
   <eg-grid-field label="[% l('Profile') %]" path='profile.name' visible></eg-grid-field>
   <eg-grid-field label="[% l('Last Name') %]" path='family_name' visible sortable multisortable></eg-grid-field>
   <eg-grid-field label="[% l('First Name') %]" path='first_given_name' visible sortable multisortable></eg-grid-field>