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 ( pubshelves ) %]
41 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves" tabindex="-1" role="menuitem"><strong>Public lists</strong></a></li>
42 [% FOREACH pubshelvesloo IN pubshelvesloop %]
43 <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>
45 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li>
47 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li>
49 <li class="divider" role="presentation"></li>
50 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
51 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" tabindex="-1" role="menuitem"><strong>Your lists</strong></a></li>
52 [% IF ( loggedinusername ) %]
53 [% IF ( barshelves ) %]
54 [% FOREACH barshelvesloo IN barshelvesloop %]
55 <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>
57 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" tabindex="-1" role="menuitem" class="listmenulink">View all</a></li>
59 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No private lists</a></li>
60 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" tabindex="-1" role="menuitem" class="listmenulink">New list</a></li>
63 <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>
64 [% END # / IF loggedinusername %]
65 [% END # / IF opacuserlogin %]
66 </ul> <!-- / .dropdown-menu -->
67 </li> <!-- / .dropdown -->
68 [% END # / IF virtualshelves %]
70 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]<div id="listsDetails"></div>[% END %]
71 [% IF Koha.Preference( 'opacuserlogin' ) == 1 || opaclanguagesdisplay || EnableOpacSearchHistory %]
72 <a id="user-menu-trigger" class="pull-right" href="#"><i class="icon-user"></i> <span class="caret"></span></a>
74 <ul class="nav pull-right">
76 [% INCLUDE 'masthead-langmenu.inc' %]
78 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
79 [% UNLESS ( loggedinusername ) %]
80 [% IF Koha.Preference('casAuthentication') %]
81 [%# CAS authentication is too complicated for modal window %]
82 <li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
84 <li><a href="/cgi-bin/koha/opac-user.pl" class="loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
87 [% IF ( loggedinusername ) %]
88 <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>
89 <li class="divider-vertical"></li>
92 [% IF EnableOpacSearchHistory %]
93 <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>
94 <li class="divider-vertical"></li>
96 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
97 [% IF ( loggedinusername ) %]
98 <li><p class="navbar-text">
100 <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1" onclick='navigator.id.logout();'>
102 <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
108 </div> <!-- /members -->
109 [% END # IF opacuserlogin %]
110 </div> <!-- /container-fluid -->
111 </div> <!-- /navbar-inner -->
112 </div> <!-- /navbar -->
114 [% IF ( opacheader ) %]
115 <div class="container-fluid">
116 <div class="row-fluid">
117 <div id="opacheader">
123 </div> <!-- / header-region -->
125 <div class="container-fluid">
126 <div class="row-fluid">
127 <div id="opac-main-search">
128 <!-- <div class="span2">
129 [% IF ( opacsmallimage ) %]
130 <h1 id="libraryname" style="background-image: url('[% opacsmallimage %]');">
132 <h1 id="libraryname">
134 <a href="/cgi-bin/koha/opac-main.pl">[% IF ( LibraryName ) %][% LibraryName %][% ELSE %]Koha Online Catalog[% END %]</a></h1>
137 [% IF ( OpacPublic ) %]
138 [% UNLESS ( advsearch ) %]
139 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
140 <div class="mastheadsearch librarypulldown">
142 <div class="mastheadsearch">
144 [% IF Koha.Preference('OpacCustomSearch') == '' %]
145 <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="form-inline">
146 <label for="masthead_search"> Search
147 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
148 [% IF ( mylibraryfirst ) %]
149 (in [% mylibraryfirst %] only)
154 <select name="idx" id="masthead_search">
156 <option selected="selected" value="">Library catalog</option>
158 <option value="">Library catalog</option>
161 <option selected="selected" value="ti">Title</option>
163 <option value="ti">Title</option>
166 <option selected="selected" value="au">Author</option>
168 <option value="au">Author</option>
171 <option selected="selected" value="su">Subject</option>
173 <option value="su">Subject</option>
176 <option selected="selected" value="nb">ISBN</option>
178 <option value="nb">ISBN</option>
181 <option selected="selected" value="se">Series</option>
183 <option value="se">Series</option>
185 [% IF ( numbersphr ) %]
186 [% IF ( ms_callnum ) %]
187 <option selected="selected" value="callnum,phr">Call number</option>
189 <option value="callnum,phr">Call number</option>
190 [% END #/ms_callnum %]
192 [% IF ( ms_callnum ) %]
193 <option selected="selected" value="callnum">Call number</option>
195 <option value="callnum">Call number</option>
196 [% END # /ms_callnum %]
197 [% END # /numbersphr %]
200 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
201 <div class="input-append nolibrarypulldown">
203 [% IF ( ms_value ) %]
204 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" value="[% ms_value |html %]" /><span id="translControl"></span>
206 <input type="text" title="Type search term" class="transl1" id = "translControl1" name="q" /><span id="translControl"></span>
207 [% END # /ms_value %]
209 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
210 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
214 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
215 <div class="input-append">
216 <select name="branch_group_limit" id="select_library">
217 <option value="">All libraries</option>
218 [% IF BranchCategoriesLoop %]<optgroup label="Libraries">[% END %]
219 [% FOREACH BranchesLoo IN BranchesLoop %]
220 [% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
221 [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
223 [% IF BranchCategoriesLoop %]
225 <optgroup label="Groups">
226 [% FOREACH bc IN BranchCategoriesLoop %]
227 [% IF ( bc.selected ) %]
228 <option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
230 <option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
231 [% END # / bc.selected %]
234 [% END # / BranchCategoriesLoop %]
236 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
239 [% IF ( opac_limit_override ) %]
240 [% IF ( opac_search_limit ) %]
241 <input name="limit" value="[% opac_search_limit %]" type="hidden" />
244 [% IF ( mylibraryfirst ) %]
245 <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
247 [% END # / opac_limit_override %]
248 [% END # / OpacAddMastheadLibraryPulldown %]
251 [% ELSE # / Koha.Preference('OpacCustomSearch') == '' %]
252 [% Koha.Preference('OpacCustomSearch') %]
253 [% END # / Koha.Preference('OpacCustomSearch') == '' %]
254 </div> <!-- / .mastheadsearch -->
255 [% END # / UNLESS advsearch %]
257 <div class="row-fluid">
258 <div id="moresearches">
260 <li><a href="/cgi-bin/koha/opac-search.pl">Advanced search</a></li>
261 [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]<li><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a></li>[% END %]
262 [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a></li>[% END %]
263 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]<li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a></li>[% END %]
264 [% 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 %]
265 [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>[% END %]
266 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a></li>[% END %]
267 [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
268 [% IF Koha.Preference( 'suggestion' ) == 1 %]
269 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
270 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
271 [% ELSIF ( ( Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 ) ) %]
272 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
276 </div> <!-- /#moresearches -->
277 </div> <!-- /.row-fluid -->
279 [% END # / OpacPublic %]
280 </div> <!-- /.span10 -->
281 </div> <!-- /.opac-main-search -->
282 </div> <!-- / .row-fluid -->
283 </div> <!-- /.container-fluid -->
285 <!-- Login form hidden by default, used for modal window -->
286 <div id="loginModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
287 <div class="modal-header">
288 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
289 <h3 id="modalLoginLabel">Log in to your account</h3>
291 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
292 <div class="modal-body">
293 [% IF ( shibbolethAuthentication ) %]
294 [% IF ( invalidShibLogin ) %]
295 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
296 <div class="alert alert-info">
297 <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
300 <h4>Shibboleth Login</h4>
301 <p>If you have a Shibboleth account, please <a href="[% shibbolethLoginUrl %]">click here to login</a>.</p>
305 <input type="hidden" name="koha_login_context" value="opac" />
306 <fieldset class="brief">
307 <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
308 <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
309 [% IF Koha.Preference( 'NoLoginInstructions' ) %]
310 <div id="nologininstructions-modal">
311 [% Koha.Preference( 'NoLoginInstructions' ) %]
314 [% 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 %]
317 <div class="modal-footer">
318 <input type="submit" class="btn btn-primary" value="Log in" />
319 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
321 </form> <!-- /#auth -->
322 </div> <!-- /#modalAuth -->