Koha/koha-tmpl/opac-tmpl/bootstrap/en/includes
Marc Véron 17b3e3c9eb Bug 15039: Move top language menu to include and streamline logic
The language menu in koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc is used at other places as well (see Bug 14776).

This patch moves it to a file masthead-langmenu.inc to make it re-usable.

Additionally it streamlines the logic (not all combinations of Opac sysprefs that should display the menu did so).

To test:
- Apply patch
- Verify, that the language menu displays / does not display with combinations of:
  - opaclanguagedisplay (Allow)
  - opaclanguages ( > 1 language selected)
  - OpacLangSelectorMode (top or both)
- Verify that sysprefs opacuserlogin and EnableOpacSearchHistory do not interfere
  with the lenguage menu (before, at least one of them had to be on to display the menu)
- Verify that language switching works as before.

Signed-off-by:  Chris Kirby <christopherlawrencekirby@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-10-22 11:53:42 -03:00
..
search
authorities-search-results.inc Bug 10985: [UNIMARC] Fix authority summary 2015-04-22 11:54:36 -03:00
bodytag.inc Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
calendar.inc Bug 12137: Use Koha.Preference to access pref value 2015-07-20 10:44:06 -03:00
datatables.inc
date-format.inc
doc-head-close.inc Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc 2015-06-22 17:04:48 -03:00
doc-head-open.inc Bug 13948: Prevent explosion when Template::Plugin::Stash not installed 2015-07-28 10:30:21 -03:00
greybox.inc Bug 8992: Add the greybox include file for the bootstrap theme 2015-04-28 15:47:39 -03:00
item-status-schema-org.inc
item-status.inc Bug 9214 - Show damaged status in the OPAC for items which are not for loan 2014-11-11 15:13:03 -03:00
masthead-langmenu.inc Bug 15039: Move top language menu to include and streamline logic 2015-10-22 11:53:42 -03:00
masthead-sco.inc
masthead.inc Bug 15039: Move top language menu to include and streamline logic 2015-10-22 11:53:42 -03:00
navigation.inc
opac-authorities.inc
opac-bottom.inc Bug 5685: [OPAC follow-up] Validation of email address field 2015-07-24 13:47:57 -03:00
opac-detail-sidebar.inc Bug 13695: Add ISBD export option to OPAC (detail) 2015-03-31 10:34:30 -03:00
opac-facets.inc Bug 13789 - facets with accented utf-8 characters generate double encoded links 2015-03-07 21:05:04 +01:00
opac-topissues.inc Bug 11139: Add support for multiple values in AdvancedSearchTypes 2015-10-22 11:36:53 -03:00
page-numbers.inc Bug 12399: Small change to remove the whole paging 2015-03-15 09:09:51 -03:00
patron-title.inc
resort_form.inc
shelfbrowser.inc Bug 14607: (QA followup) Fix typo in shelfbrowser.inc 2015-10-06 11:09:53 -03:00
subtypes_unimarc.inc
usermenu.inc Bug 4137: Fix the OPACViewOthersSuggestions behavior 2015-06-19 11:34:27 -03:00