From: Mike Rylander Date: Wed, 14 Jun 2017 15:51:53 +0000 (-0400) Subject: LP#1697954: Enable clientsort for user holds lists X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=23483d848a9869284b6584e37136fb0c5e7ca757;p=working%2FEvergreen.git LP#1697954: Enable clientsort for user holds lists These will generally be small, so we'll fetch all the data to support client- side sorting. Signed-off-by: Mike Rylander Signed-off-by: Andrea Neiman Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 index 665ca04a2e..5fa3b96105 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 @@ -1,6 +1,6 @@ @@ -53,8 +53,8 @@ - - + + diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js b/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js index ddbf1d8692..4013bc7221 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js @@ -50,8 +50,8 @@ function($scope, $q, $routeParams, egCore, egUser, patronSvc, $scope.gridDataProvider = provider; function fetchHolds(offset, count) { - var ids = patronSvc.hold_ids.slice(offset, offset + count); - return egHolds.fetch_holds(ids).then(null, null, + //var ids = patronSvc.hold_ids.slice(offset, offset + count); // we're going to just fetch all the holds up front + return egHolds.fetch_holds(patronSvc.hold_ids).then(null, null, function(hold_data) { patronSvc.holds.push(hold_data); return hold_data;