diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index 7fd410b62c..92c2343e91 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -177,6 +177,7 @@ |
+ @@ -184,6 +185,7 @@ + @@ -194,6 +196,7 @@ [% ELSIF category == PRIVATE # not manageshelf and private means shared %] + @@ -545,7 +548,7 @@ [% ELSE %] Editing [% shelf.shelfname |html %] - + [% END %] diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index 8b66274c1e..2d810cb143 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -90,11 +90,11 @@ if ( $op eq 'add_form' ) { push @messages, { type => 'error', code => 'error_on_insert' }; } else { push @messages, { type => 'message', code => 'success_on_insert' }; - $op = 'view'; + $op = $referer; } } else { push @messages, { type => 'error', code => 'unauthorized_on_insert' }; - $op = 'list'; + $op = $referer; } } elsif ( $op eq 'edit' ) { $shelfnumber = $query->param('shelfnumber');