Bug 6975: OPACBaseurl instead of OPACBaseURL
[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             [% IF ( BranchesLoo.selected ) %]<option select="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" class=""><i></i><span><i></i><span></span>Lists </span></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" class=""><i></i><span><i></i><span></span>Lists </span></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 ( TagsEnabled ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags.pl">Tag Cloud</a>[% END %]
116 [% IF ( OpacCloud ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-tags_subject.pl">Subject Cloud</a>[% END %]
117 [% IF ( OpacTopissue ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-topissues.pl">Most Popular</a>[% END %]
118 [% IF ( suggestion ) %]
119   [% IF ( AnonSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a>
120   [% ELSIF ( OPACViewOthersSuggestions ) %]<span class="pipe"> | </span><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase Suggestions</a>
121   [% END %]
122 [% END %]
123 </div>
124  </div>
125 </div>
126
127 [% END %]  <!-- OpacPublic --> 
128
129 [% IF ( opacbookbag ) %]<div id="cartDetails">Your cart is empty.</div>[% END %]
130
131 [% IF ( virtualshelves ) %]
132 <div id="listsmenu" class="yuimenu" style="display: none">
133     <div class="bd">
134         <h4>Public Lists</h4>
135                 [% IF ( pubshelves ) %]
136                         <ul class="first-of-type">
137                         [% FOREACH pubshelvesloo IN pubshelvesloop %]
138                         <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% pubshelvesloo.shelfnumber %]&amp;sortfield=[% pubshelvesloo.sortfield %]">[% pubshelvesloo.shelfname |html %]</a></li>
139                         [% END %]
140                         </ul>   
141                 [% ELSE %]
142                         No Public Lists
143                 [% END %]
144                 [% IF ( pubtotal ) %]
145                         <ul class="second-of-type">
146             <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">View all [% pubtotal %] public lists</a></li>
147                         </ul>
148                 [% END %]
149   [% IF ( opacuserlogin ) %]
150     [% IF ( loggedinusername ) %]
151 <h4>Your Lists</h4>
152                 [% IF ( barshelves ) %]
153                         <ul class="first-of-type">
154                         [% FOREACH barshelvesloo IN barshelvesloop %]
155                         <li class="yuimenuitem"><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% barshelvesloo.shelfnumber %]&amp;sortfield=[% barshelvesloo.sortfield %]">[% barshelvesloo.shelfname |html %]</a></li>
156                         [% END %]
157                         </ul>   
158                 [% ELSE %]
159                         No Private Lists
160                 [% END %]
161                 [% IF ( bartotal ) %]
162                         <ul class="second-of-type">
163             <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">View all [% bartotal %] of your private lists</a></li>
164                         </ul>
165                 [% END %]
166                 <ul class="second-of-type">
167         <li class="yuimenuitem"><a class="yuimenuitemlabel" href="/cgi-bin/koha/opac-shelves.pl">Manage Lists</a></li>
168         </ul>
169     [% 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>
170     [% END %]
171   [% END %]
172           </div>
173 </div><!-- /listmenu /virtualshelves -->
174 [% END %]
175 <div id="listsDetails"></div>
176 </div>
177 </div>
178 <div id="breadcrumbs" class="yui-g">
179 [% 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 %]
180 <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>
181 [% ELSE %]
182 <strong>No Results Found!</strong>
183 <p>
184     [% IF ( searchdesc ) %]
185     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>
186     [% ELSE %]
187     You did not specify any search criteria.
188     [% END %]
189 </p>
190 [% IF ( OPACNoResultsFound ) %]
191 <div id="noresultsfound">
192 [% OPACNoResultsFound %]
193 </div>
194 [% END %]
195
196 </div>
197 [% END %]</p>[% END %]</div>