Bug 2774 - Path to theme is hard-coded in many places
[koha.git] / koha-tmpl / opac-tmpl / prog / en / includes / masthead.inc
1 <div id="header-wrapper"><div id="members">
2   [% IF ( opacuserlogin ) %]
3         <ul>
4 [% UNLESS ( loggedinusername ) %]
5                <li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>[% END %]
6             [% IF ( loggedinusername ) %]
7                 <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>
8
9             [% END %]
10             [% IF ( ShowOpacRecentSearchLink ) %]
11                 <li><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>]</li>
12             [% END %]
13                         [% 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 %]
14         </ul>   
15   [% END %]
16 </div>
17   [% IF ( opacheader ) %]
18         [% opacheader %]
19   [% END %]
20 <div id="opac-main-search" class="yui-g">
21    [% IF ( opacsmallimage ) %]
22    <h1 id="libraryname" style="background-image: url('[% opacsmallimage %]');">
23    [% ELSE %]
24    <h1 id="libraryname">
25    [% END %]<a href="/cgi-bin/koha/opac-main.pl">[% IF ( LibraryName ) %][% LibraryName %][% ELSE %]Koha Online Catalog[% END %]</a></h1>
26
27 <div id="fluid">
28
29 [% IF ( OpacPublic ) %]
30 <div id="fluid-offset">
31 [% UNLESS ( advsearch ) %]<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform">
32     <label for="masthead_search" class="left"> Search 
33         [% UNLESS ( OpacAddMastheadLibraryPulldown ) %]
34             [% IF ( mylibraryfirst ) %] (in [% mylibraryfirst %] only)[% END %]
35         [% END %]
36     </label>
37
38         <select name="idx" id="masthead_search" class="left">
39         [% IF ( ms_kw ) %]
40         <option selected="selected" value="">Library catalog</option>
41                 [% ELSE %]
42         <option value="">Library catalog</option>
43                 [% END %]
44                 [% IF ( ms_ti ) %]
45         <option selected="selected" value="ti">Title</option>
46                 [% ELSE %]
47         <option value="ti">Title</option>
48                 [% END %]
49                 [% IF ( ms_au ) %]
50         <option selected="selected" value="au">Author</option>
51                 [% ELSE %]
52         <option value="au">Author</option>
53                 [% END %]
54                 [% IF ( ms_su ) %]
55         <option selected="selected" value="su">Subject</option>
56                 [% ELSE %]
57         <option value="su">Subject</option>
58                 [% END %]
59                 [% IF ( ms_nb ) %]
60                 <option selected="selected" value="nb">ISBN</option>
61                 [% ELSE %]
62                 <option value="nb">ISBN</option>
63                 [% END %]
64                 [% IF ( ms_se ) %]
65         <option selected="selected" value="se">Series</option>
66                 [% ELSE %]
67         <option value="se">Series</option>
68                 [% END %]
69                 [% IF ( numbersphr ) %]
70                 [% IF ( ms_callnum ) %]
71         <option selected="selected" value="callnum,phr">Call number</option>
72                 [% ELSE %]
73         <option value="callnum,phr">Call number</option>
74                 [% END %]
75                 [% ELSE %]
76                 [% IF ( ms_callnum ) %]
77         <option selected="selected" value="callnum">Call number</option>
78                 [% ELSE %]
79         <option value="callnum">Call number</option>
80                 [% END %]
81                 [% END %]</select>
82 [% IF ( ms_value ) %]
83         <input type="text" title="Type search term" id = "transl1" name="q" value="[% ms_value |html %]" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
84 [% ELSE %]
85         <input type="text" title="Type search term" id = "transl1" name="q" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
86 [% END %]
87    [% IF ( OpacAddMastheadLibraryPulldown ) %]
88       <select name="branch_group_limit" id="select_library" class="left">
89          <option value="">All libraries</option>
90          <optgroup label="Libraries">
91              [% FOREACH BranchesLoo IN BranchesLoop %]
92                 [% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
93                 [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
94              [% END %]
95          </optgroup>
96          [% IF BranchCategoriesLoop %]
97              <optgroup label="Groups">
98                  [% FOREACH bc IN BranchCategoriesLoop %]
99                      [% IF ( bc.selected ) %]
100                          <option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
101                      [% ELSE %]
102                          <option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
103                      [% END %]
104                  [% END %]
105              </optgroup>
106          [% END %]
107       </select>
108    [% ELSE %]
109       [% IF ( opac_limit_override ) %]
110           [% IF ( opac_search_limit ) %]
111             <input name="limit" value="[% opac_search_limit %]" type="hidden" />
112           [% END %]
113       [% ELSE %]
114           [% IF ( mylibraryfirst ) %] 
115                <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
116           [% END %]
117       [% END %]
118    [% END %]
119
120
121     <input type="submit" value="Go" id="searchsubmit" class="left" />
122 [% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %]
123
124 [% IF ( virtualshelves ) %]<a href="/cgi-bin/koha/opac-shelves.pl" id="listsmenulink">Lists</a>[% END %]
125     </form>
126 [% ELSE %]
127 <div style="width:80%;*margin-bottom:-30px;">
128 [% IF ( virtualshelves ) %]<a href="/cgi-bin/koha/opac-shelves.pl" id="listsmenulink">Lists</a>[% END %][% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %]
129 </div>
130 [% END %]
131
132 <div id="moresearches">
133 <a href="/cgi-bin/koha/opac-search.pl">Advanced search</a>
134 [% IF ( OpacBrowser ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a>[% END %]
135 [% IF ( OpacAuthorities ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>[% END %]
136 [% IF ( opacuserlogin && reviewson && OpacShowRecentComments ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a>[% END %]
137 [% IF ( TagsEnabled ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a>[% END %]
138 [% IF ( OpacCloud ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a>[% END %]
139 [% IF ( OpacTopissue ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a>[% END %]
140 [% IF ( suggestion ) %]
141   [% IF ( AnonSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
142   [% ELSIF ( OPACViewOthersSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
143   [% END %]
144 [% END %]
145 </div>
146  </div>
147 </div>
148
149 [% END %]  <!-- OpacPublic --> 
150
151 [% IF ( opacbookbag ) %]<div id="cartDetails">Your cart is empty.</div>[% END %]
152
153 [% IF ( virtualshelves ) %]
154 <div id="listsmenu" class="yuimenu" style="display: none">
155     <div class="bd">
156     <h4>Public lists</h4>
157                 [% IF ( pubshelves ) %]
158                         <ul class="first-of-type">
159                         [% FOREACH pubshelvesloo IN pubshelvesloop %]
160                         <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% pubshelvesloo.shelfnumber %]&amp;sortfield=[% pubshelvesloo.sortfield %]">[% pubshelvesloo.shelfname |html %]</a></li>
161                         [% END %]
162                         <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">[View All]</a></li>
163         </ul>
164                 [% ELSE %]
165         No public lists
166                 [% END %]
167   [% IF ( opacuserlogin ) %]
168     <h4>Your lists</h4>
169         [% IF ( loggedinusername ) %]
170                 [% IF ( barshelves ) %]
171                         <ul class="first-of-type">
172                         [% FOREACH barshelvesloo IN barshelvesloop %]
173                         <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% barshelvesloo.shelfnumber %]&amp;sortfield=[% barshelvesloo.sortfield %]">[% barshelvesloo.shelfname |html %]</a></li>
174                         [% END %]
175         <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[View all]</a></li>
176         </ul>
177                 [% ELSE %]
178                         <ul class="first-of-type">
179         <li>No private lists</li>
180         <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[New list]</a></li></ul>
181                 [% END %]
182         [% ELSE %]
183         <ul class="first-of-type"><li><a href="/cgi-bin/koha/opac-user.pl">Log in to create your own lists</a></li></ul>
184         [% END %]
185   [% END %]
186           </div>
187 </div><!-- /listmenu /virtualshelves -->
188 [% END %]
189 <div id="listsDetails"></div>
190 </div>
191 </div>
192 <div id="breadcrumbs" class="yui-g">
193 [% IF ( searchdesc ) %]<p>[% IF ( total ) %]<strong>Your search returned [% total |html %] results.</strong> [% IF ( related ) %] (related searches: [% FOREACH relate IN related %][% relate.related_search %][% END %]). [% END %]
194 <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html |url %][% limit_cgi |html | url %]&amp;count=[% countrss |html %]&amp;sort_by=acqdate_dsc&amp;format=rss2" class="rsssearchlink"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" class="rsssearchicon"/></a>
195 [% ELSE %]
196 <strong>No results found!</strong>
197 <p>
198     [% IF ( searchdesc ) %]
199     No results found for that in [% LibraryName %] catalog. <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html | url %][% limit_cgi | html | url %]&amp;format=rss2" class="rsssearchlink"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a>
200     [% ELSE %]
201     You did not specify any search criteria.
202     [% END %]
203 </p>
204 [% IF ( OPACNoResultsFound ) %]
205 <div id="noresultsfound">
206 [% OPACNoResultsFound %]
207 </div>
208 [% END %]
209
210 </div>
211 [% END %]</p>[% END %]</div>