4 [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
6 <div id="header-region" class="noprint">
7 <div class="navbar navbar-inverse navbar-static-top">
8 <div class="navbar-inner">
9 <div class="container-fluid">
11 <a class="brand" href="/cgi-bin/koha/opac-main.pl">
12 [% IF ( LibraryNameTitle ) %]
13 [% LibraryNameTitle | html %]
19 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
20 <div id="cartDetails" class="cart-message">Your cart is empty.</div>
23 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
25 <a href="#" title="Collect items you are interested in" id="cartmenulink" role="button">
26 <i id="carticon" class="fa fa-shopping-cart fa-icon-white"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span>
30 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) && ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
31 <li class="divider-vertical"></li>
33 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
35 <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>
36 <ul aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
37 [% IF some_public_shelves.count %]
38 <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>
39 [% SET number_of_public_shelves = 0 %]
40 [% FOREACH s IN some_public_shelves %]
41 <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>
42 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
43 [% IF number_of_public_shelves >= 10 %][% LAST %][% END %]
45 [% IF some_public_shelves > 10 %]
46 <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>
49 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li>
51 <li class="divider" role="presentation"></li>
52 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
53 <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>
54 [% IF loggedinusername %]
55 [% IF some_private_shelves.count %]
56 [% SET number_of_private_shelves = 0 %]
57 [% FOREACH s IN some_private_shelves %]
58 <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>
59 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
60 [% IF number_of_private_shelves >= 10 %][% LAST %][% END %]
62 [% IF some_private_shelves > 10 %]
63 <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>
66 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No private lists</a></li>
68 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem" class="listmenulink">New list</a></li>
70 [% IF Koha.Preference('casAuthentication') %]
71 [%# CAS authentication is too complicated for modal window %]
72 <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>
74 <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>
76 [% END # / IF loggedinusername %]
77 [% END # / IF opacuserlogin %]
78 </ul> <!-- / .dropdown-menu -->
79 </li> <!-- / .dropdown -->
80 [% END # / IF virtualshelves %]
82 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]<div id="listsDetails"></div>[% END %]
83 [% IF Koha.Preference( 'opacuserlogin' ) == 1 || opaclanguagesdisplay || EnableOpacSearchHistory %]
84 <a id="user-menu-trigger" class="pull-right" href="#"><i class="fa fa-user fa-icon-white"></i> <span class="caret"></span></a>
86 <ul class="nav pull-right">
88 [% INCLUDE 'masthead-langmenu.inc' %]
90 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
91 [% UNLESS ( loggedinusername ) %]
92 [% IF Koha.Preference('casAuthentication') %]
93 [%# CAS authentication is too complicated for modal window %]
94 <li><a class="login-link" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
95 [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
96 <li><a class="login-link" href="/cgi-bin/koha/svc/auth/googleopenidconnect" role="button" data-toggle="modal">Log in to your account</a></li>
98 <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>
101 [% IF ( loggedinusername ) %]
102 <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>
103 <li class="divider-vertical"></li>
106 [% IF EnableOpacSearchHistory %]
107 <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>
108 <li class="divider-vertical"></li>
110 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
111 [% IF ( loggedinusername ) %]
112 <li><p class="navbar-text">
113 <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
118 </div> <!-- /members -->
119 [% END # IF opacuserlogin %]
120 </div> <!-- /container-fluid -->
121 </div> <!-- /navbar-inner -->
122 </div> <!-- /navbar -->
124 [% IF ( opacheader ) %]
125 <div class="container-fluid">
126 <div class="row-fluid">
127 <div id="opacheader">
128 [% opacheader | $raw %]
133 </div> <!-- / header-region -->
135 <div class="container-fluid">
136 <div class="row-fluid">
137 <div id="opac-main-search">
139 [% IF ( OpacPublic ) %]
140 [% UNLESS ( advsearch ) %]
141 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
142 <div class="mastheadsearch librarypulldown">
144 <div class="mastheadsearch">
146 [% IF Koha.Preference('OpacCustomSearch') == '' %]
147 <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="form-inline">
148 <label for="masthead_search"> Search
149 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
150 [% IF ( mylibraryfirst ) %]
151 (in [% Branches.GetName( mylibraryfirst ) | html %] only)
156 <select name="idx" id="masthead_search">
158 <option selected="selected" value="">Library catalog</option>
160 <option value="">Library catalog</option>
163 <option selected="selected" value="ti">Title</option>
165 <option value="ti">Title</option>
168 <option selected="selected" value="au">Author</option>
170 <option value="au">Author</option>
173 <option selected="selected" value="su">Subject</option>
175 <option value="su">Subject</option>
178 <option selected="selected" value="nb">ISBN</option>
180 <option value="nb">ISBN</option>
183 <option selected="selected" value="se">Series</option>
185 <option value="se">Series</option>
187 [% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %]
188 [% IF ( ms_callnum ) %]
189 <option selected="selected" value="callnum,phr">Call number</option>
191 <option value="callnum,phr">Call number</option>
192 [% END #/ms_callnum %]
194 [% IF ( ms_callnum ) %]
195 <option selected="selected" value="callnum">Call number</option>
197 <option value="callnum">Call number</option>
198 [% END # /ms_callnum %]
199 [% END # /IF OPACNumbersPreferPhrase %]
202 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
203 <div class="input-append nolibrarypulldown">
205 [% IF ( ms_value ) %]
206 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" value="[% ms_value | html %]" /><span id="translControl"></span>
208 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" /><span id="translControl"></span>
209 [% END # /ms_value %]
211 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
212 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
216 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
217 <div class="input-append">
218 <select name="branch_group_limit" id="select_library">
219 <option value="">All libraries</option>
221 [% IF LibrarySearchGroups %]<optgroup label="Libraries">[% END %]
223 [% FOREACH library IN Branches.all( selected => opac_name ) %]
224 [% IF library.selected %]
225 <option selected="selected" value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
227 <option value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option>
231 [% IF LibrarySearchGroups %]
233 <optgroup label="Groups">
234 [% FOREACH lsg IN LibrarySearchGroups %]
235 [% IF lsg.id == opac_name %]
236 <option selected="selected" value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
238 <option value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
239 [% END # / bc.selected %]
242 [% END # / BranchCategoriesLoop %]
244 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
247 [% IF ( opac_limit_override ) %]
248 [% IF ( opac_search_limit ) %]
249 [% IF ( multibranchlimit = opac_search_limit.match( 'branch:(multibranchlimit-\d+)' ) ) %]
250 <input name="branch_group_limit" value="[% multibranchlimit.0 | html %]" type="hidden" />
252 <input name="limit" value="[% opac_search_limit | html %]" type="hidden" />
256 [% IF ( mylibraryfirst ) %]
257 <input name="limit" value="branch:[% mylibraryfirst | html %]" type="hidden" />
259 [% END # / opac_limit_override %]
260 [% END # / OpacAddMastheadLibraryPulldown %]
263 [% ELSE # / Koha.Preference('OpacCustomSearch') == '' %]
264 [% Koha.Preference('OpacCustomSearch') | $raw %]
265 [% END # / Koha.Preference('OpacCustomSearch') == '' %]
266 </div> <!-- / .mastheadsearch -->
267 [% END # / UNLESS advsearch %]
269 <div class="row-fluid">
270 <div id="moresearches">
272 <li><a href="/cgi-bin/koha/opac-search.pl">Advanced search</a></li>
273 [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]<li><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a></li>[% END %]
274 [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a></li>[% END %]
275 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]<li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a></li>[% END %]
276 [% 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 %]
277 [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>[% END %]
278 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a></li>[% END %]
279 [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
280 [% IF Koha.Preference( 'suggestion' ) == 1 %]
281 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
282 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
283 [% ELSIF ( ( Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 ) ) %]
284 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
288 </div> <!-- /#moresearches -->
289 </div> <!-- /.row-fluid -->
291 [% END # / OpacPublic %]
292 </div> <!-- /.span10 -->
293 </div> <!-- /.opac-main-search -->
294 </div> <!-- / .row-fluid -->
295 </div> <!-- /.container-fluid -->
297 <!-- Login form hidden by default, used for modal window -->
298 <div id="loginModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
299 <div class="modal-header">
300 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
301 <h3 id="modalLoginLabel">Log in to your account</h3>
303 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
304 <input type="hidden" name="has-search-query" id="has-search-query" value="" />
305 <div class="modal-body">
306 [% IF ( shibbolethAuthentication ) %]
307 [% IF ( invalidShibLogin ) %]
308 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
309 <div class="alert alert-info">
310 <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
313 <h4>Shibboleth login</h4>
314 <p>If you have a Shibboleth account, please <a href="[% shibbolethLoginUrl | url %]">click here to login</a>.</p>
318 <input type="hidden" name="koha_login_context" value="opac" />
319 <fieldset class="brief">
320 <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
321 <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
322 [% IF Koha.Preference( 'OpacLoginInstructions' ) %]
323 <div id="nologininstructions-modal" class="nologininstructions">
324 [% Koha.Preference( 'OpacLoginInstructions' ) | $raw %]
327 [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
328 <div id="forgotpassword-modal" class="forgotpassword">
329 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
332 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
333 <div id="patronregistration-modal" class="patronregistration">
334 <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
339 <div class="modal-footer">
340 <input type="submit" class="btn btn-primary" value="Log in" />
342 </form> <!-- /#auth -->
343 </div> <!-- /#modalAuth -->