updated release notes for 3.14.0 beta
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / masthead.inc
1 <div id="wrap">
2     <div id="header-region">
3         <div class="navbar navbar-inverse navbar-static-top">
4             <div class="navbar-inner">
5                 <div class="container-fluid">
6                     <h1 id="logo">
7                         <a class="brand" href="/cgi-bin/koha/opac-main.pl">
8                             [% IF ( LibraryNameTitle ) %]
9                                 [% LibraryNameTitle %]
10                             [% ELSE %]
11                                 Koha online
12                             [% END %]
13                         </a>
14                     </h1>
15                     [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
16                         <div id="cartDetails" class="cart-message">Your cart is empty.</div>
17                     [% END %]
18                     <ul class="nav">
19                         [% IF ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
20                             <li class="dropdown">
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>
23                                 </a>
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>
27                                     </li>
28                                 </ul>
29                             </li>
30                         [% END %]
31                         [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) && ( Koha.Preference( 'opacbookbag' ) == 1 ) %]
32                             <li class="divider-vertical"></li>
33                         [% END %]
34                         [% IF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
35                             <li class="dropdown">
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 %]&amp;sortfield=[% pubshelvesloo.sortfield %]" tabindex="-1" role="menuitem">[% pubshelvesloo.shelfname |html %]</a></li>
42                                         [% END %]
43                                             <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li>
44                                     [% ELSE %]
45                                         <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li>
46                                     [% END %]
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 %]&amp;sortfield=[% barshelvesloo.sortfield %]" tabindex="-1" role="menuitem">[% barshelvesloo.shelfname |html %]</a></li>
54                                                 [% END %]
55                                                 <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" tabindex="-1" role="menuitem" class="listmenulink">View all</a></li>
56                                             [% ELSE %]
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>
59                                             [% END %]
60                                         [% ELSE %]
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 %]
67                     </ul> <!-- / .nav -->
68                     [% IF Koha.Preference( 'virtualshelves' ) == 1 %]<div id="listsDetails"></div>[% END %]
69                     [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
70                         <a id="user-menu-trigger" class="pull-right" href="#"><i class="icon-user"></i> <span class="caret"></span></a>
71                         <div id="members">
72                             <ul class="nav pull-right">
73                                 [% UNLESS ( loggedinusername ) %]
74                                     <li><a href="/cgi-bin/koha/opac-user.pl" class="loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
75                                 [% END %]
76                                 [% IF ( loggedinusername ) %]
77                                     <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>
78                                     <li class="divider-vertical"></li>
79                                 [% END %]
80                                 [% IF ( ShowOpacRecentSearchLink ) %]
81                                     <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>
82                                     <li class="divider-vertical"></li>
83                                 [% END %]
84                                 [% IF ( loggedinusername ) %]
85                                     <li><p class="navbar-text">
86                                         [% IF persona %]
87                                             <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1" onclick='navigator.id.logout();'>
88                                         [% ELSE %]
89                                             <a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
90                                         [% END %]
91                                         Log out</a></p></li>
92                                 [% END %]
93                             </ul>
94                         </div> <!-- /members -->
95                     [% END %]
96                 </div> <!-- /container-fluid -->
97             </div> <!-- /navbar-inner -->
98         </div> <!-- /navbar -->
99
100         [% IF ( opacheader ) %]
101             <div class="container-fluid">
102                 <div class="row-fluid">
103                     <div id="opacheader">
104                         [% opacheader %]
105                     </div>
106                 </div>
107             </div>
108         [% END %]
109     </div> <!-- / header-region -->
110
111     <div class="container-fluid">
112         <div class="row-fluid">
113             <div id="opac-main-search">
114     <!--             <div class="span2">
115         [% IF ( opacsmallimage ) %]
116             <h1 id="libraryname" style="background-image: url('[% opacsmallimage %]');">
117         [% ELSE %]
118             <h1 id="libraryname">
119         [% END %]
120             <a href="/cgi-bin/koha/opac-main.pl">[% IF ( LibraryName ) %][% LibraryName %][% ELSE %]Koha Online Catalog[% END %]</a></h1>
121     </div> /.span2 -->
122             <div class="span12">
123                 [% IF ( OpacPublic ) %]
124                     [% UNLESS ( advsearch ) %]
125                         [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
126                             <div class="mastheadsearch librarypulldown">
127                         [% ELSE %]
128                             <div class="mastheadsearch">
129                         [% END %]
130                         <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="form-inline">
131                             <label for="masthead_search"> Search
132                                 [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
133                                     [% IF ( mylibraryfirst ) %]
134                                         (in [% mylibraryfirst %] only)
135                                     [% END %]
136                                 [% END %]
137                             </label>
138
139                             <select name="idx" id="masthead_search">
140                             [% IF ( ms_kw ) %]
141                                 <option selected="selected" value="">Library catalog</option>
142                             [% ELSE %]
143                                 <option value="">Library catalog</option>
144                             [% END # /ms_kw %]
145                             [% IF ( ms_ti ) %]
146                                 <option selected="selected" value="ti">Title</option>
147                             [% ELSE %]
148                                 <option value="ti">Title</option>
149                             [% END # /ms_ti %]
150                             [% IF ( ms_au ) %]
151                                 <option selected="selected" value="au">Author</option>
152                             [% ELSE %]
153                                 <option value="au">Author</option>
154                             [% END # /ms_au%]
155                             [% IF ( ms_su ) %]
156                                 <option selected="selected" value="su">Subject</option>
157                             [% ELSE %]
158                                 <option value="su">Subject</option>
159                             [% END # /ms_su %]
160                             [% IF ( ms_nb ) %]
161                                 <option selected="selected" value="nb">ISBN</option>
162                             [% ELSE %]
163                                 <option value="nb">ISBN</option>
164                             [% END # /ms_nb%]
165                             [% IF ( ms_se ) %]
166                                 <option selected="selected" value="se">Series</option>
167                             [% ELSE %]
168                                 <option value="se">Series</option>
169                             [% END # /ms_se %]
170                             [% IF ( numbersphr ) %]
171                                 [% IF ( ms_callnum ) %]
172                                         <option selected="selected" value="callnum,phr">Call number</option>
173                                 [% ELSE %]
174                                     <option value="callnum,phr">Call number</option>
175                                 [% END #/ms_callnum %]
176                             [% ELSE %]
177                                 [% IF ( ms_callnum ) %]
178                                     <option selected="selected" value="callnum">Call number</option>
179                                 [% ELSE %]
180                                     <option value="callnum">Call number</option>
181                                 [% END # /ms_callnum %]
182                             [% END # /numbersphr %]
183                             </select>
184
185                             [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
186                                 <div class="input-append nolibrarypulldown">
187                             [% END %]
188                             [% IF ( ms_value ) %]
189                                 <input type="text" title="Type search term" class="transl1" name="q" value="[% ms_value |html %]" /><span id="translControl"></span>
190                             [% ELSE %]
191                                 <input type="text" title="Type search term" class="transl1" name="q" /><span id="translControl"></span>
192                             [% END # /ms_value %]
193
194                             [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
195                                 <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
196                                 </div>
197                             [% END %]
198
199                             [% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
200                                 <div class="input-append">
201                                     <select name="branch_group_limit" id="select_library">
202                                         <option value="">All libraries</option>
203                                         [% IF BranchCategoriesLoop %]<optgroup label="Libraries">[% END %]
204                                             [% FOREACH BranchesLoo IN BranchesLoop %]
205                                                 [% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
206                                                 [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
207                                             [% END %]
208                                         [% IF BranchCategoriesLoop %]
209                                             </optgroup>
210                                             <optgroup label="Groups">
211                                                 [% FOREACH bc IN BranchCategoriesLoop %]
212                                                     [% IF ( bc.selected ) %]
213                                                         <option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
214                                                     [% ELSE %]
215                                                         <option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
216                                                     [% END # / bc.selected %]
217                                                 [% END %]
218                                             </optgroup>
219                                         [% END # / BranchCategoriesLoop %]
220                                     </select>
221                                     <button type="submit" id="searchsubmit" class="btn btn-primary">Go</button>
222                                 </div>
223                             [% ELSE %]
224                                 [% IF ( opac_limit_override ) %]
225                                     [% IF ( opac_search_limit ) %]
226                                         <input name="limit" value="[% opac_search_limit %]" type="hidden" />
227                                     [% END %]
228                                 [% ELSE %]
229                                     [% IF ( mylibraryfirst ) %]
230                                         <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
231                                     [% END %]
232                                 [% END # / opac_limit_override %]
233                             [% END # / OpacAddMastheadLibraryPulldown %]
234
235                         </form>
236                         </div> <!-- / .mastheadsearch -->
237                     [% END # / UNLESS advsearch %]
238
239                     <div class="row-fluid">
240                             <div id="moresearches">
241                                 <ul>
242                                     <li><a href="/cgi-bin/koha/opac-search.pl">Advanced search</a></li>
243                                     [% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %]<li><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a></li>[% END %]
244                                     [% IF Koha.Preference( 'OpacBrowser' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a></li>[% END %]
245                                     [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]<li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a></li>[% END %]
246                                     [% 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 %]
247                                     [% IF Koha.Preference( 'TagsEnabled' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a></li>[% END %]
248                                     [% IF Koha.Preference( 'OpacCloud' ) == 1 %]<li><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a></li>[% END %]
249                                     [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
250                                     [% IF Koha.Preference( 'suggestion' ) == 1 %]
251                                         [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
252                                             <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
253                                         [% ELSIF ( ( Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 ) ) %]
254                                             <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
255                                         [% END %]
256                                     [% END %]
257                                 </ul>
258                             </div> <!-- /#moresearches -->
259                     </div> <!-- /.row-fluid -->
260
261                 [% END # / OpacPublic %]
262             </div> <!-- /.span10 -->
263             </div> <!-- /.opac-main-search -->
264         </div> <!-- / .row-fluid -->
265     </div> <!-- /.container-fluid -->
266
267     <!-- Login form hidden by default, used for modal window -->
268     <div id="loginModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
269         <div class="modal-header">
270             <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
271             <h3 id="modalLoginLabel">Log in to your account</h3>
272         </div>
273         <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth">
274             <div class="modal-body">
275                     <input type="hidden" name="koha_login_context" value="opac" />
276                     <fieldset class="brief">
277                         <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" />
278                         <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" />
279                     [% 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 %]
280                     </fieldset>
281             </div>
282             <div class="modal-footer">
283                 <input type="submit" class="btn btn-primary" value="Log in" />
284                 <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
285             </div>
286         </form> <!-- /#auth -->
287     </div>  <!-- /#modalAuth  -->