Bug 8597 follow-up translation issues
[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><a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">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     <img src="/opac-tmpl/ccsr/images/logo-koha.png" alt="Koha Online Catalog" />
81 </a>
82
83 <div id="fluid">
84
85 [% IF ( OpacPublic ) %]
86 <div id="fluid-offset">
87 [% UNLESS ( advsearch ) %]
88 [% IF ( OpacAddMastheadLibraryPulldown ) %]
89     [% IF ( OpacShowFiltersPulldownMobile and not OpacShowLibrariesPulldownMobile ) or ( not OpacShowFiltersPulldownMobile and OpacShowLibrariesPulldownMobile ) %]
90         <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries single-field-mobile">
91     [% ELSE %]
92         <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries">
93     [% END %]
94 [% ELSE %]
95     <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="single-library">
96 [% END %]
97     <label for="masthead_search" class="left"> Search
98     [% UNLESS ( OpacAddMastheadLibraryPulldown ) %]
99             [% IF ( mylibraryfirst ) %] (in [% mylibraryfirst %] only)[% END %]
100     [% END %]
101     </label>
102     [% IF ( OpacShowFiltersPulldownMobile ) %]
103         <div id="filters">
104     [% ELSE %]
105         <div id="filters" class="mobile-hidden">
106     [% END %]
107     <select name="idx" id="masthead_search" class="left">
108     [% IF ( ms_kw ) %]
109         <option selected="selected" value="">Library catalog</option>
110         [% ELSE %]
111         <option value="">Library catalog</option>
112         [% END %]
113         [% IF ( ms_ti ) %]
114         <option selected="selected" value="ti">Title</option>
115         [% ELSE %]
116         <option value="ti">Title</option>
117         [% END %]
118         [% IF ( ms_au ) %]
119         <option selected="selected" value="au">Author</option>
120         [% ELSE %]
121         <option value="au">Author</option>
122         [% END %]
123         [% IF ( ms_su ) %]
124         <option selected="selected" value="su">Subject</option>
125         [% ELSE %]
126         <option value="su">Subject</option>
127         [% END %]
128         [% IF ( ms_nb ) %]
129         <option selected="selected" value="nb">ISBN</option>
130         [% ELSE %]
131         <option value="nb">ISBN</option>
132         [% END %]
133         [% IF ( ms_se ) %]
134         <option selected="selected" value="se">Series</option>
135         [% ELSE %]
136         <option value="se">Series</option>
137         [% END %]
138         [% IF ( ms_callnum ) %]
139         <option selected="selected" value="callnum">Call number</option>
140         [% ELSE %]
141         <option value="callnum">Call number</option>
142         [% END %]</select>
143     </div>
144
145 <div class="input-wrapper">
146 [% IF ( ms_value ) %]
147         <input type="text" id = "transl1" name="q" value="[% ms_value |html %]" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
148 [% ELSE %]
149         <input type="text" id = "transl1" name="q" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
150 [% END %]
151 </div>
152
153    [% IF ( OpacAddMastheadLibraryPulldown ) %]
154         [% IF ( OpacShowLibrariesPulldownMobile ) %]
155             <div id="libraries">
156         [% ELSE %]
157             <div id="libraries" class="mobile-hidden">
158         [% END %]
159       <select name="limit" id="select_library" class="left">
160          <option value="">All libraries</option>
161          [% FOREACH BranchesLoo IN BranchesLoop %]
162             [% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
163             [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
164          [% END %]
165       </select>
166     </div>
167    [% ELSE %]
168       [% IF ( opac_limit_override ) %]
169           [% IF ( opac_search_limit ) %]
170             <input name="limit" value="[% opac_search_limit %]" type="hidden" />
171           [% END %]
172       [% ELSE %]
173           [% IF ( mylibraryfirst ) %]
174                <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
175           [% END %]
176       [% END %]
177    [% END %]
178
179
180     <input type="submit" value="Go" id="searchsubmit" class="left" />
181 [% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %]
182
183     <div class="clear"></div>
184
185     </form>
186 [% ELSE %] <!--advsearch -->
187     [% IF ( OpacAddMastheadLibraryPulldown ) %]
188         [% IF ( OpacShowFiltersPulldownMobile and not OpacShowLibrariesPulldownMobile ) or ( not OpacShowFiltersPulldownMobile and OpacShowLibrariesPulldownMobile ) %]
189             <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries single-field-mobile">
190         [% ELSE %]
191             <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="multi-libraries">
192         [% END %]
193     [% ELSE %]
194         <form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform" class="single-library">
195     [% END %]
196     <label for="masthead_search" class="left"> Search
197     [% UNLESS ( OpacAddMastheadLibraryPulldown ) %]
198             [% IF ( mylibraryfirst ) %] (in [% mylibraryfirst %] only)[% END %]
199     [% END %]
200     </label>
201     [% IF ( OpacShowFiltersPulldownMobile ) %]
202         <div id="filters" class="transparent">
203     [% ELSE %]
204         <div id="filters" class="transparent mobile-hidden">
205     [% END %]
206         <select name="idx" id="masthead_search" class="left" disabled="disabled">
207             <option selected="selected" value="">Library Catalog</option>
208         </select>
209     </div>
210
211 <div class="input-wrapper">
212     <input type="text" id = "transl1" name="q" class="left transparent" style="width: 35%; font-size: 111%;" disabled="disabled"/><div id="translControl"></div>
213 </div>
214
215    [% IF ( OpacAddMastheadLibraryPulldown ) %]
216         [% IF ( OpacShowLibrariesPulldownMobile ) %]
217             <div id="libraries">
218         [% ELSE %]
219             <div id="libraries" class="mobile-hidden">
220         [% END %]
221           <select name="limit" id="select_library" class="left transparent">
222              <option value="">All Libraries</option>
223           </select>
224         </div>
225    [% END %]
226
227
228     <input type="submit" value="Go" id="searchsubmit" class="left transparent" disabled="disabled" />
229 [% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %]
230
231     <div class="clear"></div>
232
233     </form>
234 [% END %]
235
236 <div id="moresearches">
237 <a href="/cgi-bin/koha/opac-search.pl">Advanced search</a>
238 [% IF ( OpacBrowser ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a>[% END %]
239 [% IF ( OpacAuthorities ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-authorities-home.pl">Browse by author or subject</a>[% END %]
240 [% IF ( opacuserlogin && reviewson && OpacShowRecentComments ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a>[% END %]
241 [% IF ( TagsEnabled ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a>[% END %]
242 [% IF ( OpacCloud ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a>[% END %]
243 [% IF ( OpacTopissue ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a>[% END %]
244 [% IF ( suggestion ) %]
245   [% IF ( AnonSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
246   [% ELSIF ( OPACViewOthersSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
247   [% END %]
248 [% END %]
249 </div>
250  </div>
251 </div>
252
253 <div id="libraryname">
254     [% IF ( opacheader ) %]
255         <h1>
256             [% opacheader %]
257         </h1>
258   [% END %]
259 </div>
260
261 [% END %]  <!-- OpacPublic -->
262
263 </div>
264 </div>
265
266 <div id="container">
267 <div id="ctn_lt">
268 <div id="ctn_rt">
269 <div id="ctn_lb">
270 <div id="ctn_rb">
271
272 <div id="breadcrumbs" class="yui-g">
273 <p><a href="/cgi-bin/koha/opac-main.pl" title="Home">Home</a>
274 [% IF ( searchdesc ) %]<span class="rsaquo"> &rsaquo; </span><a href="/cgi-bin/koha/opac-search.pl" title="Search">Search</a><span class="rsaquo"> &rsaquo; </span>
275 [% IF ( total ) %]<strong>Your search returned [% total |html %] results.</strong>
276 [% IF ( related ) %] (related searches: [% FOREACH relate IN related %][% relate.related_search %][% END %]). [% END %]
277 <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">
278 <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>
279 [% ELSE %]
280 <strong>No results found!</strong>
281 <p>
282     [% IF ( searchdesc ) %]
283     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>
284     [% ELSE %]
285     You did not specify any search criteria.
286     [% END %]
287 </p>
288 [% IF ( OPACNoResultsFound ) %]
289 <div id="noresultsfound">
290 [% OPACNoResultsFound %]
291 </div>
292 [% END %]
293
294 </div>
295 [% END %]</p>[% END %]</div>
296
297 <div class="ctn_in">