BZ 4028 : OPAC search history available to non-logged-in users
[koha.git] / koha-tmpl / opac-tmpl / prog / en / includes / masthead.inc
blob11c6f30196dba990571697529dd6dba5a7d990a4
1 <div id="header-wrapper"><div id="members">
2   <!-- TMPL_IF NAME="opacuserlogin" -->
3         <ul>
4             <!-- TMPL_IF NAME="ShowOpacRecentSearchLink" -->
5                 <li><a href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> [<a href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history" onclick="javascript:return confirm(_('Are you sure you want to delete your search history?'));">x</a>]</li>
6             <!-- /TMPL_IF -->
8             <!-- TMPL_IF NAME="loggedinusername" -->
9                 <li><span class="members">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername"><!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --><!-- /TMPL_LOOP --></span></a></span></li>
10                 <li><a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log Out</a></li>
11             <!-- TMPL_ELSE -->
12                 <li><a href="/cgi-bin/koha/opac-user.pl">Log in to Your Account</a></li>
13             <!-- /TMPL_IF -->
14         </ul>   
15   <!-- /TMPL_IF -->
16 </div>
17   <!-- TMPL_IF NAME="opacheader" -->
18         <!-- TMPL_VAR NAME="opacheader" -->
19   <!-- /TMPL_IF -->
20 <div id="opac-main-search" class="yui-g">
21    <!-- TMPL_IF NAME="opacsmallimage" -->
22    <h1 id="libraryname" style="background-image: url('<!-- TMPL_VAR NAME="opacsmallimage" -->');">
23    <!-- TMPL_ELSE -->
24    <h1 id="libraryname">
25    <!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-main.pl"><!-- TMPL_IF NAME="LibraryName" --><!-- TMPL_VAR NAME="LibraryName" --><!-- TMPL_ELSE -->Koha Online Catalog<!-- /TMPL_IF --></a></h1>
27 <div id="fluid">
28 <div id="fluid-offset">
29 <!-- TMPL_UNLESS NAME="advsearch" --><form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform">
30     <label for="masthead_search" class="left"> Search <!-- TMPL_IF name="mylibraryfirst" --> (in <!-- TMPL_VAR name="mylibraryfirst" --> only)<!-- /TMPL_IF --></label>
31         <select name="idx" id="masthead_search" class="left" style="max-width:10em;width:10em;">
32         <!-- TMPL_IF NAME="ms_kw" -->
33         <option selected="selected" value="">Library Catalog</option>
34                 <!-- TMPL_ELSE -->
35         <option value="">Library Catalog</option>
36                 <!-- /TMPL_IF -->
37                 <!-- TMPL_IF NAME="ms_ti" -->
38         <option selected="selected" value="ti">Title</option>
39                 <!-- TMPL_ELSE -->
40         <option value="ti">Title</option>
41                 <!-- /TMPL_IF -->
42                 <!-- TMPL_IF NAME="ms_au" -->
43         <option selected="selected" value="au">Author</option>
44                 <!-- TMPL_ELSE -->
45         <option value="au">Author</option>
46                 <!-- /TMPL_IF -->
47                 <!-- TMPL_IF NAME="ms_su" -->
48         <option selected="selected" value="su">Subject</option>
49                 <!-- TMPL_ELSE -->
50         <option value="su">Subject</option>
51                 <!-- /TMPL_IF -->
52                 <!-- TMPL_IF NAME="ms_nb" -->
53                 <option selected="selected" value="nb">ISBN</option>
54                 <!-- TMPL_ELSE -->
55                 <option value="nb">ISBN</option>
56                 <!-- /TMPL_IF -->
57                 <!-- TMPL_IF NAME="ms_se" -->
58         <option selected="selected" value="se">Series</option>
59                 <!-- TMPL_ELSE -->
60         <option value="se">Series</option>
61                 <!-- /TMPL_IF -->
62                 <!-- TMPL_IF NAME="ms_callnum" -->
63         <option selected="selected" value="callnum">Call Number</option>
64                 <!-- TMPL_ELSE -->
65         <option value="callnum">Call Number</option>
66                 <!-- /TMPL_IF --></select>
67 <!-- TMPL_IF NAME="ms_value" -->
68         <input type="text" id = "transl1" name="q" value="<!-- TMPL_VAR ESCAPE="HTML" NAME="ms_value" -->" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
69 <!-- TMPL_ELSE -->
70         <input type="text" id = "transl1" name="q" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
71 <!-- /TMPL_IF -->
72    <!-- TMPL_UNLESS NAME="opac_limit_override" -->
73        <!-- TMPL_IF name="mylibraryfirst" --> 
74             <input name="limit" value="branch:<!-- TMPL_VAR name="mylibraryfirst" -->" type="hidden" />
75        <!-- /TMPL_IF -->
76     <!-- /TMPL_UNLESS -->
77     <!-- TMPL_IF NAME="opac_search_limit" -->
78         <input name="limit" value="<!-- TMPL_VAR name="opac_search_limit" -->" type="hidden" />
79     <!-- /TMPL_IF -->
80     <input type="submit" value="Go" id="searchsubmit" class="left" />
81 <!-- TMPL_IF NAME="opacbookbag" --><span id="cmspan"></span><!-- /TMPL_IF -->
83 <!--TMPL_IF NAME="virtualshelves" --><a href="/cgi-bin/koha/opac-shelves.pl" id="listsmenulink" class=""><i></i><span><i></i><span></span>Lists </span></a><!-- /TMPL_IF -->
84     </form>
85 <!-- TMPL_ELSE -->
86 <div style="width:80%;*margin-bottom:-30px;">
87 <!--TMPL_IF NAME="virtualshelves" --><a href="/cgi-bin/koha/opac-shelves.pl" id="listsmenulink" class=""><i></i><span><i></i><span></span>Lists </span></a><!-- /TMPL_IF --><!-- TMPL_IF NAME="opacbookbag" --><span id="cmspan"></span><!-- /TMPL_IF -->
88 </div>
89 <!-- /TMPL_UNLESS -->
91 <div id="moresearches">
92 <a href="/cgi-bin/koha/opac-search.pl">Advanced Search</a>
93 <!-- TMPL_IF NAME="OpacBrowser"     --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-browser.pl">Browse by Hierarchy</a><!-- /TMPL_IF -->
94 <!-- TMPL_IF NAME="OpacAuthorities" --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-authorities-home.pl">Browse by Subject</a><!-- /TMPL_IF -->
95 <!-- TMPL_IF NAME="TagsEnabled"     --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag Cloud</a><!-- /TMPL_IF -->
96 <!-- TMPL_IF NAME="OpacCloud"       --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject Cloud</a><!-- /TMPL_IF -->
97 <!-- TMPL_IF NAME="OpacTopissue"    --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most Popular</a><!-- /TMPL_IF -->
98 <!-- TMPL_IF NAME="suggestion" -->
99   <!-- TMPL_IF NAME="AnonSuggestions" --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a>
100   <!-- TMPL_ELSIF NAME="OPACViewOthersSuggestions" --><span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a>
101   <!-- /TMPL_IF -->
102 <!-- /TMPL_IF -->
103 </div>
104  </div>
105 </div>
107 <!-- TMPL_IF NAME="opacbookbag" --><div id="cartDetails">Your cart is empty.</div><!-- /TMPL_IF -->
109 <!-- TMPL_IF NAME="virtualshelves" -->
110 <div id="listsmenu" class="yuimenu" style="display: none">
111     <div class="bd">
112         <h4>Public Lists</h4>
113                 <!-- TMPL_IF NAME="pubshelves" -->
114                         <ul class="first-of-type">
115                         <!-- TMPL_LOOP NAME="pubshelvesloop" -->
116                         <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelfnumber" -->&amp;sortfield=<!-- TMPL_VAR NAME="sortfield" -->"><!-- TMPL_VAR NAME="shelfname"  ESCAPE="html" --></a></li>
117                         <!-- /TMPL_LOOP -->
118                         </ul>   
119                 <!-- TMPL_ELSE -->
120                         No Public Lists
121                 <!-- /TMPL_IF -->
122                 <!-- TMPL_IF NAME="pubtotal" -->
123                         <ul class="second-of-type">
124             <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">View all <!--TMPL_VAR NAME="pubtotal" --> public lists</a></li>
125                         </ul>
126                 <!-- /TMPL_IF -->
127   <!-- TMPL_IF NAME="opacuserlogin" -->
128     <!-- TMPL_IF NAME="loggedinusername" -->
129 <h4>Your Lists</h4>
130                 <!-- TMPL_IF NAME="barshelves" -->
131                         <ul class="first-of-type">
132                         <!-- TMPL_LOOP NAME="barshelvesloop" -->
133                         <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelfnumber" -->&amp;sortfield=<!-- TMPL_VAR NAME="sortfield" -->"><!-- TMPL_VAR NAME="shelfname"  ESCAPE="html" --></a></li>
134                         <!-- /TMPL_LOOP -->
135                         </ul>   
136                 <!-- TMPL_ELSE -->
137                         No Private Lists
138                 <!-- /TMPL_IF -->
139                 <!-- TMPL_IF NAME="bartotal" -->
140                         <ul class="second-of-type">
141             <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">View all <!--TMPL_VAR NAME="bartotal" --> of your lists</a></li>
142                         </ul>
143                 <!-- /TMPL_IF -->
144                 <ul class="second-of-type">
145         <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl">Manage Lists</a></li>
146         </ul>
147     <!-- TMPL_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>
148     <!-- /TMPL_IF -->
149   <!-- /TMPL_IF -->
150           </div>
151 </div><!-- /listmenu /virtualshelves -->
152 <!-- /TMPL_IF -->
153 <div id="listsDetails"></div>
154 </div>
155 </div>
156 <div id="breadcrumbs" class="yui-g">
157 <!-- TMPL_IF NAME="searchdesc" --><p><!-- TMPL_IF name="total" --><strong>&ldquo;<!-- TMPL_VAR NAME="query_desc" ESCAPE="HTML"--> <!-- TMPL_VAR NAME="limit_desc" ESCAPE="HTML"-->&rdquo; </strong>returned <!-- TMPL_VAR NAME="total" ESCAPE="HTML"--> results. <!-- TMPL_IF NAME="related" --> (related searches: <!-- TMPL_LOOP NAME="related" --><!-- TMPL_VAR NAME="related_search" --><!-- /TMPL_LOOP -->). <!-- /TMPL_IF -->
158 <a href="<!-- TMPL_VAR NAME="OPACBaseURL" -->/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR name="query_cgi" ESCAPE="HTML" --><!-- TMPL_VAR NAME="limit_cgi"  ESCAPE="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>
159 <!-- TMPL_ELSE -->
160 <strong>No Result found!</strong>
162     <!-- TMPL_IF NAME="searchdesc" -->
163     No results match your search for <span style="font-weight: bold;">&ldquo;<!-- TMPL_VAR NAME="query_desc" ESCAPE="HTML" --> <!-- TMPL_VAR NAME="limit_desc" ESCAPE="HTML"-->&rdquo;</span> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog. <a href="<!-- TMPL_VAR NAME="OPACBaseURL" -->/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR name="query_cgi" ESCAPE="HTML" --><!-- TMPL_VAR NAME="limit_cgi" ESCAPE="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>
164     <!-- TMPL_ELSE -->
165     You did not specify any search criteria.
166     <!-- /TMPL_IF -->
167 </p>
168 </div>
169 <!-- /TMPL_IF --></p><!-- /TMPL_IF --></div>