LP#1712854: Provide context-relevant default sort orders
authorMike Rylander <mrylander@gmail.com>
Thu, 30 Aug 2018 20:48:23 +0000 (16:48 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 4 Sep 2018 18:03:07 +0000 (14:03 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
Open-ILS/web/js/ui/default/staff/circ/holds/app.js

index d778ec2..43af4d5 100644 (file)
@@ -1728,7 +1728,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
                 pickup_lib       : egCore.org.descendants($scope.pickup_ou.id(), true)
         };
 
                 pickup_lib       : egCore.org.descendants($scope.pickup_ou.id(), true)
         };
 
-        var order_by = [{ capture_time : null }];
+        var order_by = [{ request_time : null }];
         if (provider.sort && provider.sort.length) {
             order_by = [];
             angular.forEach(provider.sort, function (c) {
         if (provider.sort && provider.sort.length) {
             order_by = [];
             angular.forEach(provider.sort, function (c) {
index 27f76d1..5ce21aa 100644 (file)
@@ -88,7 +88,7 @@ function($scope , $q , $routeParams , $window , $location , egCore , egHolds , e
                 current_shelf_lib : $scope.pickup_ou.id()
         };
 
                 current_shelf_lib : $scope.pickup_ou.id()
         };
 
-        var order_by = [{ capture_time : null }];
+        var order_by = [{ shelf_expire_time : null }];
         if (provider.sort && provider.sort.length) {
             order_by = [];
             angular.forEach(provider.sort, function (c) {
         if (provider.sort && provider.sort.length) {
             order_by = [];
             angular.forEach(provider.sort, function (c) {