Merge branch 'bug_8942' into 3.12-master
[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><a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">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 ( ms_callnum ) %]
70         <option selected="selected" value="callnum">Call number</option>
71                 [% ELSE %]
72         <option value="callnum">Call number</option>
73                 [% END %]</select>
74 [% IF ( ms_value ) %]
75         <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>
76 [% ELSE %]
77         <input type="text" title="Type search term" id = "transl1" name="q" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
78 [% END %]
79    [% IF ( OpacAddMastheadLibraryPulldown ) %]
80       <select name="limit" id="select_library" class="left">
81          <option value="">All libraries</option>
82          [% FOREACH BranchesLoo IN BranchesLoop %]
83             [% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
84             [% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
85          [% END %]
86       </select>
87    [% ELSE %]
88       [% IF ( opac_limit_override ) %]
89           [% IF ( opac_search_limit ) %]
90             <input name="limit" value="[% opac_search_limit %]" type="hidden" />
91           [% END %]
92       [% ELSE %]
93           [% IF ( mylibraryfirst ) %] 
94                <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
95           [% END %]
96       [% END %]
97    [% END %]
98
99
100     <input type="submit" value="Go" id="searchsubmit" class="left" />
101 [% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %]
102
103 [% IF ( virtualshelves ) %]<a href="/cgi-bin/koha/opac-shelves.pl" id="listsmenulink">Lists</a>[% END %]
104     </form>
105 [% ELSE %]
106 <div style="width:80%;*margin-bottom:-30px;">
107 [% IF ( virtualshelves ) %]<a href="/cgi-bin/koha/opac-shelves.pl" id="listsmenulink">Lists</a>[% END %][% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %]
108 </div>
109 [% END %]
110
111 <div id="moresearches">
112 <a href="/cgi-bin/koha/opac-search.pl">Advanced search</a>
113 [% IF ( OpacBrowser ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by hierarchy</a>[% END %]
114 [% IF ( OpacAuthorities ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-authorities-home.pl">Browse by author or subject</a>[% END %]
115 [% IF ( opacuserlogin && reviewson && OpacShowRecentComments ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-showreviews.pl">Recent comments</a>[% END %]
116 [% IF ( TagsEnabled ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag cloud</a>[% END %]
117 [% IF ( OpacCloud ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject cloud</a>[% END %]
118 [% IF ( OpacTopissue ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a>[% END %]
119 [% IF ( suggestion ) %]
120   [% IF ( AnonSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
121   [% ELSIF ( OPACViewOthersSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a>
122   [% END %]
123 [% END %]
124 </div>
125  </div>
126 </div>
127
128 [% END %]  <!-- OpacPublic --> 
129
130 [% IF ( opacbookbag ) %]<div id="cartDetails">Your cart is empty.</div>[% END %]
131
132 [% IF ( virtualshelves ) %]
133 <div id="listsmenu" class="yuimenu" style="display: none">
134     <div class="bd">
135     <h4>Public lists</h4>
136                 [% IF ( pubshelves ) %]
137                         <ul class="first-of-type">
138                         [% FOREACH pubshelvesloo IN pubshelvesloop %]
139                         <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% pubshelvesloo.shelfnumber %]&amp;sortfield=[% pubshelvesloo.sortfield %]">[% pubshelvesloo.shelfname |html %]</a></li>
140                         [% END %]
141                         <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">[View All]</a></li>
142         </ul>
143                 [% ELSE %]
144         No public lists
145                 [% END %]
146   [% IF ( opacuserlogin ) %]
147     <h4>Your lists</h4>
148         [% IF ( loggedinusername ) %]
149                 [% IF ( barshelves ) %]
150                         <ul class="first-of-type">
151                         [% FOREACH barshelvesloo IN barshelvesloop %]
152                         <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% barshelvesloo.shelfnumber %]&amp;sortfield=[% barshelvesloo.sortfield %]">[% barshelvesloo.shelfname |html %]</a></li>
153                         [% END %]
154         <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[View all]</a></li>
155         </ul>
156                 [% ELSE %]
157                         <ul class="first-of-type">
158         <li>No private lists</li>
159         <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">[New list]</a></li></ul>
160                 [% END %]
161         [% ELSE %]
162         <ul class="first-of-type"><li><a href="/cgi-bin/koha/opac-user.pl">Log in to create your own lists</a></li></ul>
163         [% END %]
164   [% END %]
165           </div>
166 </div><!-- /listmenu /virtualshelves -->
167 [% END %]
168 <div id="listsDetails"></div>
169 </div>
170 </div>
171 <div id="breadcrumbs" class="yui-g">
172 [% 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 %]
173 <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"><img src="/opac-tmpl/prog/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a>
174 [% ELSE %]
175 <strong>No results found!</strong>
176 <p>
177     [% IF ( searchdesc ) %]
178     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/prog/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a>
179     [% ELSE %]
180     You did not specify any search criteria.
181     [% END %]
182 </p>
183 [% IF ( OPACNoResultsFound ) %]
184 <div id="noresultsfound">
185 [% OPACNoResultsFound %]
186 </div>
187 [% END %]
188
189 </div>
190 [% END %]</p>[% END %]</div>