Martin Renvoize
d43eea51dd
This patch updates the original fix to only set the template parameter for opac sessions and updates all occurences in templats to check first for logged_in_user.branchcode before falling back to default_branch Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
48 lines
1.8 KiB
HTML
48 lines
1.8 KiB
HTML
[% USE raw %]
|
|
[% USE Koha %]
|
|
[% USE AdditionalContents %]
|
|
[% PROCESS 'html_helpers.inc' %]
|
|
[% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
|
|
[% SET OpacHeader = AdditionalContents.get( location => "opacheader", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
|
|
|
<div id="wrapper">
|
|
<div id="header-region" class="noprint">
|
|
<nav class="navbar navbar-expand">
|
|
<h1 id="logo">
|
|
<a class="navbar-brand" href="/cgi-bin/koha/sco/sco-main.pl">
|
|
[% IF ( LibraryNameTitle ) %]
|
|
[% LibraryNameTitle | html %]
|
|
[% ELSE %]
|
|
Koha online
|
|
[% END %]
|
|
</a>
|
|
</h1>
|
|
|
|
<ul class="navbar-nav ml-auto">
|
|
[% IF ( Koha.Preference( 'opaclanguagesdisplay' ) ) %]
|
|
<li class="nav-item">
|
|
[% INCLUDE 'masthead-langmenu.inc' %]
|
|
</li>
|
|
[% END # / IF opaclanguagedisplay %]
|
|
|
|
<li class="nav-item">
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/cgi-bin/koha/sco/help.pl"><i class="fa fa-info-circle fa-icon-black" aria-hidden="true"></i> Help</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</nav> <!-- /navbar -->
|
|
|
|
[% IF ( OpacHeader ) %]
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col">
|
|
[% PROCESS koha_news_block news => OpacHeader %]
|
|
</div>
|
|
</div>
|
|
</div>
|
|
[% END # /IF opacheader %]
|
|
|
|
</div> <!-- /navbar -->
|