5 [% USE AdditionalContents %]
6 [% PROCESS 'html_helpers.inc' %]
7 [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
8 [% SET OpacHeader = AdditionalContents.get( location => "opacheader", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
9 [% SET OpacCustomSearch = AdditionalContents.get( location => "OpacCustomSearch", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
10 [% SET OpacLoginInstructions = AdditionalContents.get( location => "OpacLoginInstructions", lang => lang, library => branchcode || default_branch ) %]
11 [% SET OpacMoreSearches = AdditionalContents.get( location => "OpacMoreSearches", lang => lang, library => branchcode || default_branch ) %]
13 <button id="scrolltocontent">Skip to main content</button>
15 <div id="header-region" class="noprint">
16 <nav class="navbar navbar-expand">
18 <a class="navbar-brand" href="/cgi-bin/koha/opac-main.pl">
19 [% IF ( LibraryNameTitle ) %]
20 [% LibraryNameTitle | html %]
26 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
27 <div id="cartDetails" class="cart-message">Your cart is empty.</div>
29 <ul id="cart-list-nav" class="navbar-nav">
30 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
31 <li class="nav-item js-show">
32 <a href="#" class="nav-link" title="Collect items you are interested in" id="cartmenulink" role="button">
33 <i id="carticon" class="fa fa-shopping-cart fa-icon-black" aria-hidden="true"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span>
37 <li class="divider-vertical"></li>
38 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
39 <li class="nav-item dropdown">
40 <a href="/cgi-bin/koha/opac-shelves.pl" title="Show lists" class="nav-link dropdown-toggle" id="listsmenu" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"
41 ><i class="fa fa-list fa-icon-black" aria-hidden="true"></i> <span class="listslabel">Lists</span>
43 <div aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
44 [% IF some_public_shelves.count %]
45 <a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1" tabindex="-1" role="menuitem"><strong>Public lists</strong></a>
46 [% SET number_of_public_shelves = 0 %]
47 [% FOREACH s IN some_public_shelves %]
48 <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>
49 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
50 [% IF number_of_public_shelves >= 10 %][% LAST %][% END %]
52 [% IF some_public_shelves > 10 %]
53 <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1" tabindex="-1" role="menuitem">View all</a>
56 [% IF some_public_shelves.count > 0 %]
57 <div class="dropdown-divider"></div>
59 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
60 <a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="-1" role="menuitem"><strong>Your lists</strong></a>
61 [% IF loggedinusername %]
62 [% IF some_private_shelves.count %]
63 [% SET number_of_private_shelves = 0 %]
64 [% FOREACH s IN some_private_shelves %]
65 <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>
66 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
67 [% IF number_of_private_shelves >= 10 %][% LAST %][% END %]
69 [% IF some_private_shelves > 10 %]
70 <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="-1" role="menuitem">View all</a>
73 <a class="dropdown-item disabled" href="#" tabindex="-1" role="menuitem">No private lists</a>
75 <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem">New list</a>
77 <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>
78 [% END # / IF loggedinusername %]
79 [% END # / IF opacuserlogin %]
80 </div> <!-- / .dropdown-menu -->
81 </li> <!-- / .nav-item.dropdown -->
82 [% END # / IF virtualshelves %]
83 </ul> <!-- / .navbar-nav -->
85 [% IF Koha.Preference( 'opacuserlogin' ) == 1 || Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %]
86 [% IF ( Koha.Preference( 'opaclanguagesdisplay' ) ) %]
87 [% INCLUDE 'masthead-langmenu.inc' %]
89 <ul id="members" class="navbar-nav">
90 <li class="nav-item dropdown">
91 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
92 [% IF ( loggedinusername ) %]
93 <a href="/cgi-bin/koha/opac-user.pl" class="dropdown-toggle" id="user-menu" data-toggle="dropdown" role="button">
94 <i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i>
95 <span class="userlabel">Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span>
97 <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>
99 [% IF Koha.Preference('casAuthentication') %]
100 [%# CAS authentication is too complicated for modal window %]
101 <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>
102 [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
103 <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>
105 <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>
110 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 && loggedinusername ) %]
111 <div aria-labelledby="user-menu" role="menu" class="dropdown-menu dropdown-menu-right">
112 <div id="loggedinuser-menu">
114 <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>
116 [% IF Koha.Preference( 'EnableOpacSearchHistory' ) %]
118 <a tabindex="-1" role="menuitem" class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a>
119 <span class="divider-vertical"></span>
120 <a class="clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history"><i class="fa fa-trash" aria-hidden="true"></i> Clear</a>
123 <a tabindex="-1" role="menuitem" class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log out</a>
128 [% IF ( !Koha.Preference( 'opacuserlogin') || !loggedinusername ) %]
129 [% IF Koha.Preference( 'EnableOpacSearchHistory' ) %]
130 <li class="nav-item search_history">
131 <a class="nav-link login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a>
133 <li class="divider-vertical"></li>
134 <li class="nav-item">
135 <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" aria-hidden="true"></i> Clear</a>
140 [% END # IF opacuserlogin || EnableOpacSearchHistory || opaclanguagesdisplay %]
141 </nav> <!-- /navbar -->
143 [% IF ( OpacHeader ) %]
144 <div class="container-fluid">
147 [% PROCESS koha_news_block news => OpacHeader %]
153 </div> <!-- / header-region -->
155 [% IF ( OpacPublic ) %]
156 <div class="container-fluid">
157 [% UNLESS ( advsearch ) %]
160 <div id="opac-main-search" class="mastheadsearch">
161 [% IF ( OpacCustomSearch ) %]
162 [% PROCESS koha_news_block news => OpacCustomSearch %]
164 <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform">
165 <div class="form-row align-items-center">
166 <div class="col-sm-auto order-2 order-sm-2">
167 <select name="idx" id="masthead_search" class="form-control">
169 <option selected="selected" value="">Library catalog</option>
171 <option value="">Library catalog</option>
174 <option selected="selected" value="ti">Title</option>
176 <option value="ti">Title</option>
179 <option selected="selected" value="au">Author</option>
181 <option value="au">Author</option>
184 <option selected="selected" value="su">Subject</option>
186 <option value="su">Subject</option>
189 <option selected="selected" value="nb">ISBN</option>
191 <option value="nb">ISBN</option>
194 <option selected="selected" value="ns">ISSN</option>
196 <option value="ns">ISSN</option>
199 <option selected="selected" value="se">Series</option>
201 <option value="se">Series</option>
203 [% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %]
204 [% IF ( ms_callnumcommaphr ) %]
205 <option selected="selected" value="callnum,phr">Call number</option>
207 <option value="callnum,phr">Call number</option>
208 [% END #/ms_callnumcommaphr %]
210 [% IF ( ms_callnum ) %]
211 <option selected="selected" value="callnum">Call number</option>
213 <option value="callnum">Call number</option>
214 [% END # /ms_callnum %]
215 [% END # /IF OPACNumbersPreferPhrase %]
217 </div> <!-- /.col-sm-auto -->
219 <div class="col order-4 order-sm-3">
220 [% IF ( !Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 && mylibraryfirst ) %]
221 <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>
223 <input type="text" class="transl1 form-control" id="translControl1" name="q" value="[% ms_value | html %]" /><span id="translControl"></span>
224 [% END # /ms_value %]
225 </div> <!-- /.col -->
227 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
228 <div class="col-sm col-md-3 col-lg-2 order-3 order-sm-4">
229 <select name="limit" id="select_library" class="form-control">
230 <option value="">All libraries</option>
232 [% IF LibrarySearchGroups %]<optgroup label="Libraries">[% END %]
234 [% FOREACH library IN Branches.all( selected => opac_name ) %]
235 [% IF library.selected %]
236 <option selected="selected" value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
238 <option value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
242 [% IF LibrarySearchGroups %]
244 <optgroup label="Groups">
245 [% FOREACH lsg IN LibrarySearchGroups %]
246 [% IF 'multibranchlimit-' _ lsg.id == opac_name || lsg.id == opac_name %]
247 <option selected="selected" value="multibranchlimit:[% lsg.id | html %]">[% lsg.title | html %]</option>
249 <option value="multibranchlimit:[% lsg.id | html %]">[% lsg.title | html %]</option>
250 [% END # / bc.selected %]
253 [% END # / BranchCategoriesLoop %]
254 </select> <!-- /#select_library -->
255 </div> <!-- /.col-sm-auto -->
257 [% IF ( opac_limit_override ) %]
258 [% IF ( opac_search_limit ) %]
259 [% IF ( multibranchlimit = opac_search_limit.match( 'branch:multibranchlimit-(\d+)' ) ) %]
260 <input name="limit" value="multibranchlimit:[% multibranchlimit.0 | html %]" type="hidden" />
262 <input name="limit" value="[% opac_search_limit | html %]" type="hidden" />
266 [% IF ( mylibraryfirst ) %]
267 <input name="limit" value="branch:[% mylibraryfirst | html %]" type="hidden" />
269 [% END # / opac_limit_override %]
270 [% END # / OpacAddMastheadLibraryPulldown %]
272 <div class="order-5 col-sm-auto">
273 <button type="submit" id="searchsubmit" class="btn btn-primary" title="Search" aria-label="Search">
274 <i class="fa fa-search" aria-hidden="true"></i>
278 </div> <!-- /.form-row -->
279 <input type="hidden" name="weight_search" value="1">
281 [% END # / ( OpacCustomSearch ) %]
282 </div><!-- /#opac-main-search -->
283 </div> <!-- /.col -->
284 </div> <!-- /.row -->
285 [% END # / UNLESS advsearch %]
288 <ul class="nav" id="moresearches">
289 <li class="nav-item">
290 <a href="/cgi-bin/koha/opac-search.pl">Advanced search</a>
292 [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]
293 <li class="nav-item">
294 <a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a>
297 [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]
298 <li class="nav-item">
299 <a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a>
302 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
303 <li class="nav-item">
304 <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
307 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'OPACComments' ) == 1 ) && ( Koha.Preference( 'OpacShowRecentComments' ) == 1 ) ) %]
308 <li class="nav-item">
309 <a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a>
312 [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]
313 <li class="nav-item">
314 <a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a>
317 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]
318 <li class="nav-item">
319 <a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a>
322 [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]
323 <li class="nav-item">
324 <a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a>
327 [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference( 'OpacBrowseSearch' ) == 1 %]
328 <li class="nav-item">
329 <a href="/cgi-bin/koha/opac-browse.pl">Browse search</a>
332 [% IF Koha.Preference( 'suggestion' ) == 1 %]
333 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 || Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]
334 <li class="nav-item">
335 <a href="/cgi-bin/koha/opac-suggestions.pl?suggested_by_anyone=1">Purchase suggestions</a>
339 <li class="nav-item">
340 <a id="library_page" href="/cgi-bin/koha/opac-library.pl">
341 [% IF ( singleBranchMode ) %]
344 <span>Libraries</span>
348 [% PROCESS koha_news_block news => OpacMoreSearches %]
349 </ul> <!-- /.nav#moresearches -->
350 </div> <!-- /.row -->
351 </div> <!-- /.container-fluid -->
352 [% END # / OpacPublic %]
354 <!-- Login form hidden by default, used for modal window -->
355 <div id="loginModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
356 <div class="modal-dialog">
357 <div class="modal-content">
358 <div class="modal-header">
359 <h2 class="modal-title" id="modalLoginLabel">Log in to your account</h2>
360 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close">
361 <span aria-hidden="true">×</span>
364 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
365 <input type="hidden" name="has-search-query" id="has-search-query" value="" />
366 <div class="modal-body">
367 [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
368 <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-light" id="openid_connect"><i class="fa fa-google" aria-hidden="true"></i> Log in with Google</a>
369 <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
370 [% END # /IF GoogleOpenIDConnect %]
371 [% IF ( shibbolethAuthentication ) %]
372 [% IF ( invalidShibLogin ) %]
373 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
374 <div class="alert alert-info">
375 <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
378 <h3>Shibboleth login</h3>
379 <p><a href="[% shibbolethLoginUrl | $raw %]">Log in using a Shibboleth account</a>.</p>
380 [% UNLESS Koha.Preference('opacShibOnly') %]
385 [% UNLESS Koha.Preference('opacShibOnly') %]
386 <input type="hidden" name="koha_login_context" value="opac" />
387 <fieldset class="brief">
388 <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" autocomplete="off" />
389 <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" autocomplete="off" />
390 <fieldset class="action">
391 <input type="submit" class="btn btn-primary" value="Log in" />
393 [% IF OpacLoginInstructions %]
394 <div id="nologininstructions-modal" class="nologininstructions">
395 [% PROCESS koha_news_block news => OpacLoginInstructions %]
398 [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
399 <div id="forgotpassword-modal" class="forgotpassword">
400 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
403 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
404 <div id="patronregistration-modal" class="patronregistration">
405 <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
411 </form> <!-- /#auth -->
412 </div> <!-- /.modal-content -->
413 </div> <!-- /.modal-dialog -->
414 </div> <!-- /#modalAuth -->