Beginning redesign of the OPAC. At this stage it's a move to make it more like the...
[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="searchdesc" -->'
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 <!-- TMPL_IF NAME="total" -->
18 <div id="breadcrumbs" class="yui-g">
19 <p><strong>&ldquo;<!-- TMPL_VAR NAME="searchdesc" -->&rdquo;</strong> returned <!-- TMPL_VAR NAME="total" --> results.</p>
20 </div>
21 <!-- TMPL_ELSE -->
22 <div id="breadcrumbs" class="yui-g">
23 <!-- TMPL_IF NAME="searchdesc" -->
24 <h3>No Result found !</h3>
25 <p>
26     No results match your search for <span style="font-weight: bold;">&ldquo;<!-- TMPL_VAR NAME="searchdesc" -->&rdquo;</span> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog.
27 </p>
28 <!-- TMPL_ELSE -->
29 <h3> No result found !</h3>
30 <p>
31     You did not specify any search criteria.
32 </p>
33 </div>
34 <!-- /TMPL_IF -->
35 <!-- /TMPL_IF -->
36
37 <div id="yui-main">
38
39         <div class="yui-b">
40   <!-- TMPL_IF NAME="koha_spsuggest" -->
41         Did you mean:
42     <ul style="list-style: none;">
43         <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
44         <li>
45             <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
46         </li>
47         <!-- /TMPL_LOOP -->
48     </ul>
49 <!-- /TMPL_IF -->
50
51 <!-- TMPL_IF NAME="query_error" -->
52 <div class="error">
53         <h4>Error:</h4>
54     <!-- TMPL_VAR NAME="query_error" -->
55 </div>
56 <!-- /TMPL_IF -->       
57         
58 <!-- Search Results Table -->
59 <!-- TMPL_IF NAME="total" -->
60 <!-- TMPL_IF NAME="scan" -->
61     <h1>Scan Index:</h1>
62     <form action="/cgi-bin/koha/opac-search.pl" method="post">
63         <table>
64             <tr>
65                 <td>
66                     Scan Index for: <input type="text" name="qf" id="scan-index" size="35" value="" />
67                 </td>
68             </tr>
69             <tr>
70                 <td>
71                     <label for="scan-index">Indexed in:</label>
72                     <select name="idx" id="scan-index">
73                         <option value="">Any Word</option>
74                         <option value="any/phr:">Any Phrase</option>
75                         <option value="ti:">Title</option>
76                         <option value="ti,phr:">Title Phrase</option>
77                         <option value="au,phr:">Author</option>
78                         <option value="su:">Subject</option>
79                         <option value="su,phr:">Subject Phrase</option>
80                         <option value="se:">Series</option>
81                         <option value="pb:">Publisher</option>
82                         <option value="nt:">Notes</option>
83                         <option value="se:">Series Title</option>
84                         <option value="sn:">ISBN</option>
85                         <option value="ss:">ISSN</option>
86                     </select>
87                     <input type="hidden" name="scan" value="1" />
88                 </td>
89             </tr>
90         </table>
91     </form>
92     
93     <form action="/cgi-bin/koha/opac-search.pl" method="post">
94         <table>
95             <tr>
96                 <th>Term/Phrase</th>
97                 <th>Count</th>
98             </tr>
99             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
100             <tr<!-- TMPL_IF name="even" --> class="highlight"<!-- /TMPL_IF -->>
101                 <td>
102                     <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>
103                 </td>
104                 <td>
105                     <!-- TMPL_VAR NAME="subtitle" -->
106                 </td>
107             </tr>
108             <!-- /TMPL_LOOP -->
109         </table>
110     </form>
111 <!-- TMPL_ELSE -->
112
113     <div class="searchresults">
114 <form action="/cgi-bin/koha/opac-search.pl" method="post" name="myform" id="mainform">
115     
116     <!-- TMPL_IF NAME="searchdesc" -->
117     <input type="hidden" name="q" value="<!-- TMPL_VAR NAME="searchdesc" escape="html" -->" />
118     <!-- /TMPL_IF -->
119     
120         
121         <!-- RE-SORT START -->
122         <p style="float: right;">
123             Re-sort results
124             <select id="sort_by" name="sort_by" onchange="javascript:document.myform.submit();">
125                 <option value="">Field-weighted, Relevance Ranked</option>
126         <!--TMPL_IF Name="9523a"-->
127           <option value="1=9523 &gt;i" selected>Popularity (Most to Least)</option>
128         <!--TMPL_ELSE -->
129           <option value="1=9523 &gt;i">Popularity (Most to Least)</option>
130         <!--/TMPL_IF-->
131         <!--TMPL_IF Name="9523d"-->
132           <option value="1=9523 &lt;i" selected>Popularity (Least to Most)</option>
133         <!--TMPL_ELSE -->
134           <option value="1=9523 &lt;i">Popularity (Least to Most)</option>
135         <!--/TMPL_IF-->
136         <!--TMPL_IF Name="1003d"-->
137           <option value="1=1003 &lt;i" selected>Author (A-Z)</option>
138         <!--TMPL_ELSE -->
139           <option value="1=1003 &lt;i">Author (A-Z)</option>
140         <!--/TMPL_IF-->
141         <!--TMPL_IF Name="1003a"-->
142          <option value="1=1003 &gt;i" selected>Author (Z-A)</option>
143         <!--TMPL_ELSE -->
144          <option value="1=1003 &gt;i">Author (Z-A)</option>
145         <!--/TMPL_IF-->
146         <!--TMPL_IF Name="20d"-->
147           <option value="1=20 &lt;i" selected>Call Number (Non-fiction 0-9 to Fiction A-Z)</option>
148         <!--TMPL_ELSE -->
149           <option value="1=20 &lt;i">Call Number (Non-fiction 0-9 to Fiction A-Z)</option>
150         <!--/TMPL_IF-->
151         <!--TMPL_IF Name="20a"-->
152           <option value="1=20 &gt;i" selected>Call Number (Fiction Z-A to Non-fiction 9-0)</option>
153         <!--TMPL_ELSE -->
154           <option value="1=20 &gt;i">Call Number (Fiction Z-A to Non-fiction 9-0)</option>
155         <!--/TMPL_IF-->
156         <!--TMPL_IF Name="31a"-->
157           <option value="1=31 &gt;i" selected>Dates</option>
158         <!--TMPL_ELSE -->
159           <option value="1=31 &gt;i">Dates</option>
160         <!--/TMPL_IF-->
161         <!--TMPL_IF Name="31a"-->
162           <option value="1=31 &gt;i" selected>&nbsp;&nbsp;&nbsp;Publication/Copyright Date: Newest to Oldest</option>
163         <!--TMPL_ELSE -->
164           <option value="1=31 &gt;i">&nbsp;&nbsp;&nbsp;Publication/Copyright Date: Newest to Oldest</option>
165         <!--/TMPL_IF-->
166         <!--TMPL_IF Name="31d"-->
167           <option value="1=31 &lt;i">&nbsp;&nbsp;&nbsp;Publication/Copyright Date: Oldest to Newest</option>
168         <!--TMPL_ELSE -->
169           <option value="1=31 &lt;i">&nbsp;&nbsp;&nbsp;Publication/Copyright Date: Oldest to Newest</option>
170         <!--/TMPL_IF-->
171         <!--TMPL_IF Name="32a"-->
172           <option value="1=32 &gt;i" selected>&nbsp;&nbsp;&nbsp;Acquisition Date: Newest to Oldest</option>
173         <!--TMPL_ELSE -->
174           <option value="1=32 &gt;i">&nbsp;&nbsp;&nbsp;Acquisition Date: Newest to Oldest</option>
175         <!--/TMPL_IF-->
176         <!--TMPL_IF Name="32d"-->
177           <option value="1=32 &lt;i" selected>&nbsp;&nbsp;&nbsp;Acquisition Date: Oldest to Newest</option>
178         <!--TMPL_ELSE -->
179           <option value="1=32 &lt;i">&nbsp;&nbsp;&nbsp;Acquisition Date: Oldest to Newest</option>
180         <!--/TMPL_IF-->
181         <!--TMPL_IF Name="4d"-->
182           <option value="1=4 &lt;i" selected>Title (A-Z)</option>
183         <!--TMPL_ELSE -->
184           <option value="1=4 &lt;i">Title (A-Z)</option>
185         <!--/TMPL_IF-->
186         <!--TMPL_IF Name="4a"-->
187           <option value="1=4 &gt;i" selected>Title (Z-A)</option>
188         <!--TMPL_ELSE -->
189           <option value="1=4 &gt;i">Title (Z-A)</option>
190         <!--/TMPL_IF-->
191             </select>
192         </p>
193         <!-- RESORT END -->
194         
195         <!-- TMPL_IF name="opacbookbag" -->
196             <input type="button" class="button" value="Add checked items to book bag" onclick="addMultiple(); return false;" /> 
197             <input type="reset" value="Clear All" class="button" />
198         <!-- /TMPL_IF -->
199                 
200         <!-- TABLE RESULTS START -->
201         <table>
202             <tr>
203                 <th><input type="checkbox" name="select_all" onclick="SelectAll()" /></th>
204                 <th>Title</th>
205                 <th>Item count</th>
206                 <th>Location</th>
207                 <!-- TMPL_IF NAME="RequestOnOpac" -->
208                 <th>Reservation</th>
209                 <!-- /TMPL_IF -->
210             </tr>
211             <!-- Actual Search Results -->
212             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
213             <!-- TMPL_IF name="even" -->
214                 <tr class="highlight">
215             <!-- TMPL_ELSE -->
216                 <tr>
217             <!-- /TMPL_IF -->
218                     <td>
219                         <!-- TMPL_IF name="opacbookbag" -->
220                             <input type="checkbox" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to book bag" />
221                         <!-- /TMPL_IF -->
222                         <!-- TMPL_IF NAME="AmazonContent" -->
223                         <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
224                             <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" />
225                         </a>
226                         <!-- TMPL_ELSE -->
227                         <!-- TMPL_IF name="imageurl" -->
228                         <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->"/>
229                         <!-- TMPL_ELSE -->
230                         <!-- TMPL_VAR name="description" -->
231                         <!-- /TMPL_IF -->
232                         <!-- /TMPL_IF -->
233                     </td>
234                     <td>
235                         <p>
236                             <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
237                             <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
238                                 <b><!-- TMPL_VAR NAME="title" --></b>
239                             </a> <!-- TMPL_VAR NAME="subtitle" -->
240                             <!-- TMPL_ELSE -->
241                             <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
242                             <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
243                                 <b><!-- TMPL_VAR NAME="title" --></b>
244                             </a> <!-- TMPL_VAR NAME="subtitle" -->
245                             <!-- TMPL_ELSE -->
246                             <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
247                                 <b><!-- TMPL_VAR NAME="title" --></b>
248                             </a> <!-- TMPL_VAR NAME="subtitle" --><!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
249                             <!-- /TMPL_IF -->
250                             <!-- /TMPL_IF -->
251                         </p>
252                         <!-- TMPL_IF name="summary" -->
253                         <p><!-- TMPL_VAR name="summary" --></p>
254                         <!-- TMPL_ELSE -->
255                         <p>
256                             <!-- TMPL_IF NAME="author" -->
257                             <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a>
258                             <!-- TMPL_ELSE -->
259                             &nbsp;
260                             <!-- /TMPL_IF -->
261                             <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
262                             <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
263                             <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
264                             <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
265                             <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
266                             <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
267                         </p>
268                         <!-- /TMPL_IF -->
269                     </td>
270                     <td >
271                         <!-- TMPL_IF NAME="items_count" -->
272                         <!-- TMPL_VAR NAME="items_count" -->
273                         <!-- /TMPL_IF-->
274                     </td>          
275                     <td width="20%">
276                         <!-- TMPL_IF NAME="items_loop" -->
277                         <span class="available">
278                             <!-- TMPL_LOOP NAME="items_loop" -->
279                                 <!-- TMPL_VAR NAME="count" --> <!-- TMPL_VAR NAME="branchcode" -->
280                                 <i>
281                                 <!-- TMPL_IF name="location" --> <!-- TMPL_VAR name="location" --><!-- /TMPL_IF -->
282                                 <!-- TMPL_IF name="itemcallnumber" --> <!-- TMPL_VAR name="itemcallnumber" --><!-- /TMPL_IF -->
283                                 <!-- TMPL_IF name="classification" -->
284                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
285                                         <!-- TMPL_VAR NAME="classification" -->
286                                     </a>
287                                 <!-- /TMPL_IF -->
288                                 </i>
289                                 <br />
290                                 <span class="unavailable">
291                                     <!-- TMPL_IF NAME="onloancount" --> On loan (due date <!-- TMPL_VAR name="due_date" -->)<br /> <!-- /TMPL_IF -->
292                                     <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->),<br /> <!-- /TMPL_IF -->
293                                     <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->)<br /><!-- /TMPL_IF -->
294                                     <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
295                                 </span>
296                             <!-- /TMPL_LOOP -->
297                         </span>
298                         <!-- /TMPL_IF -->
299                     </td>
300                     <!-- TMPL_IF NAME="RequestOnOpac" -->
301                     <td>
302                         <!-- TMPL_IF NAME="norequests" -->
303                         Not Reserveable
304                         <!-- TMPL_ELSE -->
305                         <a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
306                             Reserves
307                         </a>
308                         <!-- /TMPL_IF -->
309                     </td>
310                     <!-- /TMPL_IF -->
311                 </tr>
312                 <!-- /TMPL_LOOP -->
313             </table>
314     </form>
315         </div>
316     <!-- /TMPL_IF -->
317     
318     <!-- TMPL_IF NAME="PAGE_NUMBERS" -->
319     <div class="pages">
320         <!-- Row of numbers corresponding to search result pages -->
321         <!-- TMPL_IF NAME="previous_page_offset" -->
322         <a class="nav" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="previous_page_offset" -->">
323             &lt;&lt; Previous
324         </a>
325         <!-- /TMPL_IF -->
326         <!-- TMPL_LOOP NAME="PAGE_NUMBERS" -->
327         <!-- TMPL_IF NAME="highlight" -->
328         <span class="current"><!-- TMPL_VAR NAME="pg" --></span>
329         <!-- TMPL_ELSE -->
330         <a class="nav" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="offset" --><!-- TMPL_IF NAME="sort_by" -->&amp;sort_by=<!-- TMPL_VAR NAME="sort_by" --><!-- /TMPL_IF -->">
331             <!-- TMPL_VAR NAME="pg" -->
332         </a>
333         <!-- /TMPL_IF -->
334         <!-- /TMPL_LOOP -->
335         <!-- TMPL_IF NAME="next_page_offset" -->
336         <a class="nav" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="next_page_offset" -->">
337             Next &gt;&gt;
338         </a>
339         <!-- /TMPL_IF -->
340     </div>
341     <!-- /TMPL_IF -->
342     
343     <!-- TMPL_IF NAME="outer_sup_results_loop" -->
344     <h3><!-- TMPL_LOOP NAME="outer_sup_results_loop" --></h3>
345     <!-- TMPL_IF NAME="inner_sup_results_loop" -->
346     <!-- TMPL_VAR NAME="servername" -->
347     <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
348     <div><a href="<!-- TMPL_VAR NAME="link" -->"><!-- TMPL_VAR NAME="title" --></a></div>
349     <!-- /TMPL_LOOP -->
350     <!-- /TMPL_IF -->
351     <!-- /TMPL_LOOP -->
352     <!-- /TMPL_IF -->
353     
354     <!-- TMPL_ELSE -->
355     
356     
357     <!-- /TMPL_IF -->
358         
359         <!-- TMPL_IF name="suggestion" -->
360 <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>
361 <!-- /TMPL_IF -->
362     
363 </div>
364 </div>
365 <div class="yui-b">
366  <!-- ######### -->
367         <!-- FACETS START -->
368         <!-- TMPL_IF NAME="opacfacets" -->
369             <!-- TMPL_IF NAME="facets_loop" -->
370                 <div id="facets" >
371                     <h4>Refine Your Search</h4>
372                     <ul>
373                         <!-- TMPL_LOOP NAME="facets_loop" -->
374                         <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
375                             <ul>
376                                 <!-- TMPL_LOOP NAME="facets" -->
377                                 <li>
378                                     <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" --> and <!-- TMPL_VAR NAME="type_link_value" -->:<!-- TMPL_VAR NAME="facet_link_value" -->" title="<!-- TMPL_VAR NAME="facet_title_value" -->">
379                                         <!-- TMPL_VAR NAME="facet_label_value" -->
380                                     </a> (<!-- TMPL_VAR NAME="facet_count" -->)
381                                 </li>
382                                 <!-- /TMPL_LOOP -->
383                                 <!-- TMPL_IF NAME="expandable" -->
384                                 <li class="showmore">
385                                     <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
386                                         Show More
387                                     </a>
388                                 </li>
389                                 <!-- /TMPL_IF -->
390                             </ul>
391                         </li>
392                         <!-- /TMPL_LOOP -->
393                     </ul>
394                 </div>
395             <!-- /TMPL_IF -->
396         <!-- /TMPL_IF -->
397         <!-- FACETS END -->
398         
399         <!-- ######### -->
400 </div>
401 </div>
402
403 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->