From c76e82767bd3aa6c8722b53154ac2b2d72e122b1 Mon Sep 17 00:00:00 2001 From: Indranil Das Gupta Date: Sat, 23 May 2015 03:11:48 +0530 Subject: [PATCH] [SIGNED-OFF] 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 --- .../opac-tmpl/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 aeca007..39b156c 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 %] -- 1.7.9.5