From a52c5ac66e8c7a7a8a6a2b64385dc977855e141d Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 10 Apr 2018 10:51:24 -0400 Subject: [PATCH] LP#1751126: Make print holds shelf list aware of clear mode. We change the Print Full List button on the holds shelf view to be aware of whether clear mode is active. If clear mode is active, then the list of holds to clear is printed. If not, then the full holds shelf list is printed. This commit does not change the label of the print full list button. Signed-off-by: Jason Stephenson Signed-off-by: Dawn Dale Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/circ/holds/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/holds/app.js b/Open-ILS/web/js/ui/default/staff/circ/holds/app.js index 8028da5b71..fc9ea34c51 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/holds/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/holds/app.js @@ -204,9 +204,12 @@ function($scope , $q , $routeParams , $window , $location , egCore , egHolds , e $scope.print_list_progress = 0; // collect the full list of holds + var method = 'open-ils.circ.captured_holds.id_list.on_shelf.retrieve.authoritative.atomic'; + if (clear_mode) + method = 'open-ils.circ.captured_holds.id_list.expired_on_shelf_or_wrong_shelf.retrieve.atomic'; egCore.net.request( 'open-ils.circ', - 'open-ils.circ.captured_holds.id_list.on_shelf.retrieve.authoritative.atomic', + method, egCore.auth.token(), $scope.pickup_ou.id() ).then( function(idlist) { -- 2.43.2