LP#1778083 Location, Floating, and Age Protect missing from Items Out user/gcollum/lp1778083-location-missing-from-items-out
authorGarry Collum <gcollum@gmail.com>
Thu, 21 Jun 2018 23:41:48 +0000 (19:41 -0400)
committerGarry Collum <gcollum@gmail.com>
Thu, 21 Jun 2018 23:41:48 +0000 (19:41 -0400)
Adds columns for Location (Copy), Floating Group, and Age-based Hold Protection to the items out grid.

To test.
1. View an items out screen to see that the Location, Floating Group, and Age-based Hold protection columns are not available as options.
2. Apply the patch.
3. Edit some items and add definitions for Floating Group, and Age-based hold protection.
4. Check out these items and other items that do not have a floating group or age-based protection.
5. Display the Location, Floating Group, and Age-based Hold Protection columns.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js

index 45c467c..8aba900 100644 (file)
@@ -85,6 +85,9 @@
   <eg-grid-field label="[% l('Checkin Workstation') %]" path='checkin_workstation.name'></eg-grid-field>
   <eg-grid-field label="[% l('Checkout / Renewal Library') %]" path='circ_lib.shortname'></eg-grid-field>
   <eg-grid-field label="[% l('Circulation Library') %]" path='target_copy.circ_lib.shortname' hidden></eg-grid-field>
+  <eg-grid-field label="[% l('Age-based Hold Protection') %]" path='target_copy.age_protect.name' hidden></eg-grid-field>
+  <eg-grid-field label="[% l('Floating Group') %]" path='target_copy.floating.name' hidden></eg-grid-field>
+  <eg-grid-field label="[% l('Location') %]" path='target_copy.location.name' hidden></eg-grid-field>
   <eg-grid-field label="[% l('Owning Library') %]" path='target_copy.call_number.owning_lib.shortname' hidden></eg-grid-field>
   <eg-grid-field label="[% l('Renewals Remaining') %]" path='renewal_remaining'></eg-grid-field>
   <eg-grid-field label="[% l('Fines Stopped') %]" path='stop_fines'></eg-grid-field>
index 4543797..52e91f7 100644 (file)
@@ -108,7 +108,7 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc ,
             {   flesh : 4,
                 flesh_fields : {
                     circ : ['target_copy', 'workstation', 'checkin_workstation'],
-                    acp : ['call_number', 'holds_count', 'status', 'circ_lib'],
+                    acp : ['call_number', 'holds_count', 'status', 'circ_lib', 'location', 'floating', 'age_protect'],
                     acn : ['record', 'owning_lib', 'prefix', 'suffix'],
                     bre : ['wide_display_entry']
                 },