6 [% USE AdditionalContents %]
7 [% PROCESS 'html_helpers.inc' %]
8 [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
9 [% SET OpacHeader = AdditionalContents.get( location => "opacheader", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
10 [% SET OpacCustomSearch = AdditionalContents.get( location => "OpacCustomSearch", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
11 [% SET OpacLoginInstructions = AdditionalContents.get( location => "OpacLoginInstructions", lang => lang, library => branchcode || default_branch ) %]
12 [% SET OpacMoreSearches = AdditionalContents.get( location => "OpacMoreSearches", lang => lang, library => branchcode || default_branch ) %]
14 <button id="scrolltocontent">Skip to main content</button>
16 <div id="header-region" class="noprint">
17 <nav class="navbar navbar-expand">
19 <a class="navbar-brand" href="/cgi-bin/koha/opac-main.pl">
20 [% IF ( LibraryNameTitle ) %]
21 [% LibraryNameTitle | html %]
27 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
28 <div id="cartDetails" class="cart-message">Your cart is empty.</div>
30 <ul id="cart-list-nav" class="navbar-nav">
31 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
32 <li class="nav-item js-show">
33 <a href="#" class="nav-link" title="Collect items you are interested in" id="cartmenulink" role="button">
34 <i id="carticon" class="fa fa-shopping-cart fa-icon-black" aria-hidden="true"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span>
38 <li class="divider-vertical"></li>
39 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
40 <li class="nav-item dropdown">
41 <a href="/cgi-bin/koha/opac-shelves.pl" title="Show lists" class="nav-link dropdown-toggle" id="listsmenu" data-toggle="dropdown" role="button" aria-label="Show dropdown with detailed list information" aria-haspopup="true" aria-expanded="false"
42 ><i class="fa fa-list fa-icon-black" aria-hidden="true"></i> <span class="listslabel">Lists</span>
44 <div aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
45 [% IF some_public_shelves.count %]
46 <a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1" tabindex="-1" role="menuitem"><strong>Public lists</strong></a>
47 [% SET number_of_public_shelves = 0 %]
48 [% FOREACH s IN some_public_shelves %]
49 <a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]&sortfield=[% s.sortfield | uri %]" tabindex="-1" role="menuitem">[% s.shelfname | html %]</a>
50 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
51 [% IF number_of_public_shelves >= 10 %][% LAST %][% END %]
53 [% IF some_public_shelves > 10 %]
54 <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1" tabindex="-1" role="menuitem">View all</a>
57 [% IF some_public_shelves.count > 0 %]
58 <div class="dropdown-divider"></div>
60 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
61 <a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="-1" role="menuitem"><strong>Your lists</strong></a>
62 [% IF loggedinusername %]
63 [% IF some_private_shelves.count %]
64 [% SET number_of_private_shelves = 0 %]
65 [% FOREACH s IN some_private_shelves %]
66 <a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]&sortfield=[% s.sortfield | uri %]" tabindex="-1" role="menuitem">[% s.shelfname | html %]</a>
67 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
68 [% IF number_of_private_shelves >= 10 %][% LAST %][% END %]
70 [% IF some_private_shelves > 10 %]
71 <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="-1" role="menuitem">View all</a>
74 <a class="dropdown-item disabled" href="#" tabindex="-1" role="menuitem">No private lists</a>
76 <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem">New list</a>
78 <a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem">Log in to create your own lists</a>
79 [% END # / IF loggedinusername %]
80 [% END # / IF opacuserlogin %]
81 </div> <!-- / .dropdown-menu -->
82 </li> <!-- / .nav-item.dropdown -->
83 [% END # / IF virtualshelves %]
84 [% IF Koha.Preference( 'OpacTrustedCheckout' ) %]
86 <a href="#" class="nav-link" title="Self check out" id="comenulink" role="button" data-toggle="modal" data-target="#checkoutModal">
87 <i id="checkout-icon" class="fa fa-barcode fa-icon-black" aria-hidden="true"></i> <span class="checkout-label">Self checkout</span>
91 </ul> <!-- / .navbar-nav -->
93 [% IF Koha.Preference( 'opacuserlogin' ) == 1 || Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %]
94 [% IF ( Koha.Preference( 'opaclanguagesdisplay' ) ) %]
95 [% INCLUDE 'masthead-langmenu.inc' %]
97 <ul id="members" class="navbar-nav">
98 <li class="nav-item dropdown">
99 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
100 [% IF ( loggedinusername ) %]
101 <a href="/cgi-bin/koha/opac-user.pl" class="dropdown-toggle" id="user-menu" data-toggle="dropdown" role="button">
102 <i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i>
103 <span class="userlabel">Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span>
105 <a tabindex="-1" role="menuitem" class="logout js-hide" href="/cgi-bin/koha/opac-main.pl?logout.x=1"><i class="fa fa-fw fa-sign-out" aria-hidden="true"></i> Log out</a>
107 [% IF Koha.Preference('casAuthentication') %]
108 [%# CAS authentication is too complicated for modal window %]
109 <a class="nav-link login-link" href="/cgi-bin/koha/opac-user.pl"><i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i> <span class="userlabel">Log in to your account</span></a>
110 [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
111 <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="nav-link login-link loginModal-trigger"><i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i> <span class="userlabel">Log in to your account</span></a>
113 <a href="/cgi-bin/koha/opac-user.pl" class="nav-link login-link loginModal-trigger"><i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i> <span class="userlabel">Log in to your account</span></a>
118 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 && loggedinusername ) %]
119 <div aria-labelledby="user-menu" role="menu" class="dropdown-menu dropdown-menu-right">
120 <div id="loggedinuser-menu">
122 <a class="login-link" href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername" data-borrowernumber="[% logged_in_user.borrowernumber | html %]" data-branchcode="[% logged_in_user.branchcode | html %]" data-categorycode="[% logged_in_user.categorycode | html %]">Your account</span></a>
124 [% IF Koha.Preference( 'EnableOpacSearchHistory' ) %]
126 <a tabindex="-1" role="menuitem" class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a>
127 <span class="divider-vertical"></span>
128 <a class="clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history"><i class="fa fa-trash-can" aria-hidden="true"></i> Clear</a>
131 <a tabindex="-1" role="menuitem" class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log out</a>
136 [% IF ( !Koha.Preference( 'opacuserlogin') || !loggedinusername ) %]
137 [% IF Koha.Preference( 'EnableOpacSearchHistory' ) %]
138 <li class="nav-item search_history">
139 <a class="nav-link login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a>
141 <li class="divider-vertical"></li>
142 <li class="nav-item">
143 <a class="nav-link logout clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history"><i class="fa fa-trash-can" aria-hidden="true"></i> Clear</a>
148 [% END # IF opacuserlogin || EnableOpacSearchHistory || opaclanguagesdisplay %]
149 </nav> <!-- /navbar -->
151 [% IF ( OpacHeader ) %]
152 <div class="container-fluid">
155 [% PROCESS koha_news_block news => OpacHeader %]
161 </div> <!-- / header-region -->
163 [% IF ( OpacPublic ) %]
164 <div class="container-fluid">
165 [% UNLESS ( advsearch ) %]
168 <div id="opac-main-search" class="mastheadsearch">
169 [% IF ( OpacCustomSearch ) %]
170 [% PROCESS koha_news_block news => OpacCustomSearch %]
172 <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform">
173 <div class="form-row align-items-center">
174 <div class="col-sm-auto order-2 order-sm-2">
175 <select name="idx" id="masthead_search" class="form-control">
177 <option selected="selected" value="">Library catalog</option>
179 <option value="">Library catalog</option>
182 <option selected="selected" value="ti">Title</option>
184 <option value="ti">Title</option>
187 <option selected="selected" value="au">Author</option>
189 <option value="au">Author</option>
192 <option selected="selected" value="su">Subject</option>
194 <option value="su">Subject</option>
197 <option selected="selected" value="nb">ISBN</option>
199 <option value="nb">ISBN</option>
202 <option selected="selected" value="ns">ISSN</option>
204 <option value="ns">ISSN</option>
207 <option selected="selected" value="se">Series</option>
209 <option value="se">Series</option>
211 [% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %]
212 [% IF ( ms_callnumcommaphr ) %]
213 <option selected="selected" value="callnum,phr">Call number</option>
215 <option value="callnum,phr">Call number</option>
216 [% END #/ms_callnumcommaphr %]
218 [% IF ( ms_callnum ) %]
219 <option selected="selected" value="callnum">Call number</option>
221 <option value="callnum">Call number</option>
222 [% END # /ms_callnum %]
223 [% END # /IF OPACNumbersPreferPhrase %]
225 </div> <!-- /.col-sm-auto -->
227 <div class="col order-4 order-sm-3">
228 [% IF ( !Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 && mylibraryfirst ) %]
229 <input type="text" class="transl1 form-control form-control-filtered" id="translControl1" name="q" value="[% ms_value | html %]" data-toggle="tooltip" data-placement="top" title="Searching in [% Branches.GetName( mylibraryfirst ) | html %] only" /><span id="translControl"></span>
231 <input type="text" class="transl1 form-control" id="translControl1" name="q" value="[% ms_value | html %]" /><span id="translControl"></span>
232 [% END # /ms_value %]
233 </div> <!-- /.col -->
235 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
236 <div class="col-sm col-md-3 col-lg-2 order-3 order-sm-4">
237 <select name="limit" id="select_library" class="form-control">
238 <option value="">All libraries</option>
240 [% IF LibrarySearchGroups %]<optgroup label="Libraries">[% END %]
242 [% FOREACH library IN Branches.all( selected => opac_name ) %]
243 [% NEXT UNLESS library.public %]
244 [% IF library.selected %]
245 <option selected="selected" value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
247 <option value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
251 [% IF LibrarySearchGroups %]
253 <optgroup label="Groups">
254 [% FOREACH lsg IN LibrarySearchGroups %]
255 [% IF 'multibranchlimit-' _ lsg.id == opac_name || lsg.id == opac_name %]
256 <option selected="selected" value="multibranchlimit:[% lsg.id | html %]">[% lsg.title | html %]</option>
258 <option value="multibranchlimit:[% lsg.id | html %]">[% lsg.title | html %]</option>
259 [% END # / bc.selected %]
262 [% END # / BranchCategoriesLoop %]
263 </select> <!-- /#select_library -->
264 </div> <!-- /.col-sm-auto -->
266 [% IF ( opac_limit_override ) %]
267 [% IF ( opac_search_limit ) %]
268 [% IF ( multibranchlimit = opac_search_limit.match( 'branch:multibranchlimit-(\d+)' ) ) %]
269 <input name="limit" value="multibranchlimit:[% multibranchlimit.0 | html %]" type="hidden" />
271 <input name="limit" value="[% opac_search_limit | html %]" type="hidden" />
275 [% IF ( mylibraryfirst ) %]
276 <input name="limit" value="branch:[% mylibraryfirst | html %]" type="hidden" />
278 [% END # / opac_limit_override %]
279 [% END # / OpacAddMastheadLibraryPulldown %]
281 <div class="order-5 col-sm-auto">
282 <button type="submit" id="searchsubmit" class="btn btn-primary" title="Search" aria-label="Search">
283 <i class="fa fa-search" aria-hidden="true"></i>
287 </div> <!-- /.form-row -->
288 <input type="hidden" name="weight_search" value="1">
290 [% END # / ( OpacCustomSearch ) %]
291 </div><!-- /#opac-main-search -->
292 </div> <!-- /.col -->
293 </div> <!-- /.row -->
294 [% END # / UNLESS advsearch %]
297 <ul class="nav" id="moresearches">
298 <li class="nav-item">
299 <a href="/cgi-bin/koha/opac-search.pl">Advanced search</a>
301 [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]
302 <li class="nav-item">
303 <a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a>
306 [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]
307 <li class="nav-item">
308 <a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a>
311 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
312 <li class="nav-item">
313 <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
316 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'OPACComments' ) == 1 ) && ( Koha.Preference( 'OpacShowRecentComments' ) == 1 ) ) %]
317 <li class="nav-item">
318 <a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a>
321 [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]
322 <li class="nav-item">
323 <a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a>
326 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]
327 <li class="nav-item">
328 <a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a>
331 [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]
332 <li class="nav-item">
333 <a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a>
336 [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference( 'OpacBrowseSearch' ) == 1 %]
337 <li class="nav-item">
338 <a href="/cgi-bin/koha/opac-browse.pl">Browse search</a>
342 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 || Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]
343 <li class="nav-item">
344 <a href="/cgi-bin/koha/opac-suggestions.pl?suggested_by_anyone=1">Purchase suggestions</a>
348 <li class="nav-item">
349 <a id="library_page" href="/cgi-bin/koha/opac-library.pl">
350 [% IF ( singleBranchMode ) %]
353 <span>Libraries</span>
357 [% PROCESS koha_news_block news => OpacMoreSearches %]
358 </ul> <!-- /.nav#moresearches -->
359 </div> <!-- /.row -->
360 </div> <!-- /.container-fluid -->
361 [% END # / OpacPublic %]
363 <!-- Login form hidden by default, used for modal window -->
364 <div id="loginModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
365 <div class="modal-dialog">
366 <div class="modal-content">
367 <div class="modal-header">
368 <h2 class="modal-title" id="modalLoginLabel">Log in to your account</h2>
369 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close">
370 <span aria-hidden="true">×</span>
373 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
374 <input type="hidden" name="has-search-query" id="has-search-query" value="" />
375 <div class="modal-body">
376 [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
377 <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-light" id="openid_connect"><i class="fa-brands fa-google" aria-hidden="true"></i> Log in with Google</a>
378 <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
379 [% END # /IF GoogleOpenIDConnect %]
380 [% IF ( shibbolethAuthentication ) %]
381 [% IF ( invalidShibLogin ) %]
382 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
383 <div class="alert alert-info">
384 <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
387 <h3>Shibboleth login</h3>
388 <p><a id="shib_url" href="[% shibbolethLoginUrl | $raw %]">Log in using a Shibboleth account</a>.</p>
389 [% UNLESS Koha.Preference('opacShibOnly') %]
394 [% UNLESS Koha.Preference('opacShibOnly') %]
395 [% SET identity_providers = AuthClient.get_providers('opac') %]
396 [% IF ( ! identity_providers.empty ) %]
397 [% FOREACH provider IN identity_providers %]
399 <a href="[% provider.url | url %]" class="btn btn-light col-md-12" id="provider_[% provider.code | html %]">
400 [% IF provider.icon_url %]
401 <img src="[% provider.icon_url | url %]" />
403 <i class="fa fa-user" aria-hidden="true"></i>
405 Log in with [% provider.description | html %]
410 <p>If you do not have an external account, but do have a local account, you can still log in: </p>
411 [% END # /IF identity_providers.size %]
412 <input type="hidden" name="koha_login_context" value="opac" />
413 <fieldset class="brief">
414 <div class="local-login">
415 <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" autocomplete="off" />
416 <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" autocomplete="off" />
417 <fieldset class="action">
418 <input type="submit" class="btn btn-primary" value="Log in" />
421 [% IF OpacLoginInstructions %]
422 <div id="nologininstructions-modal" class="nologininstructions">
423 [% PROCESS koha_news_block news => OpacLoginInstructions %]
426 [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
427 <div id="forgotpassword-modal" class="forgotpassword">
428 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
431 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
432 <div id="patronregistration-modal" class="patronregistration">
433 <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
439 </form> <!-- /#auth -->
440 </div> <!-- /.modal-content -->
441 </div> <!-- /.modal-dialog -->
442 </div> <!-- /#modalAuth -->