6 [% PROCESS 'html_helpers.inc' %]
7 [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
8 [% SET OpacHeader = KohaNews.get( location => "opacheader", lang => lang, library => branchcode, blocktitle => 0 ) %]
9 [% SET OpacCustomSearch = KohaNews.get( location => "OpacCustomSearch", lang => lang, library => branchcode, blocktitle => 0 ) %]
10 [% SET OpacLoginInstructions = KohaNews.get( location => "OpacLoginInstructions", lang => lang, library => branchcode ) %]
13 <div id="header-region" class="noprint">
14 <nav class="navbar navbar-expand">
15 <button id="scrolltocontent">Skip to main content</button>
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>
97 [% IF Koha.Preference('casAuthentication') %]
98 [%# CAS authentication is too complicated for modal window %]
99 <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>
100 [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
101 <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>
103 <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>
108 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 && loggedinusername ) %]
109 <div aria-labelledby="user-menu" role="menu" class="dropdown-menu dropdown-menu-right">
110 <div id="loggedinuser-menu">
112 <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>
114 [% IF Koha.Preference( 'EnableOpacSearchHistory' ) %]
116 <a tabindex="-1" role="menuitem" class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a>
117 <span class="divider-vertical"></span>
118 <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>
121 <a tabindex="-1" role="menuitem" class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log out</a>
126 [% IF ( !Koha.Preference( 'opacuserlogin') || !loggedinusername ) %]
127 [% IF Koha.Preference( 'EnableOpacSearchHistory' ) %]
128 <li class="nav-item search_history">
129 <a class="nav-link login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a>
131 <li class="divider-vertical"></li>
132 <li class="nav-item">
133 <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>
138 [% END # IF opacuserlogin || EnableOpacSearchHistory || opaclanguagesdisplay %]
139 </nav> <!-- /navbar -->
141 [% IF ( OpacHeader ) %]
142 <div class="container-fluid">
145 [% PROCESS koha_news_block news => OpacHeader %]
151 </div> <!-- / header-region -->
153 [% IF ( OpacPublic ) %]
154 <div class="container-fluid">
155 [% UNLESS ( advsearch ) %]
158 <div id="opac-main-search">
159 [% IF ( OpacCustomSearch ) %]
160 [% PROCESS koha_news_block news => OpacCustomSearch %]
162 <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform">
163 <div class="form-row align-items-center">
164 <div class="col-sm-auto order-1 order-sm-1">
165 <label for="masthead_search"> Search
166 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
167 [% IF ( mylibraryfirst ) %]
168 (in [% Branches.GetName( mylibraryfirst ) | html %] only)
173 <div class="col-sm-auto order-2 order-sm-2">
174 <select name="idx" id="masthead_search" class="form-control">
176 <option selected="selected" value="">Library catalog</option>
178 <option value="">Library catalog</option>
181 <option selected="selected" value="ti">Title</option>
183 <option value="ti">Title</option>
186 <option selected="selected" value="au">Author</option>
188 <option value="au">Author</option>
191 <option selected="selected" value="su">Subject</option>
193 <option value="su">Subject</option>
196 <option selected="selected" value="nb">ISBN</option>
198 <option value="nb">ISBN</option>
201 <option selected="selected" value="ns">ISSN</option>
203 <option value="ns">ISSN</option>
206 <option selected="selected" value="se">Series</option>
208 <option value="se">Series</option>
210 [% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %]
211 [% IF ( ms_callnumcommaphr ) %]
212 <option selected="selected" value="callnum,phr">Call number</option>
214 <option value="callnum,phr">Call number</option>
215 [% END #/ms_callnumcommaphr %]
217 [% IF ( ms_callnum ) %]
218 <option selected="selected" value="callnum">Call number</option>
220 <option value="callnum">Call number</option>
221 [% END # /ms_callnum %]
222 [% END # /IF OPACNumbersPreferPhrase %]
224 </div> <!-- /.col-sm-auto -->
226 <div class="col order-4 order-sm-3">
227 [% IF ( ms_value ) %]
228 <input type="text" title="Type search term" class="transl1 form-control" id="translControl1" name="q" value="[% ms_value | html %]" /><span id="translControl"></span>
230 <input type="text" title="Type search term" class="transl1 form-control" id="translControl1" name="q" /><span id="translControl"></span>
231 [% END # /ms_value %]
232 </div> <!-- /.col -->
234 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
235 <div class="col-sm col-md-3 col-lg-2 order-3 order-sm-4">
236 <select name="branch_group_limit" id="select_library" class="form-control">
237 <option value="">All libraries</option>
239 [% IF LibrarySearchGroups %]<optgroup label="Libraries">[% END %]
241 [% FOREACH library IN Branches.all( selected => opac_name ) %]
242 [% IF library.selected %]
243 <option selected="selected" value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
245 <option value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
249 [% IF LibrarySearchGroups %]
251 <optgroup label="Groups">
252 [% FOREACH lsg IN LibrarySearchGroups %]
253 [% IF lsg.id == opac_name %]
254 <option selected="selected" value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
256 <option value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
257 [% END # / bc.selected %]
260 [% END # / BranchCategoriesLoop %]
261 </select> <!-- /#select_library -->
262 </div> <!-- /.col-sm-auto -->
263 <div class="col-sm-auto order-5">
264 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
267 [% IF ( opac_limit_override ) %]
268 [% IF ( opac_search_limit ) %]
269 [% IF ( multibranchlimit = opac_search_limit.match( 'branch:(multibranchlimit-\d+)' ) ) %]
270 <input name="branch_group_limit" value="[% multibranchlimit.0 | html %]" type="hidden" />
272 <input name="limit" value="[% opac_search_limit | html %]" type="hidden" />
276 [% IF ( mylibraryfirst ) %]
277 <input name="limit" value="branch:[% mylibraryfirst | html %]" type="hidden" />
279 [% END # / opac_limit_override %]
280 <div class="order-5 col-sm-auto">
281 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
283 [% END # / OpacAddMastheadLibraryPulldown %]
284 </div> <!-- /.form-row -->
285 <input type="hidden" name="weight_search" value="1">
287 [% END # / ( OpacCustomSearch ) %]
288 </div><!-- /#opac-main-search -->
289 </div> <!-- /.col -->
290 </div> <!-- /.row -->
291 [% END # / UNLESS advsearch %]
294 <ul class="nav" id="moresearches">
295 <li class="nav-item">
296 <a href="/cgi-bin/koha/opac-search.pl">Advanced search</a>
298 [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]
299 <li class="nav-item">
300 <a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a>
303 [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]
304 <li class="nav-item">
305 <a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a>
308 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
309 <li class="nav-item">
310 <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
313 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'OPACComments' ) == 1 ) && ( Koha.Preference( 'OpacShowRecentComments' ) == 1 ) ) %]
314 <li class="nav-item">
315 <a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a>
318 [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]
319 <li class="nav-item">
320 <a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a>
323 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]
324 <li class="nav-item">
325 <a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a>
328 [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]
329 <li class="nav-item">
330 <a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a>
333 [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference( 'OpacBrowseSearch' ) == 1 %]
334 <li class="nav-item">
335 <a href="/cgi-bin/koha/opac-browse.pl">Browse search</a>
338 [% IF Koha.Preference( 'suggestion' ) == 1 %]
339 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 || Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]
340 <li class="nav-item">
341 <a href="/cgi-bin/koha/opac-suggestions.pl?suggested_by_anyone=1">Purchase suggestions</a>
345 <li class="nav-item">
346 <a id="library_page" href="/cgi-bin/koha/opac-library.pl">
347 [% IF ( singleBranchMode ) %]
354 [% Koha.Preference('OpacMoreSearches') | $raw %]
355 </ul> <!-- /.nav#moresearches -->
356 </div> <!-- /.row -->
357 </div> <!-- /.container-fluid -->
358 [% END # / OpacPublic %]
360 <!-- Login form hidden by default, used for modal window -->
361 <div id="loginModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
362 <div class="modal-dialog">
363 <div class="modal-content">
364 <div class="modal-header">
365 <h2 class="modal-title" id="modalLoginLabel">Log in to your account</h2>
366 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close">
367 <span aria-hidden="true">×</span>
370 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
371 <input type="hidden" name="has-search-query" id="has-search-query" value="" />
372 <div class="modal-body">
373 [% IF ( shibbolethAuthentication ) %]
374 [% IF ( invalidShibLogin ) %]
375 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
376 <div class="alert alert-info">
377 <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
380 <h3>Shibboleth login</h3>
381 <p><a href="[% shibbolethLoginUrl | $raw %]">Log in using a Shibboleth account</a>.</p>
382 [% UNLESS Koha.Preference('opacShibOnly') %]
387 [% UNLESS Koha.Preference('opacShibOnly') %]
388 <input type="hidden" name="koha_login_context" value="opac" />
389 <fieldset class="brief">
390 <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
391 <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
392 [% IF OpacLoginInstructions %]
393 <div id="nologininstructions-modal" class="nologininstructions">
394 [% PROCESS koha_news_block news => OpacLoginInstructions %]
397 [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
398 <div id="forgotpassword-modal" class="forgotpassword">
399 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
402 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
403 <div id="patronregistration-modal" class="patronregistration">
404 <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
410 [% UNLESS Koha.Preference('opacShibOnly') %]
411 <div class="modal-footer">
412 <input type="submit" class="btn btn-primary" value="Log in" />
415 </form> <!-- /#auth -->
416 </div> <!-- /.modal-content -->
417 </div> <!-- /.modal-dialog -->
418 </div> <!-- /#modalAuth -->