9a9b0aab87
Language menus in pop up windows are not necessary and can hide the contents (especially search results) on a narrow screen. For an example, see screenshot in comment #3 This patch allows to mark pop p menus not to display the language footer. To test: - Reproduce issue from comment #3 - Apply patch - Try to reproduce issue from comment #3 -> language menu should no longer display - Verify that language menu is suppresed in 'Add to ist' as well (from catalog search results, select an item, Add to:...) Note: There will be more pop-ups with unwnated language selector. That can be resolved in follow up bugs. Followed test plan which worked as intended Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
74 lines
3.6 KiB
HTML
74 lines
3.6 KiB
HTML
</div>
|
|
|
|
[% IF ( languages_loop && ! popup_window ) %]
|
|
[% UNLESS ( one_language_enabled ) %]
|
|
<div id="changelanguage" class="navbar navbar-default navbar-fixed-bottom">
|
|
<div class="container-fluid">
|
|
<ul id="i18nMenu" class="nav navbar-nav">
|
|
[% FOREACH languages_loo IN languages_loop %]
|
|
|
|
[% IF ( languages_loo.group_enabled ) %]
|
|
[% IF ( languages_loo.plural ) %]
|
|
<li class="dropdown"><a class="dropdown-toggle dropup" data-toggle="dropdown" id="show[% languages_loo.rfc4646_subtag %]" href="#">
|
|
[% IF ( languages_loo.native_description ) %]
|
|
[% languages_loo.native_description %]
|
|
[% ELSE %]
|
|
[% languages_loo.rfc4646_subtag %]
|
|
[% END %]
|
|
[% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
|
|
[% IF ( sublanguages_loo.enabled ) %]
|
|
[% IF ( sublanguages_loo.sublanguage_current ) %]
|
|
<span class="sublanguage-selected">([% sublanguages_loo.rfc4646_subtag %])</span>
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
<span class="caret"></span></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 ) %]
|
|
<li class="navbar-text"> <span class="currentlanguage disabled">[% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] ([% sublanguages_loo.rfc4646_subtag %])</span></li>
|
|
[% ELSE %]
|
|
<li><a href="/cgi-bin/koha/changelanguage.pl?language=[% sublanguages_loo.rfc4646_subtag %]"> [% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] ([% sublanguages_loo.rfc4646_subtag %])</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% END %]
|
|
</ul></li>
|
|
|
|
[% ELSE %]
|
|
[% IF ( languages_loo.group_enabled ) %]
|
|
[% IF ( languages_loo.current ) %]
|
|
<li class="navbar-text">
|
|
[% IF ( languages_loo.native_description ) %]
|
|
<span class="currentlanguage">[% languages_loo.native_description %]</span>
|
|
[% ELSE %]
|
|
<span class="currentlanguage">[% languages_loo.rfc4646_subtag %]</span>
|
|
[% END %]
|
|
</li>
|
|
[% ELSE %]
|
|
<li><a href="/cgi-bin/koha/changelanguage.pl?language=[% languages_loo.rfc4646_subtag %]">
|
|
[% IF ( languages_loo.native_description ) %]
|
|
[% languages_loo.native_description %]
|
|
[% ELSE %]
|
|
[% languages_loo.rfc4646_subtag %]
|
|
[% END %]
|
|
</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
[% END %]
|
|
[% END %]
|
|
<span id="audio-alert"></span>
|
|
[% IF ( footerjs ) %]
|
|
[% INCLUDE js_includes.inc %]
|
|
[% jsinclude # Parse the page template's JavaScript block if necessary %]
|
|
[% END %]
|
|
</body>
|
|
</html>
|