diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 266309c1ef..b9fcf6fb02 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -44,49 +44,51 @@ [% END %]
  • [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %] - + [% IF some_public_shelves > 10 %] + View all + [% END %] + [% END %] + [% IF Koha.Preference( 'opacuserlogin' ) == 1 && some_public_shelves.count > 0 %] + + [% END %] + [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] + Your lists + [% IF loggedinusername %] + [% IF some_private_shelves.count %] + [% SET number_of_private_shelves = 0 %] + [% FOREACH s IN some_private_shelves %] + [% s.shelfname | html %] + [% SET number_of_private_shelves = number_of_private_shelves + 1 %] + [% IF number_of_private_shelves >= 10 %][% LAST %][% END %] + [% END %] + [% IF some_private_shelves > 10 %] + View all + [% END %] + [% ELSE %] + No private lists + [% END %] + New list + [% ELSE %] + Log in to create your own lists + [% END # / IF loggedinusername %] + [% END # / IF opacuserlogin %] + + + [% END # / IF opacuserlogin || some_public_shelves < 1 %] [% END # / IF virtualshelves %] [% IF Koha.Preference( 'OpacTrustedCheckout' ) %]