BUG FIX OPAC sort results was broken
[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                 <!--TMPL_INCLUDE Name="resort_form.inc"-->
126             </select>
127         </p>
128         <!-- RESORT END -->
129         
130         <!-- TMPL_IF name="opacbookbag" -->
131             <input type="button" class="button" value="Add checked items to book bag" onclick="addMultiple(); return false;" /> 
132             <input type="reset" value="Clear All" class="button" />
133         <!-- /TMPL_IF -->
134                 
135         <!-- TABLE RESULTS START -->
136         <table>
137             <tr>
138                 <th><input type="checkbox" name="select_all" onclick="SelectAll()" /></th>
139                 <th>Title</th>
140                 <th>Item count</th>
141                 <th>Location</th>
142                 <!-- TMPL_IF NAME="RequestOnOpac" -->
143                 <th>Reservation</th>
144                 <!-- /TMPL_IF -->
145             </tr>
146             <!-- Actual Search Results -->
147             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
148             <!-- TMPL_IF name="even" -->
149                 <tr class="highlight">
150             <!-- TMPL_ELSE -->
151                 <tr>
152             <!-- /TMPL_IF -->
153                     <td>
154                         <!-- TMPL_IF name="opacbookbag" -->
155                             <input type="checkbox" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to book bag" />
156                         <!-- /TMPL_IF -->
157                         <!-- TMPL_IF NAME="AmazonContent" -->
158                         <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
159                             <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" />
160                         </a>
161                         <!-- TMPL_ELSE -->
162                         <!-- TMPL_IF name="imageurl" -->
163                         <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->"/>
164                         <!-- TMPL_ELSE -->
165                         <!-- TMPL_VAR name="description" -->
166                         <!-- /TMPL_IF -->
167                         <!-- /TMPL_IF -->
168                     </td>
169                     <td>
170                         <p>
171                             <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
172                             <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
173                                 <b><!-- TMPL_VAR NAME="title" --></b>
174                             </a> <!-- TMPL_VAR NAME="subtitle" -->
175                             <!-- TMPL_ELSE -->
176                             <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
177                             <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
178                                 <b><!-- TMPL_VAR NAME="title" --></b>
179                             </a> <!-- TMPL_VAR NAME="subtitle" -->
180                             <!-- TMPL_ELSE -->
181                             <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
182                                 <b><!-- TMPL_VAR NAME="title" --></b>
183                             </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 -->
184                             <!-- /TMPL_IF -->
185                             <!-- /TMPL_IF -->
186                         </p>
187                         <!-- TMPL_IF name="summary" -->
188                         <p><!-- TMPL_VAR name="summary" --></p>
189                         <!-- TMPL_ELSE -->
190                         <p>
191                             <!-- TMPL_IF NAME="author" -->
192                             <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a>
193                             <!-- TMPL_ELSE -->
194                             &nbsp;
195                             <!-- /TMPL_IF -->
196                             <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
197                             <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
198                             <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
199                             <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
200                             <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
201                             <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
202                         </p>
203                         <!-- /TMPL_IF -->
204                     </td>
205                     <td >
206                         <!-- TMPL_IF NAME="items_count" -->
207                         <!-- TMPL_VAR NAME="items_count" -->
208                         <!-- /TMPL_IF-->
209                     </td>          
210                     <td width="20%">
211                         <!-- TMPL_IF NAME="items_loop" -->
212                         <span class="available">
213                             <!-- TMPL_LOOP NAME="items_loop" -->
214                                 <!-- TMPL_VAR NAME="count" --> <!-- TMPL_VAR NAME="branchcode" -->
215                                 <i>
216                                 <!-- TMPL_IF name="location" --> <!-- TMPL_VAR name="location" --><!-- /TMPL_IF -->
217                                 <!-- TMPL_IF name="itemcallnumber" --> <!-- TMPL_VAR name="itemcallnumber" --><!-- /TMPL_IF -->
218                                 <!-- TMPL_IF name="classification" -->
219                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
220                                         <!-- TMPL_VAR NAME="classification" -->
221                                     </a>
222                                 <!-- /TMPL_IF -->
223                                 </i>
224                                 <br />
225                                 <span class="unavailable">
226                                     <!-- TMPL_IF NAME="onloancount" --> On loan (due date <!-- TMPL_VAR name="due_date" -->)<br /> <!-- /TMPL_IF -->
227                                     <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->),<br /> <!-- /TMPL_IF -->
228                                     <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->)<br /><!-- /TMPL_IF -->
229                                     <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
230                                 </span>
231                             <!-- /TMPL_LOOP -->
232                         </span>
233                         <!-- /TMPL_IF -->
234                     </td>
235                     <!-- TMPL_IF NAME="RequestOnOpac" -->
236                     <td>
237                         <!-- TMPL_IF NAME="norequests" -->
238                         Not Reserveable
239                         <!-- TMPL_ELSE -->
240                         <a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
241                             Reserves
242                         </a>
243                         <!-- /TMPL_IF -->
244                     </td>
245                     <!-- /TMPL_IF -->
246                 </tr>
247                 <!-- /TMPL_LOOP -->
248             </table>
249     </form>
250         </div>
251     <!-- /TMPL_IF -->
252     
253     <!-- TMPL_IF NAME="PAGE_NUMBERS" -->
254     <div class="pages">
255         <!-- Row of numbers corresponding to search result pages -->
256         <!-- TMPL_IF NAME="previous_page_offset" -->
257         <a class="nav" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="previous_page_offset" -->">
258             &lt;&lt; Previous
259         </a>
260         <!-- /TMPL_IF -->
261         <!-- TMPL_LOOP NAME="PAGE_NUMBERS" -->
262         <!-- TMPL_IF NAME="highlight" -->
263         <span class="current"><!-- TMPL_VAR NAME="pg" --></span>
264         <!-- TMPL_ELSE -->
265         <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 -->">
266             <!-- TMPL_VAR NAME="pg" -->
267         </a>
268         <!-- /TMPL_IF -->
269         <!-- /TMPL_LOOP -->
270         <!-- TMPL_IF NAME="next_page_offset" -->
271         <a class="nav" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="next_page_offset" -->">
272             Next &gt;&gt;
273         </a>
274         <!-- /TMPL_IF -->
275     </div>
276     <!-- /TMPL_IF -->
277     
278     <!-- TMPL_IF NAME="outer_sup_results_loop" -->
279     <h3><!-- TMPL_LOOP NAME="outer_sup_results_loop" --></h3>
280     <!-- TMPL_IF NAME="inner_sup_results_loop" -->
281     <!-- TMPL_VAR NAME="servername" -->
282     <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
283     <div><a href="<!-- TMPL_VAR NAME="link" -->"><!-- TMPL_VAR NAME="title" --></a></div>
284     <!-- /TMPL_LOOP -->
285     <!-- /TMPL_IF -->
286     <!-- /TMPL_LOOP -->
287     <!-- /TMPL_IF -->
288     
289     <!-- TMPL_ELSE -->
290     
291     
292     <!-- /TMPL_IF -->
293         
294         <!-- TMPL_IF name="suggestion" -->
295 <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>
296 <!-- /TMPL_IF -->
297     
298 </div>
299 </div>
300 <div class="yui-b">
301  <!-- ######### -->
302         <!-- FACETS START -->
303         <!-- TMPL_IF NAME="opacfacets" -->
304             <!-- TMPL_IF NAME="facets_loop" -->
305                 <div id="facets" >
306                     <h4>Refine Your Search</h4>
307                     <ul>
308                         <!-- TMPL_LOOP NAME="facets_loop" -->
309                         <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
310                             <ul>
311                                 <!-- TMPL_LOOP NAME="facets" -->
312                                 <li>
313                                     <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" -->">
314                                         <!-- TMPL_VAR NAME="facet_label_value" -->
315                                     </a> (<!-- TMPL_VAR NAME="facet_count" -->)
316                                 </li>
317                                 <!-- /TMPL_LOOP -->
318                                 <!-- TMPL_IF NAME="expandable" -->
319                                 <li class="showmore">
320                                     <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
321                                         Show More
322                                     </a>
323                                 </li>
324                                 <!-- /TMPL_IF -->
325                             </ul>
326                         </li>
327                         <!-- /TMPL_LOOP -->
328                     </ul>
329                 </div>
330             <!-- /TMPL_IF -->
331         <!-- /TMPL_IF -->
332         <!-- FACETS END -->
333         
334         <!-- ######### -->
335 </div>
336 </div>
337
338 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->