Bug #6143 - New feature: capability to limit the RSS results
[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(_('Are you sure you want to delete your 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" style="max-width:10em;width:10em;">
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" 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" 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="masthead_search" class="left" style="max-width:10em;width:10em;">
81          <option value="">All Libraries</option>
82          [% FOREACH BranchesLoo IN BranchesLoop %]
83             <option [% IF ( BranchesLoo.selected ) %]SELECTED[% END %] value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
84          [% END %]
85       </select>
86    [% ELSE %]
87       [% IF ( opac_limit_override ) %]
88           [% IF ( opac_search_limit ) %]
89             <input name="limit" value="[% opac_search_limit %]" type="hidden" />
90           [% END %]
91       [% ELSE %]
92           [% IF ( mylibraryfirst ) %] 
93                <input name="limit" value="branch:[% mylibraryfirst %]" type="hidden" />
94           [% END %]
95       [% END %]
96    [% END %]
97
98
99     <input type="submit" value="Go" id="searchsubmit" class="left" />
100 [% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %]
101
102 [% IF ( virtualshelves ) %]<a href="/cgi-bin/koha/opac-shelves.pl" id="listsmenulink" class=""><i></i><span><i></i><span></span>Lists </span></a>[% END %]
103     </form>
104 [% ELSE %]
105 <div style="width:80%;*margin-bottom:-30px;">
106 [% IF ( virtualshelves ) %]<a href="/cgi-bin/koha/opac-shelves.pl" id="listsmenulink" class=""><i></i><span><i></i><span></span>Lists </span></a>[% END %][% IF ( opacbookbag ) %]<span id="cmspan"></span>[% END %]
107 </div>
108 [% END %]
109
110 <div id="moresearches">
111 <a href="/cgi-bin/koha/opac-search.pl">Advanced Search</a>
112 [% IF ( OpacBrowser ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by Hierarchy</a>[% END %]
113 [% IF ( OpacAuthorities ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-authorities-home.pl">Browse by author or subject</a>[% END %]
114 [% IF ( TagsEnabled ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag Cloud</a>[% END %]
115 [% IF ( OpacCloud ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject Cloud</a>[% END %]
116 [% IF ( OpacTopissue ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most Popular</a>[% END %]
117 [% IF ( suggestion ) %]
118   [% IF ( AnonSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a>
119   [% ELSIF ( OPACViewOthersSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a>
120   [% END %]
121 [% END %]
122 </div>
123  </div>
124 </div>
125
126 [% END %]  <!-- OpacPublic --> 
127
128 [% IF ( opacbookbag ) %]<div id="cartDetails">Your cart is empty.</div>[% END %]
129
130 [% IF ( virtualshelves ) %]
131 <div id="listsmenu" class="yuimenu" style="display: none">
132     <div class="bd">
133         <h4>Public Lists</h4>
134                 [% IF ( pubshelves ) %]
135                         <ul class="first-of-type">
136                         [% FOREACH pubshelvesloo IN pubshelvesloop %]
137                         <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% pubshelvesloo.shelfnumber %]&amp;sortfield=[% pubshelvesloo.sortfield %]">[% pubshelvesloo.shelfname |html %]</a></li>
138                         [% END %]
139                         </ul>   
140                 [% ELSE %]
141                         No Public Lists
142                 [% END %]
143                 [% IF ( pubtotal ) %]
144                         <ul class="second-of-type">
145             <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">View all [% pubtotal %] public lists</a></li>
146                         </ul>
147                 [% END %]
148   [% IF ( opacuserlogin ) %]
149     [% IF ( loggedinusername ) %]
150 <h4>Your Lists</h4>
151                 [% IF ( barshelves ) %]
152                         <ul class="first-of-type">
153                         [% FOREACH barshelvesloo IN barshelvesloop %]
154                         <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% barshelvesloo.shelfnumber %]&amp;sortfield=[% barshelvesloo.sortfield %]">[% barshelvesloo.shelfname |html %]</a></li>
155                         [% END %]
156                         </ul>   
157                 [% ELSE %]
158                         No Private Lists
159                 [% END %]
160                 [% IF ( bartotal ) %]
161                         <ul class="second-of-type">
162             <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">View all [% bartotal %] of your private lists</a></li>
163                         </ul>
164                 [% END %]
165                 <ul class="second-of-type">
166         <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl">Manage Lists</a></li>
167         </ul>
168     [% ELSE %]<ul class="first-of-type"><li><a href="/cgi-bin/koha/opac-user.pl">Log in to Create Your Own Lists</a></li></ul>
169     [% END %]
170   [% END %]
171           </div>
172 </div><!-- /listmenu /virtualshelves -->
173 [% END %]
174 <div id="listsDetails"></div>
175 </div>
176 </div>
177 <div id="breadcrumbs" class="yui-g">
178 [% IF ( searchdesc ) %]<p>[% IF ( total ) %]<strong>&ldquo;[% query_desc |html %] [% limit_desc |html %]&rdquo; </strong>returned [% total |html %] results. [% IF ( related ) %] (related searches: [% FOREACH relate IN related %][% relate.related_search %][% END %]). [% END %]
179 <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"><img src="/opac-tmpl/prog/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" /></a>
180 [% ELSE %]
181 <strong>No Results Found!</strong>
182 <p>
183     [% IF ( searchdesc ) %]
184     No results match your search for <span style="font-weight: bold;">&ldquo;[% query_desc |html %] [% limit_desc |html %]&rdquo;</span> in [% LibraryName %] Catalog. <a href="[% OPACBaseurl %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;format=rss2"><img src="/opac-tmpl/prog/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" /></a>
185     [% ELSE %]
186     You did not specify any search criteria.
187     [% END %]
188 </p>
189 [% IF ( OPACNoResultsFound ) %]
190 <div id="noresultsfound">
191 [% OPACNoResultsFound %]
192 </div>
193 [% END %]
194
195 </div>
196 [% END %]</p>[% END %]</div>