From fd7b1a95120313316d987d353e7787bb4371bed8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 31 May 2013 09:54:34 -0400 Subject: [PATCH] Bug 10354 - Don't show optgroup Libraries when no search groups are defined In the OPAC, if there are no search groups defined, there's no reason to embed library choices inside an . should only be used to differentiate the list of individual libraries from search groups. This patch removes the when no search groups are enabled. To test, apply the patch and: - Enable OpacAddMastheadLibraryPulldown. - Create a library search group in Administration -> Libraries and Groups and enable it by checking the "show in search pulldown" box. - View the library pulldown in the OPAC search bar. Libraries and groups should be separated into s. - Disable your library search group and refresh the OPAC page. The pulldown of libraries should now display libraries with no . Signed-off-by: Srdjan Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton (cherry picked from commit 545ed7a0b6f7cffc7a5cc904963b7bdcf75038fc) Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc index 852f4a7b57..80f58e22ed 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc @@ -87,13 +87,13 @@ [% IF ( OpacAddMastheadLibraryPulldown ) %]