@@ -, +, @@ - the list of private lists - the list of public lists - the contents view of public or private list --- C4/VirtualShelves/Page.pm | 9 +++++++++ .../opac-tmpl/prog/en/modules/opac-shelves.tt | 10 +++++----- 2 files changed, 14 insertions(+), 5 deletions(-) --- a/C4/VirtualShelves/Page.pm +++ a/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, --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt +++ a/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() { +
    --