From: Galen Charlton Date: Mon, 13 Aug 2018 20:47:25 +0000 (-0400) Subject: add 'add to new list' action on the view basket page (for baskets only) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e2104c3f91772098cdac63831fb19b3bcd54b82f;p=working%2FEvergreen.git add 'add to new list' action on the view basket page (for baskets only) 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 ae7df1eecd..65f08e6544 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm @@ -286,6 +286,11 @@ sub load_mylist_move { my $temp_cache_key = $self->_stash_record_list_in_anon_cache(@rec_ids); return $self->load_mylist_email($temp_cache_key); } + if ($action eq 'new_list') { + my $url = $self->apache->unparsed_uri; + $url =~ s!/mylist/move!/myopac/lists!; + return $self->generic_redirect($url); + } return $self->mylist_action_redirect unless $cache_key; diff --git a/Open-ILS/src/templates/opac/parts/anon_list.tt2 b/Open-ILS/src/templates/opac/parts/anon_list.tt2 index db0fccec7b..d9bd3e9e2f 100644 --- a/Open-ILS/src/templates/opac/parts/anon_list.tt2 +++ b/Open-ILS/src/templates/opac/parts/anon_list.tt2 @@ -21,6 +21,7 @@ + [% IF ctx.user AND ctx.bookbags.size %] [% FOR bbag IN ctx.bookbags %]]