LP#1728147: Add patron's first/last name and Alias column
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Fri, 16 Feb 2018 19:40:17 +0000 (14:40 -0500)
committerKathy Lussier <klussier@masslnc.org>
Thu, 22 Mar 2018 18:07:19 +0000 (14:07 -0400)
These were also missing from the Holds Pull grid.

This patch also corrects the determination of whether a hold
was staff-placed or not.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2
Open-ILS/web/js/ui/default/staff/circ/holds/app.js

index d705c5c..6eb569c 100644 (file)
       {{item.patron_barcode}}
     </a>
   </eg-grid-field>
+  <eg-grid-field label="[% l('Patron alias') %]" path="patron_alias" hidden></eg-grid-field>
+  <eg-grid-field label="[% l('Patron First') %]" path="patron_first" hidden></eg-grid-field>
+  <eg-grid-field label="[% l('Patron Last') %]" path="patron_last" hidden></eg-grid-field>
   <eg-grid-field name="pickup_lib_name" path="pickup_lib.name" 
     hidden label="[% l('Pickup Library') %]"></eg-grid-field>
   <eg-grid-field name="pickup_lib_shortname" path="pickup_lib.shortname" 
index 6884502..33fc77a 100644 (file)
@@ -319,7 +319,7 @@ function($scope , $q , $routeParams , $window , $location , egCore ,
             // check if this is a staff-created hold
             // i.e requestor's profile != 2 (patron)
 
-            item['_is_staff_hold'] = item.hold.requestor().profile != 2;
+            item['_is_staff_hold'] = item.hold.requestor().id() != item.hold.usr().id();
 
         });
     }