items out sort experiment collab/berick/items-out-sort-exp-tmp
authorBill Erickson <berickxx@gmail.com>
Wed, 2 Nov 2016 16:11:12 +0000 (12:11 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 2 Nov 2016 16:12:38 +0000 (12:12 -0400)
Signed-off-by: Bill Erickson <berickxx@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 270ef90..32a05e0 100644 (file)
@@ -45,7 +45,7 @@
   ng-if="items_out_display != 'noncat'"
   idl-class="circ"
   id-field="id"
-  features="-sort,-multisort"
+  _features="-sort,-multisort"
   items-provider="gridDataProvider"
   persist-key="circ.patron.items_out">
 
index 5113591..5752da8 100644 (file)
@@ -109,7 +109,8 @@ function($scope,  $q,  $routeParams,  $timeout,  egCore , egUser,  patronSvc , $
                 limit  : count,
                 offset : offset,
                 // we need an order-by to support paging
-                order_by : {circ : ['xact_start']} 
+                //order_by : {circ : ['xact_start']} 
+                order_by : {circ : provider.sort[0]} // XXX: only works with action.circulation columns XXX
 
         }).then(null, null, function(circ) {
             circ.circ_lib(egCore.org.get(circ.circ_lib())); // local fleshing
@@ -207,10 +208,12 @@ function($scope,  $q,  $routeParams,  $timeout,  egCore , egUser,  patronSvc , $
         var id_list = $scope[$scope.items_out_display + '_list'];
 
         // see if we have the requested range cached
+        /* AVOID CACHING TO TEST
         if (patronSvc.items_out[offset]) {
             return provider.arrayNotifier(
                 patronSvc.items_out, offset, count);
         }
+        */
 
         if ($scope.items_out_display == 'noncat') {
             // if there are any noncat circ IDs, we already have them