From d44bad61ba4c05841e661b1c5bc7a29d3c5fb349 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Sat, 1 Feb 2020 16:42:10 +0000 Subject: [PATCH] Bug 24560: Remove No public list text from OPAC On the OPAC, the dropdown for Lists always includes the heading Public Lists, even if no public lists exist. This is sub-optimal for libraries that want VirtualShelves enabled for private lists but don't want to use public lists. TEST PLAN: 1. have no public list and look at the List dropdown on the OPAC. It says No Public Lists. 2. Apply patch 3. It should now not say anything about public lists but still be formatted nice. 4. Add some public lists and confirm that everything looks normal. 5. Sign off Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 3f429fe0e2..5ee70cc322 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -46,10 +46,10 @@ [% IF some_public_shelves > 10 %]
  • View All
  • [% END %] - [% ELSE %] -
  • No public lists
  • [% END %] - + [% IF some_public_shelves.count > 0 %] + + [% END %] [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
  • Your lists
  • [% IF loggedinusername %] -- 2.39.5