From 11c9f64666758890931a418d2648ae320451bb07 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 4 Sep 2024 13:32:27 +0000 Subject: [PATCH] Bug 37362: Do not show the lists button if there are no public lists and opacuserlogin is off This patch updates the OPAC header so that if opacuserlogin is off and there are no public shelves, the Lists button does not appear. If opacuserlogin is turned off the only kind of lists the user can interact with are public ones, and without public lists there's nothing to do. To test, apply the patch and test the arrangement of the OPAC header in these cases: - opacuserlogin is on, user is logged in, and there are no public lists: - The Lists button appears and contains only "Your lists" menu items. - opacuserlogin is on, user is logged in, and there are public lists: - The Lists button appears and the menu contains controls for both public and private lists. - opacuserlogin is off and there are public lists: - The Lists button appears and shows only controls for public lists. - opacuserlogin is off and there are no public lists: - The Lists button does not appear. Sponsored-by: Athens County Public Libraries Signed-off-by: Caroline Cyr La Rose Signed-off-by: Laura_Escamilla Signed-off-by: Martin Renvoize --- .../bootstrap/en/includes/masthead.inc | 80 ++++++++++--------- 1 file changed, 41 insertions(+), 39 deletions(-) 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 ) %] - + 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' ) %]