3 [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
5 <div id="header-region" class="noprint">
6 <div class="navbar navbar-inverse navbar-static-top">
7 <div class="navbar-inner">
8 <div class="container-fluid">
10 <a class="brand" href="/cgi-bin/koha/opac-main.pl">
11 [% IF ( LibraryNameTitle ) %]
12 [% LibraryNameTitle %]
18 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
19 <div id="cartDetails" class="cart-message">Your cart is empty.</div>
22 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
24 <a href="#" title="Collect items you are interested in" class="dropdown-toggle" id="cartmenulink" data-toggle="dropdown" role="button">
25 <i id="carticon" class="icon-shopping-cart icon-white"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span> <b class="caret"></b>
27 <ul aria-labelledby="cartmenulink" role="menu" class="dropdown-menu">
28 <li role="presentation">
29 <a href="#" id="cartmenuitem" class="cart-message" tabindex="-1" role="menuitem">Your cart is empty.</a>
34 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) && ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
35 <li class="divider-vertical"></li>
37 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
39 <a href="#" title="Show lists" class="dropdown-toggle" id="listsmenu" data-toggle="dropdown" role="button"><i class="icon-list icon-white"></i> <span class="listslabel">Lists</span> <b class="caret"></b></a>
40 <ul aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
41 [% IF some_public_shelves.count %]
42 <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>
43 [% SET number_of_public_shelves = 0 %]
44 [% FOREACH s IN some_public_shelves %]
45 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]&sortfield=[% s.sortfield %]" tabindex="-1" role="menuitem">[% s.shelfname |html %]</a></li>
46 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
47 [% IF number_of_public_shelves >= 10 %][% LAST %][% END %]
49 [% IF some_public_shelves > 10 %]
50 <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>
53 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li>
55 <li class="divider" role="presentation"></li>
56 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
57 <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>
58 [% IF loggedinusername %]
59 [% IF some_private_shelves.count %]
60 [% SET number_of_private_shelves = 0 %]
61 [% FOREACH s IN some_private_shelves %]
62 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]&sortfield=[% s.sortfield %]" tabindex="-1" role="menuitem">[% s.shelfname |html %]</a></li>
63 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
64 [% IF number_of_private_shelves >= 10 %][% LAST %][% END %]
66 [% IF some_private_shelves > 10 %]
67 <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>
70 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No private lists</a></li>
71 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem" class="listmenulink">New list</a></li>
74 [% IF Koha.Preference('casAuthentication') %]
75 [%# CAS authentication is too complicated for modal window %]
76 <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>
78 <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>
80 [% END # / IF loggedinusername %]
81 [% END # / IF opacuserlogin %]
82 </ul> <!-- / .dropdown-menu -->
83 </li> <!-- / .dropdown -->
84 [% END # / IF virtualshelves %]
86 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]<div id="listsDetails"></div>[% END %]
87 [% IF Koha.Preference( 'opacuserlogin' ) == 1 || opaclanguagesdisplay || EnableOpacSearchHistory %]
88 <a id="user-menu-trigger" class="pull-right" href="#"><i class="icon-user"></i> <span class="caret"></span></a>
90 <ul class="nav pull-right">
92 [% INCLUDE 'masthead-langmenu.inc' %]
94 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
95 [% UNLESS ( loggedinusername ) %]
96 [% IF Koha.Preference('casAuthentication') %]
97 [%# CAS authentication is too complicated for modal window %]
98 <li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
99 [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
100 <li><a href="/cgi-bin/koha/svc/auth/googleopenidconnect" role="button" data-toggle="modal">Log in to your account</a></li>
102 <li><a href="/cgi-bin/koha/opac-user.pl" class="loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
105 [% IF ( loggedinusername ) %]
106 <li><p class="members navbar-text">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% USER_INFO.title %] [% USER_INFO.firstname %] [% USER_INFO.surname %]</span></a></p></li>
107 <li class="divider-vertical"></li>
110 [% IF EnableOpacSearchHistory %]
111 <li><p class="navbar-text"><a 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>
112 <li class="divider-vertical"></li>
114 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
115 [% IF ( loggedinusername ) %]
116 <li><p class="navbar-text">
117 <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
122 </div> <!-- /members -->
123 [% END # IF opacuserlogin %]
124 </div> <!-- /container-fluid -->
125 </div> <!-- /navbar-inner -->
126 </div> <!-- /navbar -->
128 [% IF ( opacheader ) %]
129 <div class="container-fluid">
130 <div class="row-fluid">
131 <div id="opacheader">
137 </div> <!-- / header-region -->
139 <div class="container-fluid">
140 <div class="row-fluid">
141 <div id="opac-main-search">
142 <!-- <div class="span2">
143 [% IF ( opacsmallimage ) %]
144 <h1 id="libraryname" style="background-image: url('[% opacsmallimage %]');">
146 <h1 id="libraryname">
148 <a href="/cgi-bin/koha/opac-main.pl">[% IF ( LibraryName ) %][% LibraryName %][% ELSE %]Koha Online Catalog[% END %]</a></h1>
151 [% IF ( OpacPublic ) %]
152 [% UNLESS ( advsearch ) %]
153 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
154 <div class="mastheadsearch librarypulldown">
156 <div class="mastheadsearch">
158 [% IF Koha.Preference('OpacCustomSearch') == '' %]
159 <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="form-inline">
160 <label for="masthead_search"> Search
161 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
162 [% IF ( mylibraryfirst ) %]
163 (in [% Branches.GetName( mylibraryfirst ) %] only)
168 <select name="idx" id="masthead_search">
170 <option selected="selected" value="">Library catalog</option>
172 <option value="">Library catalog</option>
175 <option selected="selected" value="ti">Title</option>
177 <option value="ti">Title</option>
180 <option selected="selected" value="au">Author</option>
182 <option value="au">Author</option>
185 <option selected="selected" value="su">Subject</option>
187 <option value="su">Subject</option>
190 <option selected="selected" value="nb">ISBN</option>
192 <option value="nb">ISBN</option>
195 <option selected="selected" value="se">Series</option>
197 <option value="se">Series</option>
199 [% IF ( numbersphr ) %]
200 [% IF ( ms_callnum ) %]
201 <option selected="selected" value="callnum,phr">Call number</option>
203 <option value="callnum,phr">Call number</option>
204 [% END #/ms_callnum %]
206 [% IF ( ms_callnum ) %]
207 <option selected="selected" value="callnum">Call number</option>
209 <option value="callnum">Call number</option>
210 [% END # /ms_callnum %]
211 [% END # /numbersphr %]
214 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
215 <div class="input-append nolibrarypulldown">
217 [% IF ( ms_value ) %]
218 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" value="[% ms_value |html %]" /><span id="translControl"></span>
220 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" /><span id="translControl"></span>
221 [% END # /ms_value %]
223 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
224 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
228 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
229 <div class="input-append">
230 <select name="branch_group_limit" id="select_library">
231 <option value="">All libraries</option>
232 [% IF BranchCategoriesLoop %]<optgroup label="Libraries">[% END %]
233 [% FOREACH BranchesLoo IN Branches.all( selected => opac_name ) %]
234 [% IF BranchesLoo.selected %]
235 <option selected="selected" value="branch:[% BranchesLoo.branchcode %]">[% BranchesLoo.branchname %]</option>
237 <option value="branch:[% BranchesLoo.branchcode %]">[% BranchesLoo.branchname %]</option>
240 [% IF BranchCategoriesLoop %]
242 <optgroup label="Groups">
243 [% FOREACH bc IN BranchCategoriesLoop %]
244 [% IF bc.categorycode == opac_name %]
245 <option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
247 <option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
248 [% END # / bc.selected %]
251 [% END # / BranchCategoriesLoop %]
253 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
256 [% IF ( opac_limit_override ) %]
257 [% IF ( opac_search_limit ) %]
258 <input name="limit" value="[% opac_search_limit %]" type="hidden" />
261 [% IF ( mylibraryfirst ) %]
262 <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
264 [% END # / opac_limit_override %]
265 [% END # / OpacAddMastheadLibraryPulldown %]
268 [% ELSE # / Koha.Preference('OpacCustomSearch') == '' %]
269 [% Koha.Preference('OpacCustomSearch') %]
270 [% END # / Koha.Preference('OpacCustomSearch') == '' %]
271 </div> <!-- / .mastheadsearch -->
272 [% END # / UNLESS advsearch %]
274 <div class="row-fluid">
275 <div id="moresearches">
277 <li><a href="/cgi-bin/koha/opac-search.pl">Advanced search</a></li>
278 [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]<li><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a></li>[% END %]
279 [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a></li>[% END %]
280 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]<li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a></li>[% END %]
281 [% 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 %]
282 [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>[% END %]
283 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a></li>[% END %]
284 [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
285 [% IF Koha.Preference( 'suggestion' ) == 1 %]
286 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
287 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
288 [% ELSIF ( ( Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 ) ) %]
289 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
293 </div> <!-- /#moresearches -->
294 </div> <!-- /.row-fluid -->
296 [% END # / OpacPublic %]
297 </div> <!-- /.span10 -->
298 </div> <!-- /.opac-main-search -->
299 </div> <!-- / .row-fluid -->
300 </div> <!-- /.container-fluid -->
302 <!-- Login form hidden by default, used for modal window -->
303 <div id="loginModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
304 <div class="modal-header">
305 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
306 <h3 id="modalLoginLabel">Log in to your account</h3>
308 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
309 <div class="modal-body">
310 [% IF ( shibbolethAuthentication ) %]
311 [% IF ( invalidShibLogin ) %]
312 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
313 <div class="alert alert-info">
314 <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
317 <h4>Shibboleth Login</h4>
318 <p>If you have a Shibboleth account, please <a href="[% shibbolethLoginUrl %]">click here to login</a>.</p>
322 <input type="hidden" name="koha_login_context" value="opac" />
323 <fieldset class="brief">
324 <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
325 <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
326 [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
327 <div id="forgotpassword-modal">
328 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
331 [% IF Koha.Preference( 'NoLoginInstructions' ) %]
332 <div id="nologininstructions-modal">
333 [% Koha.Preference( 'NoLoginInstructions' ) %]
336 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<div id="mpatronregistration"><p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p></div>[% END %]
339 <div class="modal-footer">
340 <input type="submit" class="btn btn-primary" value="Log in" />
341 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
343 </form> <!-- /#auth -->
344 </div> <!-- /#modalAuth -->