2 [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
4 <div id="header-region" class="noprint">
5 <div class="navbar navbar-inverse navbar-static-top">
6 <div class="navbar-inner">
7 <div class="container-fluid">
9 <a class="brand" href="/cgi-bin/koha/opac-main.pl">
10 [% IF ( LibraryNameTitle ) %]
11 [% LibraryNameTitle %]
17 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
18 <div id="cartDetails" class="cart-message">Your cart is empty.</div>
21 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
23 <a href="#" title="Collect items you are interested in" class="dropdown-toggle" id="cartmenulink" data-toggle="dropdown" role="button">
24 <i id="carticon" class="icon-shopping-cart icon-white"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span> <b class="caret"></b>
26 <ul aria-labelledby="cartmenulink" role="menu" class="dropdown-menu">
27 <li role="presentation">
28 <a href="#" id="cartmenuitem" class="cart-message" tabindex="-1" role="menuitem">Your cart is empty.</a>
33 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) && ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
34 <li class="divider-vertical"></li>
36 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
38 <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>
39 <ul aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
40 [% IF some_public_shelves.count %]
41 <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>
42 [% SET number_of_public_shelves = 0 %]
43 [% FOREACH s IN some_public_shelves %]
44 <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>
45 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
46 [% IF number_of_public_shelves >= 10 %][% LAST %][% END %]
48 [% IF some_public_shelves > 10 %]
49 <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>
52 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li>
54 <li class="divider" role="presentation"></li>
55 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
56 <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>
57 [% IF loggedinusername %]
58 [% IF some_private_shelves.count %]
59 [% SET number_of_private_shelves = 0 %]
60 [% FOREACH s IN some_private_shelves %]
61 <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>
62 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
63 [% IF number_of_private_shelves >= 10 %][% LAST %][% END %]
65 [% IF some_private_shelves > 10 %]
66 <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>
69 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No private lists</a></li>
70 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem" class="listmenulink">New list</a></li>
73 <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>
74 [% END # / IF loggedinusername %]
75 [% END # / IF opacuserlogin %]
76 </ul> <!-- / .dropdown-menu -->
77 </li> <!-- / .dropdown -->
78 [% END # / IF virtualshelves %]
80 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]<div id="listsDetails"></div>[% END %]
81 [% IF Koha.Preference( 'opacuserlogin' ) == 1 || opaclanguagesdisplay || EnableOpacSearchHistory %]
82 <a id="user-menu-trigger" class="pull-right" href="#"><i class="icon-user"></i> <span class="caret"></span></a>
84 <ul class="nav pull-right">
86 [% INCLUDE 'masthead-langmenu.inc' %]
88 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
89 [% UNLESS ( loggedinusername ) %]
90 [% IF Koha.Preference('casAuthentication') %]
91 [%# CAS authentication is too complicated for modal window %]
92 <li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
94 <li><a href="/cgi-bin/koha/opac-user.pl" class="loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
97 [% IF ( loggedinusername ) %]
98 <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>
99 <li class="divider-vertical"></li>
102 [% IF EnableOpacSearchHistory %]
103 <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" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history" onclick="return confirm(MSG_DELETE_SEARCH_HISTORY);">x</a>]</p></li>
104 <li class="divider-vertical"></li>
106 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
107 [% IF ( loggedinusername ) %]
108 <li><p class="navbar-text">
110 <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1" onclick='navigator.id.logout();'>
112 <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">
133 </div> <!-- / header-region -->
135 <div class="container-fluid">
136 <div class="row-fluid">
137 <div id="opac-main-search">
138 <!-- <div class="span2">
139 [% IF ( opacsmallimage ) %]
140 <h1 id="libraryname" style="background-image: url('[% opacsmallimage %]');">
142 <h1 id="libraryname">
144 <a href="/cgi-bin/koha/opac-main.pl">[% IF ( LibraryName ) %][% LibraryName %][% ELSE %]Koha Online Catalog[% END %]</a></h1>
147 [% IF ( OpacPublic ) %]
148 [% UNLESS ( advsearch ) %]
149 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
150 <div class="mastheadsearch librarypulldown">
152 <div class="mastheadsearch">
154 [% IF Koha.Preference('OpacCustomSearch') == '' %]
155 <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="form-inline">
156 <label for="masthead_search"> Search
157 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
158 [% IF ( mylibraryfirst ) %]
159 (in [% mylibraryfirst %] only)
164 <select name="idx" id="masthead_search">
166 <option selected="selected" value="">Library catalog</option>
168 <option value="">Library catalog</option>
171 <option selected="selected" value="ti">Title</option>
173 <option value="ti">Title</option>
176 <option selected="selected" value="au">Author</option>
178 <option value="au">Author</option>
181 <option selected="selected" value="su">Subject</option>
183 <option value="su">Subject</option>
186 <option selected="selected" value="nb">ISBN</option>
188 <option value="nb">ISBN</option>
191 <option selected="selected" value="se">Series</option>
193 <option value="se">Series</option>
195 [% IF ( numbersphr ) %]
196 [% IF ( ms_callnum ) %]
197 <option selected="selected" value="callnum,phr">Call number</option>
199 <option value="callnum,phr">Call number</option>
200 [% END #/ms_callnum %]
202 [% IF ( ms_callnum ) %]
203 <option selected="selected" value="callnum">Call number</option>
205 <option value="callnum">Call number</option>
206 [% END # /ms_callnum %]
207 [% END # /numbersphr %]
210 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
211 <div class="input-append nolibrarypulldown">
213 [% IF ( ms_value ) %]
214 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" value="[% ms_value |html %]" /><span id="translControl"></span>
216 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" /><span id="translControl"></span>
217 [% END # /ms_value %]
219 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
220 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
224 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
225 <div class="input-append">
226 <select name="branch_group_limit" id="select_library">
227 <option value="">All libraries</option>
228 [% IF BranchCategoriesLoop %]<optgroup label="Libraries">[% END %]
229 [% FOREACH BranchesLoo IN BranchesLoop %]
230 [% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
231 [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
233 [% IF BranchCategoriesLoop %]
235 <optgroup label="Groups">
236 [% FOREACH bc IN BranchCategoriesLoop %]
237 [% IF bc.categorycode == opac_name %]
238 <option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
240 <option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
241 [% END # / bc.selected %]
244 [% END # / BranchCategoriesLoop %]
246 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
249 [% IF ( opac_limit_override ) %]
250 [% IF ( opac_search_limit ) %]
251 <input name="limit" value="[% opac_search_limit %]" type="hidden" />
254 [% IF ( mylibraryfirst ) %]
255 <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
257 [% END # / opac_limit_override %]
258 [% END # / OpacAddMastheadLibraryPulldown %]
261 [% ELSE # / Koha.Preference('OpacCustomSearch') == '' %]
262 [% Koha.Preference('OpacCustomSearch') %]
263 [% END # / Koha.Preference('OpacCustomSearch') == '' %]
264 </div> <!-- / .mastheadsearch -->
265 [% END # / UNLESS advsearch %]
267 <div class="row-fluid">
268 <div id="moresearches">
270 <li><a href="/cgi-bin/koha/opac-search.pl">Advanced search</a></li>
271 [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]<li><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a></li>[% END %]
272 [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a></li>[% END %]
273 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]<li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a></li>[% END %]
274 [% 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 %]
275 [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>[% END %]
276 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a></li>[% END %]
277 [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
278 [% IF Koha.Preference( 'suggestion' ) == 1 %]
279 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
280 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
281 [% ELSIF ( ( Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 ) ) %]
282 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
286 </div> <!-- /#moresearches -->
287 </div> <!-- /.row-fluid -->
289 [% END # / OpacPublic %]
290 </div> <!-- /.span10 -->
291 </div> <!-- /.opac-main-search -->
292 </div> <!-- / .row-fluid -->
293 </div> <!-- /.container-fluid -->
295 <!-- Login form hidden by default, used for modal window -->
296 <div id="loginModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
297 <div class="modal-header">
298 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
299 <h3 id="modalLoginLabel">Log in to your account</h3>
301 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
302 <div class="modal-body">
303 [% IF ( shibbolethAuthentication ) %]
304 [% IF ( invalidShibLogin ) %]
305 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
306 <div class="alert alert-info">
307 <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
310 <h4>Shibboleth Login</h4>
311 <p>If you have a Shibboleth account, please <a href="[% shibbolethLoginUrl %]">click here to login</a>.</p>
315 <input type="hidden" name="koha_login_context" value="opac" />
316 <fieldset class="brief">
317 <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
318 <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
319 [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
320 <div id="forgotpassword-modal">
321 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
324 [% IF Koha.Preference( 'NoLoginInstructions' ) %]
325 <div id="nologininstructions-modal">
326 [% Koha.Preference( 'NoLoginInstructions' ) %]
329 [% 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 %]
332 <div class="modal-footer">
333 <input type="submit" class="btn btn-primary" value="Log in" />
334 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
336 </form> <!-- /#auth -->
337 </div> <!-- /#modalAuth -->