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