From e2104c3f91772098cdac63831fb19b3bcd54b82f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 13 Aug 2018 16:47:25 -0400 Subject: [PATCH] add 'add to new list' action on the view basket page (for baskets only) Signed-off-by: Galen Charlton --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm | 5 +++++ Open-ILS/src/templates/opac/parts/anon_list.tt2 | 1 + 2 files changed, 6 insertions(+) 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 %]] -- 2.11.0