5 [% USE AdditionalContents %]
6 [% PROCESS 'html_helpers.inc' %]
7 [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
8 [% SET OpacHeader = AdditionalContents.get( location => "opacheader", lang => lang, library => branchcode, blocktitle => 0 ) %]
9 [% SET OpacCustomSearch = AdditionalContents.get( location => "OpacCustomSearch", lang => lang, library => branchcode, blocktitle => 0 ) %]
10 [% SET OpacLoginInstructions = AdditionalContents.get( location => "OpacLoginInstructions", lang => lang, library => branchcode ) %]
12 <button id="scrolltocontent">Skip to main content</button>
14 <div id="header-region" class="noprint">
15 <nav class="navbar navbar-expand">
17 <a class="navbar-brand" href="/cgi-bin/koha/opac-main.pl">
18 [% IF ( LibraryNameTitle ) %]
19 [% LibraryNameTitle | html %]
25 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
26 <div id="cartDetails" class="cart-message">Your cart is empty.</div>
28 <ul id="cart-list-nav" class="navbar-nav">
29 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
30 <li class="nav-item js-show">
31 <a href="#" class="nav-link" title="Collect items you are interested in" id="cartmenulink" role="button">
32 <i id="carticon" class="fa fa-shopping-cart fa-icon-black" aria-hidden="true"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span>
36 <li class="divider-vertical"></li>
37 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
38 <li class="nav-item dropdown">
39 <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"
40 ><i class="fa fa-list fa-icon-black" aria-hidden="true"></i> <span class="listslabel">Lists</span>
42 <div aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
43 [% IF some_public_shelves.count %]
44 <a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&category=2" tabindex="-1" role="menuitem"><strong>Public lists</strong></a>
45 [% SET number_of_public_shelves = 0 %]
46 [% FOREACH s IN some_public_shelves %]
47 <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>
48 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
49 [% IF number_of_public_shelves >= 10 %][% LAST %][% END %]
51 [% IF some_public_shelves > 10 %]
52 <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&category=2" tabindex="-1" role="menuitem">View All</a>
55 [% IF some_public_shelves.count > 0 %]
56 <div class="dropdown-divider"></div>
58 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
59 <a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem"><strong>Your lists</strong></a>
60 [% IF loggedinusername %]
61 [% IF some_private_shelves.count %]
62 [% SET number_of_private_shelves = 0 %]
63 [% FOREACH s IN some_private_shelves %]
64 <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>
65 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
66 [% IF number_of_private_shelves >= 10 %][% LAST %][% END %]
68 [% IF some_private_shelves > 10 %]
69 <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem">View All</a>
72 <a class="dropdown-item disabled" href="#" tabindex="-1" role="menuitem">No private lists</a>
74 <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem">New list</a>
76 <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>
77 [% END # / IF loggedinusername %]
78 [% END # / IF opacuserlogin %]
79 </div> <!-- / .dropdown-menu -->
80 </li> <!-- / .nav-item.dropdown -->
81 [% END # / IF virtualshelves %]
82 </ul> <!-- / .navbar-nav -->
84 [% IF Koha.Preference( 'opacuserlogin' ) == 1 || Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %]
85 [% IF ( Koha.Preference( 'opaclanguagesdisplay' ) ) %]
86 [% INCLUDE 'masthead-langmenu.inc' %]
88 <ul id="members" class="navbar-nav">
89 <li class="nav-item dropdown">
90 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
91 [% IF ( loggedinusername ) %]
92 <a href="/cgi-bin/koha/opac-user.pl" class="dropdown-toggle" id="user-menu" data-toggle="dropdown" role="button">
93 <i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i>
94 <span class="userlabel">Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span>
96 <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>
98 [% IF Koha.Preference('casAuthentication') %]
99 [%# CAS authentication is too complicated for modal window %]
100 <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>
101 [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
102 <a class="nav-link login-link" href="/cgi-bin/koha/svc/auth/googleopenidconnect"><i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i> <span class="userlabel">Log in to your account</span></a>
104 <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>
109 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 && loggedinusername ) %]
110 <div aria-labelledby="user-menu" role="menu" class="dropdown-menu dropdown-menu-right">
111 <div id="loggedinuser-menu">
113 <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>
115 [% IF Koha.Preference( 'EnableOpacSearchHistory' ) %]
117 <a tabindex="-1" role="menuitem" class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a>
118 <span class="divider-vertical"></span>
119 <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>
122 <a tabindex="-1" role="menuitem" class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log out</a>
127 [% IF ( !Koha.Preference( 'opacuserlogin') || !loggedinusername ) %]
128 [% IF Koha.Preference( 'EnableOpacSearchHistory' ) %]
129 <li class="nav-item search_history">
130 <a class="nav-link login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a>
132 <li class="divider-vertical"></li>
133 <li class="nav-item">
134 <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>
139 [% END # IF opacuserlogin || EnableOpacSearchHistory || opaclanguagesdisplay %]
140 </nav> <!-- /navbar -->
142 [% IF ( OpacHeader ) %]
143 <div class="container-fluid">
146 [% PROCESS koha_news_block news => OpacHeader %]
152 </div> <!-- / header-region -->
154 [% IF ( OpacPublic ) %]
155 <div class="container-fluid">
156 [% UNLESS ( advsearch ) %]
159 <div id="opac-main-search" class="mastheadsearch">
160 [% IF ( OpacCustomSearch ) %]
161 [% PROCESS koha_news_block news => OpacCustomSearch %]
163 <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform">
164 <div class="form-row align-items-center">
165 <div class="col-sm-auto order-1 order-sm-1">
166 <label for="masthead_search"> Search
167 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
168 [% IF ( mylibraryfirst ) %]
169 (in [% Branches.GetName( mylibraryfirst ) | html %] only)
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 ( ms_value ) %]
229 <input type="text" title="Type search term" class="transl1 form-control" id="translControl1" name="q" value="[% ms_value | html %]" /><span id="translControl"></span>
231 <input type="text" title="Type search term" class="transl1 form-control" id="translControl1" name="q" /><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="branch_group_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 [% IF library.selected %]
244 <option selected="selected" value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
246 <option value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
250 [% IF LibrarySearchGroups %]
252 <optgroup label="Groups">
253 [% FOREACH lsg IN LibrarySearchGroups %]
254 [% IF 'multibranchlimit-' _ lsg.id == opac_name || lsg.id == opac_name %]
255 <option selected="selected" value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
257 <option value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
258 [% END # / bc.selected %]
261 [% END # / BranchCategoriesLoop %]
262 </select> <!-- /#select_library -->
263 </div> <!-- /.col-sm-auto -->
264 <div class="col-sm-auto order-5">
265 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
268 [% IF ( opac_limit_override ) %]
269 [% IF ( opac_search_limit ) %]
270 [% IF ( multibranchlimit = opac_search_limit.match( 'branch:(multibranchlimit-\d+)' ) ) %]
271 <input name="branch_group_limit" value="[% multibranchlimit.0 | html %]" type="hidden" />
273 <input name="limit" value="[% opac_search_limit | html %]" type="hidden" />
277 [% IF ( mylibraryfirst ) %]
278 <input name="limit" value="branch:[% mylibraryfirst | html %]" type="hidden" />
280 [% END # / opac_limit_override %]
281 <div class="order-5 col-sm-auto">
282 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
284 [% END # / OpacAddMastheadLibraryPulldown %]
285 </div> <!-- /.form-row -->
286 <input type="hidden" name="weight_search" value="1">
288 [% END # / ( OpacCustomSearch ) %]
289 </div><!-- /#opac-main-search -->
290 </div> <!-- /.col -->
291 </div> <!-- /.row -->
292 [% END # / UNLESS advsearch %]
295 <ul class="nav" id="moresearches">
296 <li class="nav-item">
297 <a href="/cgi-bin/koha/opac-search.pl">Advanced search</a>
299 [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]
300 <li class="nav-item">
301 <a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a>
304 [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]
305 <li class="nav-item">
306 <a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a>
309 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
310 <li class="nav-item">
311 <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
314 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'OPACComments' ) == 1 ) && ( Koha.Preference( 'OpacShowRecentComments' ) == 1 ) ) %]
315 <li class="nav-item">
316 <a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a>
319 [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]
320 <li class="nav-item">
321 <a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a>
324 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]
325 <li class="nav-item">
326 <a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a>
329 [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]
330 <li class="nav-item">
331 <a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a>
334 [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference( 'OpacBrowseSearch' ) == 1 %]
335 <li class="nav-item">
336 <a href="/cgi-bin/koha/opac-browse.pl">Browse search</a>
339 [% IF Koha.Preference( 'suggestion' ) == 1 %]
340 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 || Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]
341 <li class="nav-item">
342 <a href="/cgi-bin/koha/opac-suggestions.pl?suggested_by_anyone=1">Purchase suggestions</a>
346 <li class="nav-item">
347 <a id="library_page" href="/cgi-bin/koha/opac-library.pl">
348 [% IF ( singleBranchMode ) %]
355 [% Koha.Preference('OpacMoreSearches') | $raw %]
356 </ul> <!-- /.nav#moresearches -->
357 </div> <!-- /.row -->
358 </div> <!-- /.container-fluid -->
359 [% END # / OpacPublic %]
361 <!-- Login form hidden by default, used for modal window -->
362 <div id="loginModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
363 <div class="modal-dialog">
364 <div class="modal-content">
365 <div class="modal-header">
366 <h2 class="modal-title" id="modalLoginLabel">Log in to your account</h2>
367 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close">
368 <span aria-hidden="true">×</span>
371 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
372 <input type="hidden" name="has-search-query" id="has-search-query" value="" />
373 <div class="modal-body">
374 [% IF ( shibbolethAuthentication ) %]
375 [% IF ( invalidShibLogin ) %]
376 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
377 <div class="alert alert-info">
378 <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
381 <h3>Shibboleth login</h3>
382 <p><a href="[% shibbolethLoginUrl | $raw %]">Log in using a Shibboleth account</a>.</p>
383 [% UNLESS Koha.Preference('opacShibOnly') %]
388 [% UNLESS Koha.Preference('opacShibOnly') %]
389 <input type="hidden" name="koha_login_context" value="opac" />
390 <fieldset class="brief">
391 <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
392 <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
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 [% UNLESS Koha.Preference('opacShibOnly') %]
412 <div class="modal-footer">
413 <input type="submit" class="btn btn-primary" value="Log in" />
416 </form> <!-- /#auth -->
417 </div> <!-- /.modal-content -->
418 </div> <!-- /.modal-dialog -->
419 </div> <!-- /#modalAuth -->