3 <div id="header-region" class="noprint">
4 <div class="navbar navbar-inverse navbar-static-top">
5 <div class="navbar-inner">
6 <div class="container-fluid">
8 <a class="brand" href="/cgi-bin/koha/opac-main.pl">
9 [% IF ( LibraryNameTitle ) %]
10 [% LibraryNameTitle %]
16 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
17 <div id="cartDetails" class="cart-message">Your cart is empty.</div>
20 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
22 <a href="#" title="Collect items you are interested in" class="dropdown-toggle" id="cartmenulink" data-toggle="dropdown" role="button">
23 <i id="carticon" class="icon-shopping-cart icon-white"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span> <b class="caret"></b>
25 <ul aria-labelledby="cartmenulink" role="menu" class="dropdown-menu">
26 <li role="presentation">
27 <a href="#" id="cartmenuitem" class="cart-message" tabindex="-1" role="menuitem">Your cart is empty.</a>
32 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) && ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
33 <li class="divider-vertical"></li>
35 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
37 <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>
38 <ul aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
39 [% IF ( pubshelves ) %]
40 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves" tabindex="-1" role="menuitem"><strong>Public lists</strong></a></li>
41 [% FOREACH pubshelvesloo IN pubshelvesloop %]
42 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% pubshelvesloo.shelfnumber %]&sortfield=[% pubshelvesloo.sortfield %]" tabindex="-1" role="menuitem">[% pubshelvesloo.shelfname |html %]</a></li>
44 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li>
46 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li>
48 <li class="divider" role="presentation"></li>
49 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
50 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" tabindex="-1" role="menuitem"><strong>Your lists</strong></a></li>
51 [% IF ( loggedinusername ) %]
52 [% IF ( barshelves ) %]
53 [% FOREACH barshelvesloo IN barshelvesloop %]
54 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% barshelvesloo.shelfnumber %]&sortfield=[% barshelvesloo.sortfield %]" tabindex="-1" role="menuitem">[% barshelvesloo.shelfname |html %]</a></li>
56 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" tabindex="-1" role="menuitem" class="listmenulink">View all</a></li>
58 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No private lists</a></li>
59 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" tabindex="-1" role="menuitem" class="listmenulink">New list</a></li>
62 <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>
63 [% END # / IF loggedinusername %]
64 [% END # / IF opacuserlogin %]
65 </ul> <!-- / .dropdown-menu -->
66 </li> <!-- / .dropdown -->
67 [% END # / IF virtualshelves %]
69 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]<div id="listsDetails"></div>[% END %]
70 [% IF Koha.Preference( 'opacuserlogin' ) == 1 || EnableOpacSearchHistory %]
71 <a id="user-menu-trigger" class="pull-right" href="#"><i class="icon-user"></i> <span class="caret"></span></a>
73 <ul class="nav pull-right">
74 [% IF ( opaclanguagesdisplay ) %]
75 [% IF ( languages_loop && opaclanguagesdisplay ) %]
76 [% UNLESS ( one_language_enabled ) %]
78 <a href="#" title="Switch languages" class="dropdown-toggle" id="langmenu" data-toggle="dropdown" role="button"><i class="icon-flag icon-white"></i> <span class="langlabel">Languages</span> <b class="caret"></b></a>
79 <ul aria-labelledby="langmenu" role="menu" class="dropdown-menu">
80 [% FOREACH languages_loo IN languages_loop %]
81 [% IF ( languages_loo.group_enabled ) %]
82 [% IF ( languages_loo.plural ) %]
84 <a data-toggle="dropdown" class="dropdown-toggle sublangs" id="show[% languages_loo.rfc4646_subtag %]" href="#">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %] <b class="caret"></b></a>
85 <ul id="sub[% languages_loo.rfc4646_subtag %]" class="dropdown-menu">
86 [% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
87 [% IF ( sublanguages_loo.enabled ) %]
88 [% IF ( sublanguages_loo.sublanguage_current ) %]
89 <li role="presentation"> <a href="#" tabindex="-1" class="menu-inactive" role="menuitem">[% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] ([% sublanguages_loo.rfc4646_subtag %]) <i class="icon-ok"></i></a></li>
91 <li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% sublanguages_loo.rfc4646_subtag %]" tabindex="-1" role="menuitem" class="listmenulink"> [% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] ([% sublanguages_loo.rfc4646_subtag %])</a></li>
93 [% END # / IF sublanguages_loo.enabled %]
94 [% END # / FOREACH sublanguages_loo %]
95 </ul> <!-- languages_loo.rfc4646_subtag -->
96 </li> <!-- / .more -->
98 [% IF ( languages_loo.group_enabled ) %]
99 [% IF ( languages_loo.current ) %]
100 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %] <i class="icon-ok"></i></a></li>
102 <li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% languages_loo.rfc4646_subtag %]" tabindex="-1" role="menuitem" class="listmenulink">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a></li>
104 [% END # / IF languages_loo.current %]
105 [% END # / IF ( languages_loo.plural ) %]
106 [% END # / IF ( languages_loo.group_enabled ) %]
107 [% END # / FOREACH languages_loo IN languages_loop %]
108 </ul> <!-- /# .dropdown-menu -->
109 </li> <!-- / .dropdown -->
110 [% END # / UNLESS ( one_language_enabled ) %]
111 [% END # / IF ( languages_loop && opaclanguagesdisplay ) %]
112 [% END # / IF opaclanguagesdisplay %]
113 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
114 [% UNLESS ( loggedinusername ) %]
115 [% IF Koha.Preference('casAuthentication') %]
116 [%# CAS authentication is too complicated for modal window %]
117 <li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
119 <li><a href="/cgi-bin/koha/opac-user.pl" class="loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
122 [% IF ( loggedinusername ) %]
123 <li><p class="members navbar-text">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %]</span></a></p></li>
124 <li class="divider-vertical"></li>
127 [% IF EnableOpacSearchHistory %]
128 <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>
129 <li class="divider-vertical"></li>
131 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
132 [% IF ( loggedinusername ) %]
133 <li><p class="navbar-text">
135 <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1" onclick='navigator.id.logout();'>
137 <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
143 </div> <!-- /members -->
144 [% END # IF opacuserlogin %]
145 </div> <!-- /container-fluid -->
146 </div> <!-- /navbar-inner -->
147 </div> <!-- /navbar -->
149 [% IF ( opacheader ) %]
150 <div class="container-fluid">
151 <div class="row-fluid">
152 <div id="opacheader">
158 </div> <!-- / header-region -->
160 <div class="container-fluid">
161 <div class="row-fluid">
162 <div id="opac-main-search">
163 <!-- <div class="span2">
164 [% IF ( opacsmallimage ) %]
165 <h1 id="libraryname" style="background-image: url('[% opacsmallimage %]');">
167 <h1 id="libraryname">
169 <a href="/cgi-bin/koha/opac-main.pl">[% IF ( LibraryName ) %][% LibraryName %][% ELSE %]Koha Online Catalog[% END %]</a></h1>
172 [% IF ( OpacPublic ) %]
173 [% UNLESS ( advsearch ) %]
174 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
175 <div class="mastheadsearch librarypulldown">
177 <div class="mastheadsearch">
179 [% IF Koha.Preference('OpacCustomSearch') == '' %]
180 <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="form-inline">
181 <label for="masthead_search"> Search
182 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
183 [% IF ( mylibraryfirst ) %]
184 (in [% mylibraryfirst %] only)
189 <select name="idx" id="masthead_search">
191 <option selected="selected" value="">Library catalog</option>
193 <option value="">Library catalog</option>
196 <option selected="selected" value="ti">Title</option>
198 <option value="ti">Title</option>
201 <option selected="selected" value="au">Author</option>
203 <option value="au">Author</option>
206 <option selected="selected" value="su">Subject</option>
208 <option value="su">Subject</option>
211 <option selected="selected" value="nb">ISBN</option>
213 <option value="nb">ISBN</option>
216 <option selected="selected" value="se">Series</option>
218 <option value="se">Series</option>
220 [% IF ( numbersphr ) %]
221 [% IF ( ms_callnum ) %]
222 <option selected="selected" value="callnum,phr">Call number</option>
224 <option value="callnum,phr">Call number</option>
225 [% END #/ms_callnum %]
227 [% IF ( ms_callnum ) %]
228 <option selected="selected" value="callnum">Call number</option>
230 <option value="callnum">Call number</option>
231 [% END # /ms_callnum %]
232 [% END # /numbersphr %]
235 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
236 <div class="input-append nolibrarypulldown">
238 [% IF ( ms_value ) %]
239 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" value="[% ms_value |html %]" /><span id="translControl"></span>
241 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" /><span id="translControl"></span>
242 [% END # /ms_value %]
244 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
245 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
249 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
250 <div class="input-append">
251 <select name="branch_group_limit" id="select_library">
252 <option value="">All libraries</option>
253 [% IF BranchCategoriesLoop %]<optgroup label="Libraries">[% END %]
254 [% FOREACH BranchesLoo IN BranchesLoop %]
255 [% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
256 [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
258 [% IF BranchCategoriesLoop %]
260 <optgroup label="Groups">
261 [% FOREACH bc IN BranchCategoriesLoop %]
262 [% IF ( bc.selected ) %]
263 <option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
265 <option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
266 [% END # / bc.selected %]
269 [% END # / BranchCategoriesLoop %]
271 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
274 [% IF ( opac_limit_override ) %]
275 [% IF ( opac_search_limit ) %]
276 <input name="limit" value="[% opac_search_limit %]" type="hidden" />
279 [% IF ( mylibraryfirst ) %]
280 <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
282 [% END # / opac_limit_override %]
283 [% END # / OpacAddMastheadLibraryPulldown %]
286 [% ELSE # / Koha.Preference('OpacCustomSearch') == '' %]
287 [% Koha.Preference('OpacCustomSearch') %]
288 [% END # / Koha.Preference('OpacCustomSearch') == '' %]
289 </div> <!-- / .mastheadsearch -->
290 [% END # / UNLESS advsearch %]
292 <div class="row-fluid">
293 <div id="moresearches">
295 <li><a href="/cgi-bin/koha/opac-search.pl">Advanced search</a></li>
296 [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]<li><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a></li>[% END %]
297 [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a></li>[% END %]
298 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]<li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a></li>[% END %]
299 [% 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 %]
300 [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>[% END %]
301 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a></li>[% END %]
302 [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
303 [% IF Koha.Preference( 'suggestion' ) == 1 %]
304 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
305 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
306 [% ELSIF ( ( Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 ) ) %]
307 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
311 </div> <!-- /#moresearches -->
312 </div> <!-- /.row-fluid -->
314 [% END # / OpacPublic %]
315 </div> <!-- /.span10 -->
316 </div> <!-- /.opac-main-search -->
317 </div> <!-- / .row-fluid -->
318 </div> <!-- /.container-fluid -->
320 <!-- Login form hidden by default, used for modal window -->
321 <div id="loginModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
322 <div class="modal-header">
323 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
324 <h3 id="modalLoginLabel">Log in to your account</h3>
326 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
327 <div class="modal-body">
328 [% IF ( shibbolethAuthentication ) %]
329 [% IF ( invalidShibLogin ) %]
330 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
331 <div class="alert alert-info">
332 <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
335 <h4>Shibboleth Login</h4>
336 <p>If you have a Shibboleth account, please <a href="[% shibbolethLoginUrl %]">click here to login</a>.</p>
340 <input type="hidden" name="koha_login_context" value="opac" />
341 <fieldset class="brief">
342 <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
343 <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
344 [% IF Koha.Preference( 'NoLoginInstructions' ) %]
345 <div id="nologininstructions-modal">
346 [% Koha.Preference( 'NoLoginInstructions' ) %]
349 [% 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 %]
352 <div class="modal-footer">
353 <input type="submit" class="btn btn-primary" value="Log in" />
354 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
356 </form> <!-- /#auth -->
357 </div> <!-- /#modalAuth -->