2 <div id="header-region">
3 <div class="navbar navbar-inverse navbar-static-top">
4 <div class="navbar-inner">
5 <div class="container-fluid">
7 <a class="brand" href="/cgi-bin/koha/opac-main.pl">
8 [% IF ( LibraryNameTitle ) %]
15 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
16 <div id="cartDetails" class="cart-message">Your cart is empty.</div>
19 [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
21 <a href="#" class="dropdown-toggle" id="cartmenulink" data-toggle="dropdown" role="button">
22 <i id="carticon" class="icon-shopping-cart icon-white"></i> <span class="cartlabel">Cart</span> <span id="basketcount"></span>
24 <ul aria-labelledby="cartmenulink" role="menu" class="dropdown-menu">
25 <li role="presentation">
26 <a href="#" id="cartmenuitem" class="cart-message" tabindex="-1" role="menuitem">Your cart is empty.</a>
31 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) && ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
32 <li class="divider-vertical"></li>
34 [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
36 <a href="#" 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>
37 <ul aria-labelledby="listsmenu" role="menu" class="dropdown-menu">
38 [% IF ( pubshelves ) %]
39 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves" tabindex="-1" role="menuitem"><strong>Public lists</strong></a></li>
40 [% FOREACH pubshelvesloo IN pubshelvesloop %]
41 <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>
43 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li>
45 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li>
47 <li class="divider" role="presentation"></li>
48 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
49 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" tabindex="-1" role="menuitem"><strong>Your lists</strong></a></li>
50 [% IF ( loggedinusername ) %]
51 [% IF ( barshelves ) %]
52 [% FOREACH barshelvesloo IN barshelvesloop %]
53 <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>
55 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" tabindex="-1" role="menuitem" class="listmenulink">View all</a></li>
57 <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No private lists</a></li>
58 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" tabindex="-1" role="menuitem" class="listmenulink">New list</a></li>
61 <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>
62 [% END # / IF loggedinusername %]
63 [% END # / IF opacuserlogin %]
64 </ul> <!-- / .dropdown-menu -->
65 </li> <!-- / .dropdown -->
66 [% END # / IF virtualshelves %]
68 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]<div id="listsDetails"></div>[% END %]
69 [% IF Koha.Preference( 'opacuserlogin' ) == 1 || EnableOpacSearchHistory %]
70 <a id="user-menu-trigger" class="pull-right" href="#"><i class="icon-user"></i> <span class="caret"></span></a>
72 <ul class="nav pull-right">
73 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
74 [% UNLESS ( loggedinusername ) %]
75 [% IF Koha.Preference('casAuthentication') %]
76 [%# CAS authentication is too complicated for modal window %]
77 <li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
79 <li><a href="/cgi-bin/koha/opac-user.pl" class="loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
82 [% IF ( loggedinusername ) %]
83 <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>
84 <li class="divider-vertical"></li>
87 [% IF EnableOpacSearchHistory %]
88 <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>
89 <li class="divider-vertical"></li>
91 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
92 [% IF ( loggedinusername ) %]
93 <li><p class="navbar-text">
95 <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1" onclick='navigator.id.logout();'>
97 <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
103 </div> <!-- /members -->
104 [% END # IF opacuserlogin %]
105 </div> <!-- /container-fluid -->
106 </div> <!-- /navbar-inner -->
107 </div> <!-- /navbar -->
109 [% IF ( opacheader ) %]
110 <div class="container-fluid">
111 <div class="row-fluid">
112 <div id="opacheader">
118 </div> <!-- / header-region -->
120 <div class="container-fluid">
121 <div class="row-fluid">
122 <div id="opac-main-search">
123 <!-- <div class="span2">
124 [% IF ( opacsmallimage ) %]
125 <h1 id="libraryname" style="background-image: url('[% opacsmallimage %]');">
127 <h1 id="libraryname">
129 <a href="/cgi-bin/koha/opac-main.pl">[% IF ( LibraryName ) %][% LibraryName %][% ELSE %]Koha Online Catalog[% END %]</a></h1>
132 [% IF ( OpacPublic ) %]
133 [% UNLESS ( advsearch ) %]
134 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
135 <div class="mastheadsearch librarypulldown">
137 <div class="mastheadsearch">
139 <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="form-inline">
140 <label for="masthead_search"> Search
141 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
142 [% IF ( mylibraryfirst ) %]
143 (in [% mylibraryfirst %] only)
148 <select name="idx" id="masthead_search">
150 <option selected="selected" value="">Library catalog</option>
152 <option value="">Library catalog</option>
155 <option selected="selected" value="ti">Title</option>
157 <option value="ti">Title</option>
160 <option selected="selected" value="au">Author</option>
162 <option value="au">Author</option>
165 <option selected="selected" value="su">Subject</option>
167 <option value="su">Subject</option>
170 <option selected="selected" value="nb">ISBN</option>
172 <option value="nb">ISBN</option>
175 <option selected="selected" value="se">Series</option>
177 <option value="se">Series</option>
179 [% IF ( numbersphr ) %]
180 [% IF ( ms_callnum ) %]
181 <option selected="selected" value="callnum,phr">Call number</option>
183 <option value="callnum,phr">Call number</option>
184 [% END #/ms_callnum %]
186 [% IF ( ms_callnum ) %]
187 <option selected="selected" value="callnum">Call number</option>
189 <option value="callnum">Call number</option>
190 [% END # /ms_callnum %]
191 [% END # /numbersphr %]
194 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
195 <div class="input-append nolibrarypulldown">
197 [% IF ( ms_value ) %]
198 <input type="text" title="Type search term" class="transl1" name="q" value="[% ms_value |html %]" /><span id="translControl"></span>
200 <input type="text" title="Type search term" class="transl1" name="q" /><span id="translControl"></span>
201 [% END # /ms_value %]
203 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
204 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
208 [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
209 <div class="input-append">
210 <select name="branch_group_limit" id="select_library">
211 <option value="">All libraries</option>
212 [% IF BranchCategoriesLoop %]<optgroup label="Libraries">[% END %]
213 [% FOREACH BranchesLoo IN BranchesLoop %]
214 [% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
215 [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
217 [% IF BranchCategoriesLoop %]
219 <optgroup label="Groups">
220 [% FOREACH bc IN BranchCategoriesLoop %]
221 [% IF ( bc.selected ) %]
222 <option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
224 <option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
225 [% END # / bc.selected %]
228 [% END # / BranchCategoriesLoop %]
230 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
233 [% IF ( opac_limit_override ) %]
234 [% IF ( opac_search_limit ) %]
235 <input name="limit" value="[% opac_search_limit %]" type="hidden" />
238 [% IF ( mylibraryfirst ) %]
239 <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
241 [% END # / opac_limit_override %]
242 [% END # / OpacAddMastheadLibraryPulldown %]
245 </div> <!-- / .mastheadsearch -->
246 [% END # / UNLESS advsearch %]
248 <div class="row-fluid">
249 <div id="moresearches">
251 <li><a href="/cgi-bin/koha/opac-search.pl">Advanced search</a></li>
252 [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]<li><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a></li>[% END %]
253 [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a></li>[% END %]
254 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]<li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a></li>[% END %]
255 [% 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 %]
256 [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>[% END %]
257 [% IF Koha.Preference( 'OpacCloud' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a></li>[% END %]
258 [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
259 [% IF Koha.Preference( 'suggestion' ) == 1 %]
260 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
261 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
262 [% ELSIF ( ( Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 ) ) %]
263 <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
267 </div> <!-- /#moresearches -->
268 </div> <!-- /.row-fluid -->
270 [% END # / OpacPublic %]
271 </div> <!-- /.span10 -->
272 </div> <!-- /.opac-main-search -->
273 </div> <!-- / .row-fluid -->
274 </div> <!-- /.container-fluid -->
276 <!-- Login form hidden by default, used for modal window -->
277 <div id="loginModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
278 <div class="modal-header">
279 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
280 <h3 id="modalLoginLabel">Log in to your account</h3>
282 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
283 <div class="modal-body">
284 [% IF ( shibbolethAuthentication ) %]
285 [% IF ( invalidShibLogin ) %]
286 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
287 <div class="alert alert-info">
288 <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
291 <h4>Shibboleth Login</h4>
292 <p>If you have a Shibboleth account, please <a href="[% shibbolethLoginUrl %]">click here to login</a>.</p>
296 <input type="hidden" name="koha_login_context" value="opac" />
297 <fieldset class="brief">
298 <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
299 <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
300 [% IF Koha.Preference( 'NoLoginInstructions' ) %]
301 <div id="nologininstructions-modal">
302 [% Koha.Preference( 'NoLoginInstructions' ) %]
305 [% 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 %]
308 <div class="modal-footer">
309 <input type="submit" class="btn btn-primary" value="Log in" />
310 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
312 </form> <!-- /#auth -->
313 </div> <!-- /#modalAuth -->