Bugzilla – Attachment 39445 Details for
Bug 14252
Make the OPAC language switcher available in the masthead navbar, footer, or both.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14252: (followup) fix lang chooser for sublanguages
Bug-14252-followup-fix-lang-chooser-for-sublanguag.patch (text/plain), 4.38 KB, created by
Bernardo Gonzalez Kriegel
on 2015-05-23 17:41:15 UTC
(
hide
)
Description:
Bug 14252: (followup) fix lang chooser for sublanguages
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2015-05-23 17:41:15 UTC
Size:
4.38 KB
patch
obsolete
>From f8c05917cb5f86cb1d67529a0b4eac0cc2199ccb Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Sat, 23 May 2015 14:40:52 -0300 >Subject: [PATCH] Bug 14252: (followup) fix lang chooser for sublanguages > >This quick fix disables sublanguages dropdown, >show all sublanguages on same level. > >To test: >1) Apply both patches >2) Translate to have sublanguages (en-NZ, de-DE, de-CH) >3) Go to opac, confirm you can select any lang/sublang >4) Check on movil device >--- > .../opac-tmpl/bootstrap/en/includes/masthead.inc | 9 ++------- > 1 file changed, 2 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >index 39b156c..f626f41 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -80,9 +80,6 @@ > [% FOREACH languages_loo IN languages_loop %] > [% IF ( languages_loo.group_enabled ) %] > [% IF ( languages_loo.plural ) %] >- <li class="dropdown"> >- <a data-toggle="dropdown" class="dropdown-toggle sublangs" id="show[% languages_loo.rfc4646_subtag %]" href="#">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %] <b class="caret"></b></a> >- <ul id="sub[% languages_loo.rfc4646_subtag %]" class="dropdown-menu"> > [% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %] > [% IF ( sublanguages_loo.enabled ) %] > [% IF ( sublanguages_loo.sublanguage_current ) %] >@@ -92,14 +89,12 @@ > [% END %] > [% END # / IF sublanguages_loo.enabled %] > [% END # / FOREACH sublanguages_loo %] >- </ul> <!-- languages_loo.rfc4646_subtag --> >- </li> <!-- / .more --> > [% ELSE %] > [% IF ( languages_loo.group_enabled ) %] > [% IF ( languages_loo.current ) %] >- <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %] <i class="icon-ok"></i></a></li> >+ <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %] ([% languages_loo.rfc4646_subtag %])[% END %] <i class="icon-ok"></i></a></li> > [% ELSE %] >- <li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% languages_loo.rfc4646_subtag %]" tabindex="-1" role="menuitem" class="listmenulink">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a></li> >+ <li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% languages_loo.rfc4646_subtag %]" tabindex="-1" role="menuitem" class="listmenulink">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %] ([% languages_loo.rfc4646_subtag %])[% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a></li> > [% END %] > [% END # / IF languages_loo.current %] > [% END # / IF ( languages_loo.plural ) %] >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14252
:
39369
|
39433
|
39434
|
39436
|
39443
|
39444
|
39445
|
39446
|
39447
|
39448
|
39449
|
39622
|
39650
|
39706
|
39707
|
39724
|
39725
|
39726
|
39727
|
39728
|
39729
|
39730
|
39731
|
39732
|
39733
|
39734
|
39746
|
39749
|
39857
|
39858
|
39859
|
39860
|
39861
|
39862
|
39863
|
39864