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 <jason@sigio.com>
Signed-off-by: Dawn Dale <ddale@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
$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) {