diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm index 7cab246242..1727389dc3 100644 --- a/C4/VirtualShelves/Page.pm +++ b/C4/VirtualShelves/Page.pm @@ -168,6 +168,14 @@ sub shelfpage ($$$$$) { }; ModShelf( $shelfnumber, $shelf ); + if($displaymode eq "viewshelf"){ + print $query->redirect( $pages{$type}->{redirect} . "?viewshelf=$shelfnumber" ); + } elsif($displaymode eq "publicshelves"){ + print $query->redirect( $pages{$type}->{redirect} ); + } else { + print $query->redirect( $pages{$type}->{redirect} . "?display=privateshelves" ); + } + exit; } elsif ( $op eq 'modif' ) { my ( $shelfnumber2, $shelfname, $owner, $category, $sortfield ) = GetShelf($shelfnumber); @@ -176,6 +184,7 @@ sub shelfpage ($$$$$) { $edit = 1; $template->param( edit => 1, + display => $displaymode, shelfnumber => $shelfnumber2, shelfname => $shelfname, owner => $owner, diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt index 7d9d4d2fde..bf44771357 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt @@ -209,12 +209,11 @@ $(function() { Print List - [% IF ( manageshelf ) %] |
[% IF ( showprivateshelves ) %][% END %]
+ [% IF ( manageshelf ) %] |
+ +
- [% IF ( showprivateshelves ) %] - - [% END %]
[% END %] @@ -377,7 +376,7 @@ $(function() {

Lists > [% shelfname |html %] > Editing

- [% IF ( showprivateshelves ) %][% END %] +
    @@ -523,6 +522,7 @@ $(function() { +