LP#1697954: Enable clientsort for user items out lists user/miker/lp-1697954-client_side_grid_sort
authorMike Rylander <mrylander@gmail.com>
Wed, 14 Jun 2017 15:53:11 +0000 (11:53 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 14 Jun 2017 16:31:49 +0000 (12:31 -0400)
These will generally be small, so we'll fetch all the data to support client-
side sorting.

Signed-off-by: Mike Rylander <mrylander@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 a5a1ed7..e40b593 100644 (file)
@@ -29,7 +29,7 @@
   ng-if="items_out_display == 'noncat'"
   idl-class="ancc"
   id-field="id"
-  features="-sort,-multisort"
+  features="clientsort"
   items-provider="gridDataProvider"
   persist-key="circ.patron.items_out.noncat">
 
@@ -45,7 +45,7 @@
   ng-if="items_out_display != 'noncat'"
   idl-class="circ"
   id-field="id"
-  features="-sort,-multisort"
+  features="clientsort"
   items-provider="gridDataProvider"
   persist-key="circ.patron.items_out">
 
@@ -84,7 +84,7 @@
   <eg-grid-field label="[% l('Checkout / Renewal Library') %]" path='circ_lib.shortname'></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>
-  <eg-grid-field label="[% l('Title') %]" name="title">
+  <eg-grid-field label="[% l('Title') %]" path="target_copy.call_number.record.simple_record.title" name="title">
     <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.target_copy().call_number().record().id()}}">
       {{item.target_copy().call_number().record().simple_record().title()}}
     </a>
index eaeb4b4..94bc0f6 100644 (file)
@@ -106,8 +106,8 @@ function($scope,  $q,  $routeParams,  $timeout,  egCore , egUser,  patronSvc , $
                 // fields on the bre to select.  More may be needed.
                 // note that fleshed fields are explicitly selected.
                 select : { bre : ['id'] },
-                limit  : count,
-                offset : offset,
+                //limit  : count,
+                //offset : offset,
                 // we need an order-by to support paging
                 order_by : {circ : ['xact_start']} 
 
@@ -134,8 +134,8 @@ function($scope,  $q,  $routeParams,  $timeout,  egCore , egUser,  patronSvc , $
         return egCore.pcrud.search('ancc', {id : id_list},
             {   flesh : 1,
                 flesh_fields : {ancc : ['item_type','staff']},
-                limit  : count,
-                offset : offset,
+                //limit  : count,
+                //offset : offset,
                 // we need an order-by to support paging
                 order_by : {circ : ['circ_time']}