From 2845fb2423a24b2adde52a421f7a9e5d99bc36f7 Mon Sep 17 00:00:00 2001 From: Indranil Das Gupta Date: Sat, 23 May 2015 03:11:48 +0530 Subject: [PATCH] Bug 14252: Move OPAC lang switcher to masthead navbar The OPAC language switcher takes up a lot of space at the bottom of the browser. It also has issues of being not always visible. This patch adds the switcher to the masthead navbar and removes from the opac-bottom.inc navbar. Test plan ========= 1/ Apply patch 2/ Set opaclanguagesdisplay syspref to 'show'. 3/ Add a few languages i.e. es-ES, fr-FR and de-DE $ cd misc/translator $ perl translate 4/ Enable installed languages for OPAC use by checking on 'opaclanguages' under I18N/L10N sysprefs 5/ Go to the OPAC, you should have a "Languages" dropdown on the masthead navbar, the opac-bottom.inc navbar should no longer be there. Signed-off-by: Bernardo Gonzalez Kriegel Works, no koha-qa errors. Followup fix language chooser for sublanguages Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- .../bootstrap/en/includes/masthead.inc | 39 ++++++++++++++++++ .../bootstrap/en/includes/opac-bottom.inc | 41 ------------------- 2 files changed, 39 insertions(+), 41 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index aeca0074d3..39b156cc19 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -71,6 +71,45 @@
- [% IF ( opaclanguagesdisplay ) %] - [% IF ( languages_loop && opaclanguagesdisplay ) %] - [% UNLESS ( one_language_enabled ) %] - - [% END # / UNLESS ( one_language_enabled ) %] - [% END # / IF ( languages_loop && opaclanguagesdisplay ) %] - [% END # / IF opaclanguagesdisplay %] [% END # / UNLESS is_popup %] -- 2.39.5