5 [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
7 <div id="header-region" class="noprint">
8 <div class="navbar navbar-inverse navbar-static-top">
9 <div class="navbar-inner">
10 <div class="container-fluid">
12 <a class="brand" href="/cgi-bin/koha/opac-main.pl">
13 [% IF ( LibraryNameTitle ) %]
14 [% LibraryNameTitle | html %]
20 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
21 <div id="cartDetails" class="cart-message">Your cart is empty.</div>
24 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
26 <a href="#" title="Collect items you are interested in" id="cartmenulink" role="button">
27 <i id="carticon" class="fa fa-shopping-cart fa-icon-white"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span>
31 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) && ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
32 <li class="divider-vertical"></li>
34 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
36 <a href="#" title="Show lists" class="dropdown-toggle" id="listsmenu" data-toggle="dropdown" role="button"><i class="fa fa-list fa-icon-white"></i> <span class="listslabel">Lists</span> <b class="caret"></b></a>
37 <ul aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
38 [% IF some_public_shelves.count %]
39 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=2" tabindex="-1" role="menuitem"><strong>Public lists</strong></a></li>
40 [% SET number_of_public_shelves = 0 %]
41 [% FOREACH s IN some_public_shelves %]
42 <li role="presentation"><a 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></li>
43 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
44 [% IF number_of_public_shelves >= 10 %][% LAST %][% END %]
46 [% IF some_public_shelves > 10 %]
47 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=2" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li>
50 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li>
52 <li class="divider" role="presentation"></li>
53 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
54 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem"><strong>Your lists</strong></a></li>
55 [% IF loggedinusername %]
56 [% IF some_private_shelves.count %]
57 [% SET number_of_private_shelves = 0 %]
58 [% FOREACH s IN some_private_shelves %]
59 <li role="presentation"><a 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></li>
60 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
61 [% IF number_of_private_shelves >= 10 %][% LAST %][% END %]
63 [% IF some_private_shelves > 10 %]
64 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li>
67 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No private lists</a></li>
69 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem" class="listmenulink">New list</a></li>
71 [% IF Koha.Preference('casAuthentication') %]
72 [%# CAS authentication is too complicated for modal window %]
73 <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive" role="menuitem">Log in to create your own lists</a></li>
75 <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive loginModal-trigger" role="menuitem">Log in to create your own lists</a></li>
77 [% END # / IF loggedinusername %]
78 [% END # / IF opacuserlogin %]
79 </ul> <!-- / .dropdown-menu -->
80 </li> <!-- / .dropdown -->
81 [% END # / IF virtualshelves %]
83 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]<div id="listsDetails"></div>[% END %]
84 [% IF Koha.Preference( 'opacuserlogin' ) == 1 || opaclanguagesdisplay || EnableOpacSearchHistory %]
85 <a id="user-menu-trigger" class="pull-right" href="#"><i class="fa fa-user fa-icon-white"></i> <span class="caret"></span></a>
87 <ul class="nav pull-right">
89 [% INCLUDE 'masthead-langmenu.inc' %]
91 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
92 [% UNLESS ( loggedinusername ) %]
93 [% IF Koha.Preference('casAuthentication') %]
94 [%# CAS authentication is too complicated for modal window %]
95 <li><a class="login-link" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
96 [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
97 <li><a class="login-link" href="/cgi-bin/koha/svc/auth/googleopenidconnect" role="button" data-toggle="modal">Log in to your account</a></li>
99 <li><a href="/cgi-bin/koha/opac-user.pl" class="login-link loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
102 [% IF ( loggedinusername ) %]
103 <li><p class="members navbar-text">Welcome, <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 %]" >[% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span></a></p></li>
104 <li class="divider-vertical"></li>
107 [% IF EnableOpacSearchHistory %]
108 <li><p class="navbar-text"><a class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> [<a class="logout clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history">x</a>]</p></li>
109 <li class="divider-vertical"></li>
111 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
112 [% IF ( loggedinusername ) %]
113 <li><p class="navbar-text">
114 <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
119 </div> <!-- /members -->
120 [% END # IF opacuserlogin %]
121 </div> <!-- /container-fluid -->
122 </div> <!-- /navbar-inner -->
123 </div> <!-- /navbar -->
125 [% IF ( opacheader ) %]
126 <div class="container-fluid">
127 <div class="row-fluid">
128 <div id="opacheader">
129 [% opacheader | $raw %]
134 </div> <!-- / header-region -->
136 <div class="container-fluid">
137 <div class="row-fluid">
138 <div id="opac-main-search">
140 [% IF ( OpacPublic ) %]
141 [% UNLESS ( advsearch ) %]
142 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
143 <div class="mastheadsearch librarypulldown">
145 <div class="mastheadsearch">
147 [% IF Koha.Preference('OpacCustomSearch') == '' %]
148 <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="form-inline">
149 <label for="masthead_search"> Search
150 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
151 [% IF ( mylibraryfirst ) %]
152 (in [% Branches.GetName( mylibraryfirst ) | html %] only)
157 <select name="idx" id="masthead_search">
159 <option selected="selected" value="">Library catalog</option>
161 <option value="">Library catalog</option>
164 <option selected="selected" value="ti">Title</option>
166 <option value="ti">Title</option>
169 <option selected="selected" value="au">Author</option>
171 <option value="au">Author</option>
174 <option selected="selected" value="su">Subject</option>
176 <option value="su">Subject</option>
179 <option selected="selected" value="nb">ISBN</option>
181 <option value="nb">ISBN</option>
184 <option selected="selected" value="ns">ISSN</option>
186 <option value="ns">ISSN</option>
189 <option selected="selected" value="se">Series</option>
191 <option value="se">Series</option>
193 [% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %]
194 [% IF ( ms_callnum ) %]
195 <option selected="selected" value="callnum,phr">Call number</option>
197 <option value="callnum,phr">Call number</option>
198 [% END #/ms_callnum %]
200 [% IF ( ms_callnum ) %]
201 <option selected="selected" value="callnum">Call number</option>
203 <option value="callnum">Call number</option>
204 [% END # /ms_callnum %]
205 [% END # /IF OPACNumbersPreferPhrase %]
208 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
209 <div class="input-append nolibrarypulldown">
211 [% IF ( ms_value ) %]
212 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" value="[% ms_value | html %]" /><span id="translControl"></span>
214 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" /><span id="translControl"></span>
215 [% END # /ms_value %]
217 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
218 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
222 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
223 <div class="input-append">
224 <select name="branch_group_limit" id="select_library">
225 <option value="">All libraries</option>
227 [% IF LibrarySearchGroups %]<optgroup label="Libraries">[% END %]
229 [% FOREACH library IN Branches.all( selected => opac_name ) %]
230 [% IF library.selected %]
231 <option selected="selected" value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
233 <option value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
237 [% IF LibrarySearchGroups %]
239 <optgroup label="Groups">
240 [% FOREACH lsg IN LibrarySearchGroups %]
241 [% IF lsg.id == opac_name %]
242 <option selected="selected" value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
244 <option value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
245 [% END # / bc.selected %]
248 [% END # / BranchCategoriesLoop %]
250 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
253 [% IF ( opac_limit_override ) %]
254 [% IF ( opac_search_limit ) %]
255 [% IF ( multibranchlimit = opac_search_limit.match( 'branch:(multibranchlimit-\d+)' ) ) %]
256 <input name="branch_group_limit" value="[% multibranchlimit.0 | html %]" type="hidden" />
258 <input name="limit" value="[% opac_search_limit | html %]" type="hidden" />
262 [% IF ( mylibraryfirst ) %]
263 <input name="limit" value="branch:[% mylibraryfirst | html %]" type="hidden" />
265 [% END # / opac_limit_override %]
266 [% END # / OpacAddMastheadLibraryPulldown %]
269 [% ELSE # / Koha.Preference('OpacCustomSearch') == '' %]
270 [% Koha.Preference('OpacCustomSearch') | $raw %]
271 [% END # / Koha.Preference('OpacCustomSearch') == '' %]
272 </div> <!-- / .mastheadsearch -->
273 [% END # / UNLESS advsearch %]
275 <div class="row-fluid">
276 <div id="moresearches">
278 <li><a href="/cgi-bin/koha/opac-search.pl">Advanced search</a></li>
279 [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]<li><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a></li>[% END %]
280 [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a></li>[% END %]
281 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]<li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a></li>[% END %]
282 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'reviewson' ) == 1 ) && ( Koha.Preference( 'OpacShowRecentComments' ) == 1 ) ) %]<li><a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a></li>[% END %]
283 [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>[% END %]
284 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a></li>[% END %]
285 [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
286 [% IF Koha.Preference( 'suggestion' ) == 1 %]
287 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
288 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
289 [% ELSIF ( ( Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 ) ) %]
290 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
293 [% Koha.Preference('OpacMoreSearches') | $raw %]
295 </div> <!-- /#moresearches -->
296 </div> <!-- /.row-fluid -->
298 [% END # / OpacPublic %]
299 </div> <!-- /.span10 -->
300 </div> <!-- /.opac-main-search -->
301 </div> <!-- / .row-fluid -->
302 </div> <!-- /.container-fluid -->
304 <!-- Login form hidden by default, used for modal window -->
305 <div id="loginModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
306 <div class="modal-header">
307 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
308 <h3 id="modalLoginLabel">Log in to your account</h3>
310 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
311 <input type="hidden" name="has-search-query" id="has-search-query" value="" />
312 <div class="modal-body">
313 [% IF ( shibbolethAuthentication ) %]
314 [% IF ( invalidShibLogin ) %]
315 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
316 <div class="alert alert-info">
317 <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
320 <h4>Shibboleth login</h4>
321 <p>If you have a Shibboleth account, please <a href="[% shibbolethLoginUrl | url %]">click here to login</a>.</p>
325 <input type="hidden" name="koha_login_context" value="opac" />
326 <fieldset class="brief">
327 <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
328 <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
329 [% IF Koha.Preference( 'OpacLoginInstructions' ) %]
330 <div id="nologininstructions-modal" class="nologininstructions">
331 [% Koha.Preference( 'OpacLoginInstructions' ) | $raw %]
334 [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
335 <div id="forgotpassword-modal" class="forgotpassword">
336 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
339 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
340 <div id="patronregistration-modal" class="patronregistration">
341 <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
346 <div class="modal-footer">
347 <input type="submit" class="btn btn-primary" value="Log in" />
349 </form> <!-- /#auth -->
350 </div> <!-- /#modalAuth -->