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