fixing sort by in OPAC
[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="get" name="bookbag_form" id="bookbag_form">
95                 <!-- TMPL_IF NAME="searchdesc" -->
96                 <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
97                 <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
98                 <!-- /TMPL_LOOP -->
99                 <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
100                 <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
101                 <!-- /TMPL_LOOP -->
102                 <!-- /TMPL_IF -->
103
104         <!-- TABLE RESULTS START -->
105         <table>
106                 <tr><td colspan="3"><p class="searchresults">
107                 <!-- 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 -->
108         
109         <!-- TMPL_IF name="opacbookbag" --><a href="#" onclick="SelectAll()"><img src="/opac-tmpl/prog/images/checkall.gif" alt="Check All" border="0" /></a>
110             <input type="button" class="icon shelf" value="Add checked items to book bag" onclick="addMultiple(); return false;" /> 
111             <input type="reset" value="Clear All" class="icon shelf" />
112         <!-- /TMPL_IF --></p></td></tr>
113             <!-- Actual Search Results -->
114             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
115             <!-- TMPL_IF name="even" -->
116                 <tr class="highlight">
117             <!-- TMPL_ELSE -->
118                 <tr>
119             <!-- /TMPL_IF -->
120                     <td><!-- TMPL_IF NAME="AmazonContent" -->
121                         <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
122                             <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" />
123                         </a>
124                         <!-- TMPL_ELSE -->
125                         <!-- TMPL_IF name="imageurl" -->
126                         <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
127                         <!-- TMPL_ELSE -->
128                         <!-- TMPL_VAR name="description" -->
129                         <!-- /TMPL_IF -->
130                         <!-- /TMPL_IF -->
131                     </td>
132                     <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 -->
133                                 <p> <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
134                                                 <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
135                                                 <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
136                                                 <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
137                                                 <!-- TMPL_IF name="notes" --> : <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
138                                                 <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
139                                                 <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF --></p>
140                                 <p class="availability">
141 <!-- TMPL_IF NAME="items_loop" -->
142 <span class="available"><strong>Copies available at:</strong> <!-- TMPL_LOOP NAME="items_loop" -->
143                 <!-- <!-- TMPL_VAR NAME="branchcode" --> -->
144                 <!-- TMPL_VAR NAME="branchname" -->
145                 (<!-- TMPL_VAR NAME="count" -->),
146 <!-- /TMPL_LOOP --></span>
147 <!-- TMPL_ELSE -->
148 <span class="unavailable">No copies available: </span>
149 <!-- /TMPL_IF -->
150 <span class="unavailable">
151 <!-- TMPL_IF NAME="onloancount" --> On loan (<!-- TMPL_VAR NAME="onloancount" -->), <!-- /TMPL_IF -->
152 <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->), <!-- /TMPL_IF -->
153 <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->)<!-- /TMPL_IF -->
154 <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF --></span>
155                                 </p>
156                 <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" -->
157                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
158                                         <!-- TMPL_VAR NAME="classification" -->
159                                     </a>
160                                 <!-- /TMPL_IF --></p> 
161                         </td>
162                                         <td width="20%">
163                         <!-- TMPL_IF NAME="items_loop" -->
164                         <span class="available">
165                             <!-- TMPL_LOOP NAME="items_loop" -->
166                                 <!-- TMPL_VAR NAME="count" --> <!-- TMPL_VAR NAME="branchcode" -->
167                                 <i>
168                                 <!-- TMPL_IF name="location" --> <!-- TMPL_VAR name="location" --><!-- /TMPL_IF -->
169                                 <!-- TMPL_IF name="itemcallnumber" --> <!-- TMPL_VAR name="itemcallnumber" --><!-- /TMPL_IF -->
170                                 <!-- TMPL_IF name="classification" -->
171                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
172                                         <!-- TMPL_VAR NAME="classification" -->
173                                     </a>
174                                 <!-- /TMPL_IF -->
175                                 </i>
176                                 <br />
177                                 <span class="unavailable">
178                                     <!-- TMPL_IF NAME="onloancount" --> On loan (due date <!-- TMPL_VAR name="due_date" -->)<br /> <!-- /TMPL_IF -->
179                                     <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->),<br /> <!-- /TMPL_IF -->
180                                     <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->)<br /><!-- /TMPL_IF -->
181                                     <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
182                                 </span>
183                             <!-- /TMPL_LOOP -->
184                         </span>
185                         <!-- /TMPL_IF -->
186                     </td>
187                 </tr>
188                 <!-- /TMPL_LOOP -->
189             </table>
190     </form>
191         </div>
192     <!-- /TMPL_IF -->
193         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
194
195     <!-- TMPL_ELSE -->
196     <!-- /TMPL_IF -->
197
198         <!-- TMPL_IF name="suggestion" -->
199 <!-- 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 -->
200 <!-- /TMPL_IF -->
201     
202 </div>
203 </div>
204 <div class="yui-b">
205         <!-- FACETS START -->
206         <!-- TMPL_IF NAME="opacfacets" -->
207             <!-- TMPL_IF NAME="facets_loop" -->
208                 <div id="facets" >
209                     <h4>Refine Your Search</h4>
210                     <ul>
211                         <!-- TMPL_LOOP NAME="facets_loop" -->
212                         <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
213                             <ul>
214                                 <!-- TMPL_LOOP NAME="facets" -->
215                                 <li>
216                                     <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" -->">
217                                         <!-- TMPL_VAR NAME="facet_label_value" -->
218                                     </a> (<!-- TMPL_VAR NAME="facet_count" -->)
219                                 </li>
220                                 <!-- /TMPL_LOOP -->
221                                 <!-- TMPL_IF NAME="expandable" -->
222                                 <li class="showmore">
223                                     <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" -->">
224                                         Show More
225                                     </a>
226                                 </li>
227                                 <!-- /TMPL_IF -->
228                             </ul>
229                         </li>
230                         <!-- /TMPL_LOOP -->
231                     </ul>
232                 </div>
233             <!-- /TMPL_IF -->
234         <!-- /TMPL_IF -->
235         <!-- FACETS END -->
236 </div>
237 </div>
238
239 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->