From: Galen Charlton Date: Wed, 23 May 2018 21:14:58 +0000 (-0400) Subject: implement action to place hold on entire list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=18da2188a4ef61223ead8d61d237d7788f733248;p=working%2FEvergreen.git implement action to place hold on entire list Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm index 22b6398e9f..eb818ec5ef 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm @@ -224,10 +224,14 @@ sub load_mylist_move { my @rec_ids = $self->cgi->param('record'); my $action = $self->cgi->param('action') || ''; - return $self->load_myopac_bookbag_update('place_hold', undef, @rec_ids) - if $action eq 'place_hold'; - my ($cache_key, $list) = $self->fetch_mylist; + if ($action eq 'place_hold') { + if ($self->cgi->param('entire_list')) { + @rec_ids = @$list; + } + return $self->load_myopac_bookbag_update('place_hold', undef, @rec_ids); + } + return $self->mylist_action_redirect unless $cache_key; my @keep; diff --git a/Open-ILS/src/templates/opac/parts/cart.tt2 b/Open-ILS/src/templates/opac/parts/cart.tt2 index 04c4f79c44..d8bd69bab1 100644 --- a/Open-ILS/src/templates/opac/parts/cart.tt2 +++ b/Open-ILS/src/templates/opac/parts/cart.tt2 @@ -3,7 +3,7 @@
  • [% l('Cart Actions') %]