searchdesc improvements, more opac fixes
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-results.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_VAR NAME="LibraryNameTitle" --> &rsaquo; 
3 <!-- TMPL_IF NAME="searchdesc" -->
4     Results of Search for '<!-- TMPL_VAR NAME="query_desc" --><!-- TMPL_VAR NAME="limit_desc" -->'
5 <!-- TMPL_ELSE -->
6     You did not specify any search criteria
7 <!-- /TMPL_IF -->
8
9 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
10 </head>
11 <body>
12 <!--TMPL_INCLUDE NAME="masthead.inc" -->
13
14 <div id="doc3" class="yui-t1">
15    <div id="bd">
16
17         <div id="yui-main">
18
19         <div class="yui-b">
20   <!-- TMPL_IF NAME="koha_spsuggest" -->
21         Did you mean:
22     <ul style="list-style: none;">
23         <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
24         <li>
25             <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
26         </li>
27         <!-- /TMPL_LOOP -->
28     </ul>
29 <!-- /TMPL_IF -->
30
31 <!-- TMPL_IF NAME="query_error" -->
32 <div class="error">
33         <h4>Error:</h4>
34     <!-- TMPL_VAR NAME="query_error" -->
35 </div>
36 <!-- /TMPL_IF -->       
37         
38 <!-- Search Results Table -->
39 <!-- TMPL_IF NAME="total" -->
40 <!-- TMPL_IF NAME="scan" -->
41     <h1>Scan Index:</h1>
42     <form action="/cgi-bin/koha/opac-search.pl" method="get">
43         <table>
44             <tr>
45                 <td>
46                     Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
47                 </td>
48             </tr>
49             <tr>
50                 <td>
51                     <label for="scan-index">Indexed in:</label>
52                     <select name="idx" id="scan-index">
53                         <option value="">Any Word</option>
54                         <option value="kw,phr:">Any Phrase</option>
55                         <option value="ti:">Title</option>
56                         <option value="ti,phr:">Title Phrase</option>
57                         <option value="au,phr:">Author</option>
58                         <option value="su:">Subject</option>
59                         <option value="su,phr:">Subject Phrase</option>
60                         <option value="se:">Series</option>
61                         <option value="pb:">Publisher</option>
62                         <option value="nt:">Notes</option>
63                         <option value="se:">Series Title</option>
64                         <option value="sn:">ISBN</option>
65                         <option value="ss:">ISSN</option>
66                     </select>
67                     <input type="hidden" name="scan" value="1" />
68                 </td>
69             </tr>
70         </table>
71     </form>
72     
73     <form action="/cgi-bin/koha/opac-search.pl" method="get">
74         <table>
75             <tr>
76                 <th>Term/Phrase</th>
77                 <th>Count</th>
78             </tr>
79             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
80             <tr<!-- TMPL_IF name="even" --> class="highlight"<!-- /TMPL_IF -->>
81                 <td>
82                     <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="scan_use" escape="url" -->&quot;<!-- TMPL_VAR NAME="title" -->&quot;"><!-- TMPL_VAR NAME="title" --></a>
83                 </td>
84                 <td>
85                     <!-- TMPL_VAR NAME="subtitle" -->
86                 </td>
87             </tr>
88             <!-- /TMPL_LOOP -->
89         </table>
90     </form>
91 <!-- TMPL_ELSE -->
92
93     <div class="searchresults">
94 <form action="/cgi-bin/koha/opac-search.pl" method="post" name="bookbag_form" id="bookbag_form">
95     
96     <!-- TMPL_IF NAME="query_cgi" -->
97     <input type="hidden" name="q" value="<!-- TMPL_VAR NAME="query_cgi" escape="html" --><!-- TMPL_VAR NAME="limit_cgi" escape="html" -->" />
98     <!-- /TMPL_IF -->
99     
100         
101
102                 
103         <!-- TABLE RESULTS START -->
104         <table>
105                 <tr><td colspan="3"><p class="searchresults">
106                 <!-- RE-SORT START --> <label><select id="sort_by" name="sort_by" onchange="document.bookbag_form.submit();"> <!--TMPL_INCLUDE Name="resort_form.inc"--> </select></label> <!-- RESORT END -->
107         
108         <!-- TMPL_IF name="opacbookbag" --><a href="#" onclick="SelectAll()"><img src="/opac-tmpl/prog/images/checkall.gif" alt="Check All" border="0" /></a>
109             <input type="button" class="icon shelf" value="Add checked items to book bag" onclick="addMultiple(); return false;" /> 
110             <input type="reset" value="Clear All" class="icon shelf" />
111         <!-- /TMPL_IF --></p></td></tr>
112             <!-- Actual Search Results -->
113             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
114             <!-- TMPL_IF name="even" -->
115                 <tr class="highlight">
116             <!-- TMPL_ELSE -->
117                 <tr>
118             <!-- /TMPL_IF -->
119                     <td><!-- TMPL_IF NAME="AmazonContent" -->
120                         <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
121                             <img src="<!-- TMPL_IF NAME="isbn" -->http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.TZZZZZZZ.jpg<!-- TMPL_ELSE -->http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif<!-- /TMPL_IF -->" alt="image" class="thumbnail" />
122                         </a>
123                         <!-- TMPL_ELSE -->
124                         <!-- TMPL_IF name="imageurl" -->
125                         <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
126                         <!-- TMPL_ELSE -->
127                         <!-- TMPL_VAR name="description" -->
128                         <!-- /TMPL_IF -->
129                         <!-- /TMPL_IF -->
130                     </td>
131                     <td><!-- TMPL_IF name="BiblioDefaultViewmarc" --><a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- TMPL_ELSE --><!-- TMPL_IF name="BiblioDefaultViewisbd" --><a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- TMPL_ELSE --><a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- /TMPL_IF --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="author" -->by <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->
132                                 <p> <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
133                                                 <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
134                                                 <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
135                                                 <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
136                                                 <!-- TMPL_IF name="notes" --> : <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
137                                                 <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
138                                                 <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF --></p>
139                                 <p class="availability">
140 <!-- TMPL_IF NAME="items_loop" -->
141 <span class="available"><strong>Copies available at:</strong> <!-- TMPL_LOOP NAME="items_loop" -->
142                 <!-- <!-- TMPL_VAR NAME="branchcode" --> -->
143                 <!-- TMPL_VAR NAME="branchname" -->
144                 (<!-- TMPL_VAR NAME="count" -->),
145 <!-- /TMPL_LOOP --></span>
146 <!-- TMPL_ELSE -->
147 <span class="unavailable">No copies available: </span>
148 <!-- /TMPL_IF -->
149 <span class="unavailable">
150 <!-- TMPL_IF NAME="onloancount" --> On loan (<!-- TMPL_VAR NAME="onloancount" -->), <!-- /TMPL_IF -->
151 <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->), <!-- /TMPL_IF -->
152 <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->)<!-- /TMPL_IF -->
153 <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF --></span>
154                                 </p>
155                 <p><!-- TMPL_UNLESS NAME="norequests" --><!-- TMPL_IF NAME="opacuserlogin" --><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->">Place Reserve</a><!-- /TMPL_IF --><!-- /TMPL_UNLESS --> <!--TMPL_IF NAME="opacbookbag" --><input type="checkbox" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to book bag" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_IF --><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /><!--TMPL_IF NAME="opacbookbag" --></label><!-- /TMPL_IF --> <!-- TMPL_IF name="classification" -->
156                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
157                                         <!-- TMPL_VAR NAME="classification" -->
158                                     </a>
159                                 <!-- /TMPL_IF --></p> 
160                         </td>
161                                         <td width="20%">
162                         <!-- TMPL_IF NAME="items_loop" -->
163                         <span class="available">
164                             <!-- TMPL_LOOP NAME="items_loop" -->
165                                 <!-- TMPL_VAR NAME="count" --> <!-- TMPL_VAR NAME="branchcode" -->
166                                 <i>
167                                 <!-- TMPL_IF name="location" --> <!-- TMPL_VAR name="location" --><!-- /TMPL_IF -->
168                                 <!-- TMPL_IF name="itemcallnumber" --> <!-- TMPL_VAR name="itemcallnumber" --><!-- /TMPL_IF -->
169                                 <!-- TMPL_IF name="classification" -->
170                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
171                                         <!-- TMPL_VAR NAME="classification" -->
172                                     </a>
173                                 <!-- /TMPL_IF -->
174                                 </i>
175                                 <br />
176                                 <span class="unavailable">
177                                     <!-- TMPL_IF NAME="onloancount" --> On loan (due date <!-- TMPL_VAR name="due_date" -->)<br /> <!-- /TMPL_IF -->
178                                     <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->),<br /> <!-- /TMPL_IF -->
179                                     <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->)<br /><!-- /TMPL_IF -->
180                                     <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
181                                 </span>
182                             <!-- /TMPL_LOOP -->
183                         </span>
184                         <!-- /TMPL_IF -->
185                     </td>
186                 </tr>
187                 <!-- /TMPL_LOOP -->
188             </table>
189     </form>
190         </div>
191     <!-- /TMPL_IF -->
192         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
193
194     <!-- TMPL_ELSE -->
195     <!-- /TMPL_IF -->
196
197         <!-- TMPL_IF name="suggestion" -->
198 <!-- TMPL_IF NAME="AnonSuggestions" --><div class="suggestion">Not finding what you're looking for?<br />  Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></div><!-- TMPL_ELSE --><!-- TMPL_IF NAME="loggedinusername" --><div class="suggestion">Not finding what you're looking for?<br />  Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></div><!-- /TMPL_IF --><!-- /TMPL_IF -->
199 <!-- /TMPL_IF -->
200     
201 </div>
202 </div>
203 <div class="yui-b">
204         <!-- FACETS START -->
205         <!-- TMPL_IF NAME="opacfacets" -->
206             <!-- TMPL_IF NAME="facets_loop" -->
207                 <div id="facets" >
208                     <h4>Refine Your Search</h4>
209                     <ul>
210                         <!-- TMPL_LOOP NAME="facets_loop" -->
211                         <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
212                             <ul>
213                                 <!-- TMPL_LOOP NAME="facets" -->
214                                 <li>
215                                     <a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" --><!-- TMPL_VAR NAME="limit_cgi" --> and <!-- TMPL_VAR NAME="type_link_value" -->:<!-- TMPL_VAR NAME="facet_link_value" -->" title="<!-- TMPL_VAR NAME="facet_title_value" -->">
216                                         <!-- TMPL_VAR NAME="facet_label_value" -->
217                                     </a> (<!-- TMPL_VAR NAME="facet_count" -->)
218                                 </li>
219                                 <!-- /TMPL_LOOP -->
220                                 <!-- TMPL_IF NAME="expandable" -->
221                                 <li class="showmore">
222                                     <a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" --><!-- TMPL_VAR NAME="limit_cgi" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
223                                         Show More
224                                     </a>
225                                 </li>
226                                 <!-- /TMPL_IF -->
227                             </ul>
228                         </li>
229                         <!-- /TMPL_LOOP -->
230                     </ul>
231                 </div>
232             <!-- /TMPL_IF -->
233         <!-- /TMPL_IF -->
234         <!-- FACETS END -->
235 </div>
236 </div>
237
238 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->