bug 4862 - Change label of Browse by subject or author to Authority search
[koha.git] / koha-tmpl / opac-tmpl / ccsr / en / includes / masthead.inc
1 <div id="header-wrapper">
2
3 <div id="top-bar">
4 <ul id="menu-left">
5     <!-- [% IF ( opacbookbag ) %] -->
6         <li>
7             <span id="cmspan"></span>
8             <div id="cartDetails">Your cart is empty.</div>
9         </li>
10     <!-- [% END %] -->
11
12     [% IF ( virtualshelves ) %]
13
14     <li id="listsmenulink">
15         <a href="/cgi-bin/koha/opac-shelves.pl"  class="">
16             <span>Lists</span>
17         </a>
18     <div id="listsmenu" class="yuimenu" style="display: none">
19         <h4>Public lists</h4>
20             [% IF ( pubshelves ) %]
21                 <ul class="first-of-type">
22                 [% FOREACH pubshelvesloo IN pubshelvesloop %]
23                 <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% pubshelvesloo.shelfnumber %]&amp;sortfield=[% pubshelvesloo.sortfield %]">[% pubshelvesloo.shelfname |html %]</a></li>
24                 [% END %]
25                 <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">[View All]</a></li>
26             </ul>
27             [% ELSE %]
28             No public lists
29             [% END %]
30       [% IF ( opacuserlogin ) %]
31         <h4>Your lists</h4>
32         [% IF ( loggedinusername ) %]
33             [% IF ( barshelves ) %]
34                 <ul class="first-of-type">
35                 [% FOREACH barshelvesloo IN barshelvesloop %]
36                 <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% barshelvesloo.shelfnumber %]&amp;sortfield=[% barshelvesloo.sortfield %]">[% barshelvesloo.shelfname |html %]</a></li>
37                 [% END %]
38             <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[View all]</a></li>
39             </ul>
40             [% ELSE %]
41                 <ul class="first-of-type">
42             <li>No private lists</li>
43             <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[New list]</a></li></ul>
44             [% END %]
45         [% ELSE %]
46             <ul class="first-of-type"><li><a href="/cgi-bin/koha/opac-user.pl">Log in to create your own lists</a></li></ul>
47         [% END %]
48       [% END %]
49     </div><!-- /listmenu /virtualshelves -->
50 [% END %]
51 <div id="listsDetails"></div>
52
53 </li>
54 </ul>
55
56     <div id="members">
57       [% IF ( opacuserlogin ) %]
58         <ul>
59     [% UNLESS ( loggedinusername ) %]
60                    <li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>[% END %]
61                 [% IF ( loggedinusername ) %]
62                     <li><span class="members">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></span></li>
63
64                 [% END %]
65                 [% IF ( ShowOpacRecentSearchLink ) %]
66                     <li><a href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a></li>
67                 [% END %]
68  [% IF ( loggedinusername ) %]<li>[% IF persona %]<a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1" onclick='navigator.id.logout();'>[% ELSE %]<a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">[% END %]Log Out</a></li>[% END %]
69         </ul>
70       [% END %]
71     </div>
72
73     <div class="clear"></div>
74
75 </div>
76
77 <div id="opac-main-search" class="yui-g">
78
79 <a class="logo" href="/cgi-bin/koha/opac-main.pl">
80   [% UNLESS ( opacsmallimage ) %]
81       [% UNLESS ( LibraryName ) %]
82     <img src="/opac-tmpl/ccsr/images/logo-koha.png" alt="Koha Online Catalog" />
83       [% ELSE %]
84     <img src="/opac-tmpl/ccsr/images/logo-koha.png" alt="[% LibraryName %] Online Catalog" />
85       [% END %]
86   [% ELSE %]
87       [% UNLESS ( LibraryName ) %]
88     <img src="[% opacsmallimage %]" alt="Koha Online Catalog" />
89       [% ELSE %]
90     <img src="[% opacsmallimage %]" alt="[% LibraryName %] Online Catalog" />
91       [% END %]
92   [% END %]
93 </a>
94
95 <div id="fluid">
96
97 [% IF ( OpacPublic ) %]
98 <div id="fluid-offset">
99 [% UNLESS ( advsearch ) %]
100 [% IF ( OpacAddMastheadLibraryPulldown ) %]
101     [% IF ( OpacShowFiltersPulldownMobile and not OpacShowLibrariesPulldownMobile ) or ( not OpacShowFiltersPulldownMobile and OpacShowLibrariesPulldownMobile ) %]
102         <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries single-field-mobile">
103     [% ELSE %]
104         <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries">
105     [% END %]
106 [% ELSE %]
107     <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="single-library">
108 [% END %]
109     <label for="masthead_search" class="left"> Search
110     [% UNLESS ( OpacAddMastheadLibraryPulldown ) %]
111             [% IF ( mylibraryfirst ) %] (in [% mylibraryfirst %] only)[% END %]
112     [% END %]
113     </label>
114     [% IF ( OpacShowFiltersPulldownMobile ) %]
115         <div id="filters">
116     [% ELSE %]
117         <div id="filters" class="mobile-hidden">
118     [% END %]
119     <select name="idx" id="masthead_search" class="left">
120     [% IF ( ms_kw ) %]
121         <option selected="selected" value="">Library catalog</option>
122         [% ELSE %]
123         <option value="">Library catalog</option>
124         [% END %]
125         [% IF ( ms_ti ) %]
126         <option selected="selected" value="ti">Title</option>
127         [% ELSE %]
128         <option value="ti">Title</option>
129         [% END %]
130         [% IF ( ms_au ) %]
131         <option selected="selected" value="au">Author</option>
132         [% ELSE %]
133         <option value="au">Author</option>
134         [% END %]
135         [% IF ( ms_su ) %]
136         <option selected="selected" value="su">Subject</option>
137         [% ELSE %]
138         <option value="su">Subject</option>
139         [% END %]
140         [% IF ( ms_nb ) %]
141         <option selected="selected" value="nb">ISBN</option>
142         [% ELSE %]
143         <option value="nb">ISBN</option>
144         [% END %]
145         [% IF ( ms_se ) %]
146         <option selected="selected" value="se">Series</option>
147         [% ELSE %]
148         <option value="se">Series</option>
149         [% END %]
150         [% IF ( ms_callnum ) %]
151         <option selected="selected" value="callnum">Call number</option>
152         [% ELSE %]
153         <option value="callnum">Call number</option>
154         [% END %]</select>
155     </div>
156
157 <div class="input-wrapper">
158 [% IF ( ms_value ) %]
159         <input type="text" id = "transl1" name="q" value="[% ms_value |html %]" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
160 [% ELSE %]
161         <input type="text" id = "transl1" name="q" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
162 [% END %]
163 </div>
164
165    [% IF ( OpacAddMastheadLibraryPulldown ) %]
166         [% IF ( OpacShowLibrariesPulldownMobile ) %]
167             <div id="libraries">
168         [% ELSE %]
169             <div id="libraries" class="mobile-hidden">
170         [% END %]
171
172         <select name="branch_group_limit" id="select_library" class="left">
173            <option value="">All libraries</option>
174            <optgroup label="Libraries">
175                [% FOREACH BranchesLoo IN BranchesLoop %]
176                   [% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
177                   [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
178                [% END %]
179            </optgroup>
180            [% IF BranchCategoriesLoop %]
181                <optgroup label="Groups">
182                    [% FOREACH bc IN BranchCategoriesLoop %]
183                        [% IF ( bc.selected ) %]
184                            <option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
185                        [% ELSE %]
186                            <option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
187                        [% END %]
188                    [% END %]
189                </optgroup>
190            [% END %]
191         </select>
192
193     </div>
194    [% ELSE %]
195       [% IF ( opac_limit_override ) %]
196           [% IF ( opac_search_limit ) %]
197             <input name="limit" value="[% opac_search_limit %]" type="hidden" />
198           [% END %]
199       [% ELSE %]
200           [% IF ( mylibraryfirst ) %]
201                <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
202           [% END %]
203       [% END %]
204    [% END %]
205
206
207     <input type="submit" value="Go" id="searchsubmit" class="left" />
208 [% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %]
209
210     <div class="clear"></div>
211
212     </form>
213 [% ELSE %] <!--advsearch -->
214     [% IF ( OpacAddMastheadLibraryPulldown ) %]
215         [% IF ( OpacShowFiltersPulldownMobile and not OpacShowLibrariesPulldownMobile ) or ( not OpacShowFiltersPulldownMobile and OpacShowLibrariesPulldownMobile ) %]
216             <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries single-field-mobile">
217         [% ELSE %]
218             <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries">
219         [% END %]
220     [% ELSE %]
221         <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="single-library">
222     [% END %]
223     <label for="masthead_search" class="left"> Search
224     [% UNLESS ( OpacAddMastheadLibraryPulldown ) %]
225             [% IF ( mylibraryfirst ) %] (in [% mylibraryfirst %] only)[% END %]
226     [% END %]
227     </label>
228     [% IF ( OpacShowFiltersPulldownMobile ) %]
229         <div id="filters" class="transparent">
230     [% ELSE %]
231         <div id="filters" class="transparent mobile-hidden">
232     [% END %]
233         <select name="idx" id="masthead_search" class="left" disabled="disabled">
234             <option selected="selected" value="">Library Catalog</option>
235         </select>
236     </div>
237
238 <div class="input-wrapper">
239     <input type="text" id = "transl1" name="q" class="left transparent" style="width: 35%; font-size: 111%;" disabled="disabled"/><div id="translControl"></div>
240 </div>
241
242    [% IF ( OpacAddMastheadLibraryPulldown ) %]
243         [% IF ( OpacShowLibrariesPulldownMobile ) %]
244             <div id="libraries">
245         [% ELSE %]
246             <div id="libraries" class="mobile-hidden">
247         [% END %]
248           <select name="limit" id="select_library" class="left transparent">
249              <option value="">All Libraries</option>
250           </select>
251         </div>
252    [% END %]
253
254
255     <input type="submit" value="Go" id="searchsubmit" class="left transparent" disabled="disabled" />
256 [% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %]
257
258     <div class="clear"></div>
259
260     </form>
261 [% END %]
262
263 <div id="moresearches">
264 <a href="/cgi-bin/koha/opac-search.pl">Advanced search</a>
265 [% IF ( OpacBrowser ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a>[% END %]
266 [% IF ( OpacAuthorities ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>[% END %]
267 [% IF ( opacuserlogin && reviewson && OpacShowRecentComments ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a>[% END %]
268 [% IF ( TagsEnabled ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a>[% END %]
269 [% IF ( OpacCloud ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a>[% END %]
270 [% IF ( OpacTopissue ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a>[% END %]
271 [% IF ( suggestion ) %]
272   [% IF ( AnonSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
273   [% ELSIF ( OPACViewOthersSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
274   [% END %]
275 [% END %]
276 </div>
277  </div>
278 </div>
279
280 <div id="libraryname">
281     [% IF ( opacheader ) %]
282         <h1>
283             [% opacheader %]
284         </h1>
285   [% END %]
286 </div>
287
288 [% END %]  <!-- OpacPublic -->
289
290 </div>
291 </div>
292
293 <div id="container">
294 <div id="ctn_lt">
295 <div id="ctn_rt">
296 <div id="ctn_lb">
297 <div id="ctn_rb">
298
299 <div id="breadcrumbs" class="yui-g">
300 <p><a href="/cgi-bin/koha/opac-main.pl" title="Home">Home</a>
301 [% IF ( searchdesc ) %]<span class="rsaquo"> &rsaquo; </span><a href="/cgi-bin/koha/opac-search.pl" title="Search">Search</a><span class="rsaquo"> &rsaquo; </span>
302 [% IF ( total ) %]<strong>Your search returned [% total |html %] results.</strong>
303 [% IF ( related ) %] (related searches: [% FOREACH relate IN related %][% relate.related_search %][% END %]). [% END %]
304 <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;count=[% countrss |html %]&amp;sort_by=acqdate_dsc&amp;format=rss2" class="rsssearchlink">
305 <img src="/opac-tmpl/ccsr/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a>
306 [% ELSE %]
307 <strong>No results found!</strong>
308 <p>
309     [% IF ( searchdesc ) %]
310     No results found for that in [% LibraryName %] catalog. <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;format=rss2" class="rsssearchlink"><img src="/opac-tmpl/ccsr/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a>
311     [% ELSE %]
312     You did not specify any search criteria.
313     [% END %]
314 </p>
315 [% IF ( OPACNoResultsFound ) %]
316 <div id="noresultsfound">
317 [% OPACNoResultsFound %]
318 </div>
319 [% END %]
320
321 </div>
322 [% END %]</p>[% END %]</div>
323
324 <div class="ctn_in">