fixing re-sorting in staff client
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / results.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Catalog &rsaquo; <!-- TMPL_IF NAME="searchdesc" -->Results of Search for '<!-- TMPL_VAR NAME="searchdesc" -->'<!-- TMPL_ELSE -->You did not specify any search criteria<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 </head>
5 <body>
6 <!-- TMPL_INCLUDE NAME="header.inc" -->
7 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
8
9 <div id="doc3" class="yui-t2">
10    
11    <div id="bd">
12         <div id="yui-main">
13         <div class="yui-b">
14
15     <!-- TMPL_IF NAME="koha_spsuggest" -->
16         <div style="font-size: 12px;">Did you mean: 
17             <ul style="list-style: none;">
18             <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
19             <li>
20                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
21             </li>
22             <!-- /TMPL_LOOP -->
23             </ul>
24         </div>
25     <!-- /TMPL_IF -->
26     <!-- TMPL_IF NAME="total" -->
27     <h3>
28         <!-- TMPL_VAR NAME="total" --> results found for '<!-- TMPL_VAR NAME="searchdesc" -->'
29         <a href="/cgi-bin/koha/catalogue/search.pl">Perform a new search</a>
30     </h3>
31     <!-- TMPL_ELSE -->
32         <!-- TMPL_IF NAME="searchdesc" -->
33             <h3> No Result found !</h3>
34             <p>
35                 No results match your search for <span style="font-weight: bold;">&ldquo;<!-- TMPL_VAR NAME="searchdesc" -->&rdquo;</span> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog.
36             </p>
37             <a href="/cgi-bin/koha/catalogue/search.pl" title="New search">Perform a new search</a>
38         <!-- TMPL_ELSE -->
39             <h3> No result found !</h3>
40             <p>
41             You did not specify any search criteria.
42             </p>
43             <a href="/cgi-bin/koha/catalogue/search.pl" title="New search">Perform a new search</a>
44         <!-- /TMPL_IF -->
45     <!-- /TMPL_IF -->
46     
47     <!-- TMPL_IF NAME="query_error" -->
48         <br /><br />
49         Error : 
50         <span  class="problem">
51             <!-- TMPL_VAR NAME="query_error" -->
52         </span>
53     <!-- /TMPL_IF -->
54     
55     <!-- Search Results Table -->
56     <!-- TMPL_IF NAME="total" -->
57         <!-- TMPL_IF NAME="scan" -->
58             <h1>Scan Index:</h1>
59             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
60             <table>
61                 <tr>
62                     <td>
63                         Scan Index for: <input type="text" name="qf" id="scan-index" size="35" value="" />
64                     </td>
65                 </tr>
66                 <tr>
67                     <td>
68                         <label for="scan-index">Indexed in:</label>
69                         <select name="idx" id="scan-index">
70                             <option value="">Any Word</option>
71                             <option value="any,phr:">Any Phrase</option>
72                             <option value="ti:">Title</option>
73                             <option value="ti,phr:">Title Phrase</option>
74                             <option value="au,phr:">Author</option>
75                             <option value="su:">Subject</option>
76                             <option value="su,phr:">Subject Phrase</option>
77                             <option value="se:">Series</option>
78                             <option value="pb:">Publisher</option>
79                             <option value="nt:">Notes</option>
80                             <option value="se:">Series Title</option>
81                             <option value="sn:">ISBN</option>
82                             <option value="ss:">ISSN</option>
83                         </select>
84                         <input type="hidden" name="scan" value="1" />
85                     </td>
86                 </tr>
87             </table>
88             </form>
89             
90             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
91             <table>
92                 <tr>
93                     <th>Term/Phrase</th>
94                     <th>Count</th>
95                 </tr>
96                 <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
97                     <tr<!-- TMPL_IF name="even" --> class="highlight"<!-- /TMPL_IF -->>
98                         <td>
99                             <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="scan_use" escape="url" -->&quot;<!-- TMPL_VAR NAME="title" -->&quot;"><!-- TMPL_VAR NAME="title" --></a>
100                         </td>
101                         <td>
102                             <!-- TMPL_VAR NAME="subtitle" -->
103                         </td>
104                     </tr>
105                 <!-- /TMPL_LOOP -->
106             </table>
107             </form>
108         <!-- TMPL_ELSE -->
109             <!-- ######### -->
110             <div id="facets">
111                 <dl>
112                 <!-- TMPL_IF NAME="NoZebra" -->
113                 <!-- FACETS START -->
114                 <!-- TMPL_IF NAME="opacfacets" -->
115                     <dt id="facets1" onclick="var Elt=document.getElementById('facets_list');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
116                     Refine Your Search
117                     </dt>
118                     <dd id="facets_list" style="display:none;">
119                     <ul>
120                     <!-- TMPL_LOOP NAME="facets_loop" -->
121                     <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
122                         <ul>
123                         <!-- TMPL_LOOP NAME="facets" -->
124                             <li>
125                                 <a href="/cgi-bin/koha/catalogue/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" -->">
126                                     <!-- TMPL_VAR NAME="facet_label_value" -->
127                                 </a> (<!-- TMPL_VAR NAME="facet_count" -->)
128                             </li>
129                         <!-- /TMPL_LOOP -->
130                         <!-- TMPL_IF NAME="expandable" -->
131                             <li class="showmore">
132                                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
133                                     Show More
134                                 </a>
135                             </li>
136                         <!-- /TMPL_IF -->
137                         </ul>
138                     </li>
139                     <!-- /TMPL_LOOP -->
140                     </ul>
141                     </dd>
142                 <!-- /TMPL_IF -->
143                 <!-- FACETS END -->
144                 <!-- /TMPL_IF --> <!-- NoZebra -->
145                 <!-- BULKEDIT START -->
146                 <!--TMPL_IF Name="bulkedit"--> 
147                     <dt id="hbulkedit" onclick="var Elt=document.getElementById('parambulkedit');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
148                     Bulk edit
149                     </dt>
150                     <dd id="parambulkedit" style="display:none;">
151                     <form name="bulkedit" action="search.pl">
152                         <input type="hidden" name="q" value="<!-- TMPL_VAR NAME="searchdesc" -->" />
153                         <input type="hidden" name="operation" value="bulkedit" />
154                         Search for Value :<input type="text" name="inputvalue" value="" /><br />
155                         Subfield       <select name="tagsubfield">
156                         <!--TMPL_LOOP Name="tagsubfields"-->
157                             <option value="<!--TMPL_VAR Name="tagsubfield"-->"> <!--TMPL_VAR Name="tagsubfield"-->
158                             <!-- --<TMPL_VAR Name="tagdesc">--<TMPL_VAR Name="subfielddesc">-->
159                             </option>
160                         <!--/TMPL_LOOP -->
161                         </select><br />
162                         Change to : <input type="text" name="targetvalue" value="" /><br />
163                         Test only : <input type="checkbox" name="test" value="1" /><br />
164                         <input type="Submit" name="Edit" value="Edit" />
165                     </form>
166                     </dd>
167                     <!-- TMPL_IF NAME="bulkeditresults" -->
168                     <dd><em>
169                         tagsubfield : <!-- TMPL_VAR NAME="countchanged" --> Change <!-- TMPL_VAR NAME="countchanged" --> To <!-- TMPL_VAR NAME="countchanged" --><br />
170                         <!-- TMPL_VAR NAME="countchanged" --> biblios changed <br />
171                         <!--TMPL_VAR Name="countunchanged"--> biblios unchanged<br />
172                         <em>
173                     </dd>
174                     <!-- /TMPL_IF -->
175                 <!--/TMPL_IF--> 
176                 <!-- BULKEDIT END -->
177                 </dl>
178             </div>
179             <!-- ######### -->
180
181             <div id="searchresults">
182                                 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="myform" id="mainform">
183                 <!-- TMPL_IF NAME="searchdesc" -->
184                     <input type="hidden" name="q" value="<!-- TMPL_VAR NAME="searchdesc" escape="html" -->" />
185                 <!-- /TMPL_IF -->
186                                 <!-- RE-SORT START -->
187                     <p>
188                     Re-sort results
189                     <select id="sort_by" name="sort_by" onchange="document.myform.submit();">
190                                         <!-- TMPL_INCLUDE NAME="resort_form.inc" -->
191                                         </select>
192                     </p>
193                     <!-- RESORT END -->
194                                 </form>
195         
196                     <!-- TABLE RESULTS START -->
197
198                 <table>
199                     <tr>
200                         <th>&nbsp;</th>
201                         <th>Title</th>
202                         <th>Item count</th>
203                         <th>Location</th>
204                         <th>&nbsp;</th>
205                     </tr>
206                         <!-- Actual Search Results -->
207                         <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
208                             <!-- TMPL_IF name="even" -->
209                                 <tr class="highlight">
210                             <!-- TMPL_ELSE -->
211                                 <tr>
212                             <!-- /TMPL_IF -->
213                                 <td>
214                             <!-- TMPL_IF NAME="AmazonContent" -->
215                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
216                                         <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" />
217                                     </a>
218                             <!-- TMPL_ELSE -->
219                                 <!-- TMPL_IF name="imageurl" -->
220                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
221                                 <!-- TMPL_ELSE -->
222                                     <!-- TMPL_VAR name="description" -->
223                                 <!-- /TMPL_IF -->
224                             <!-- /TMPL_IF -->
225                                 </td>
226                             <td>
227                                 <p>
228                                     <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
229                                         <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
230                                             <b><!-- TMPL_VAR NAME="title" --></b>
231                                         </a> <!-- TMPL_VAR NAME="subtitle" -->
232 <!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
233                                     <!-- TMPL_ELSE -->
234                                         <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
235                                             <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
236                                                 <!-- TMPL_VAR NAME="title" --> 
237                                             </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 -->
238                                         <!-- TMPL_ELSE -->
239                                             <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
240                                                 <!-- TMPL_VAR NAME="title" --> 
241                                             </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 -->
242                                         <!-- /TMPL_IF -->
243                                     <!-- /TMPL_IF -->
244                                 </p>
245                                 <!-- TMPL_IF name="summary" -->
246                                     <p><!-- TMPL_VAR name="summary" --></p>
247                                 <!-- TMPL_ELSE -->
248                                     <p>
249                                         <!-- TMPL_IF NAME="author" -->
250                                             <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a>
251                                         <!-- TMPL_ELSE -->
252                                             &nbsp;
253                                         <!-- /TMPL_IF -->
254                                         <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
255                                         <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
256                                         Description: 
257                                         <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
258                                         <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
259                                         <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
260                                         <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
261                                     </p>
262                                 <!-- /TMPL_IF -->
263                                 </td>
264                                 <td>
265                                                     <!-- TMPL_IF NAME="items_count" -->
266                                                     <!-- TMPL_VAR NAME="items_count" -->
267                                                     <!-- /TMPL_IF -->
268                                                       
269                                 </td>
270                                 <td>
271                                     <!-- TMPL_IF NAME="items_loop" -->
272                                         
273                                         <!-- TMPL_LOOP NAME="items_loop" -->
274                                         <!--TMPL_IF Name="unavailable"-->
275                                         <span class="unavailable">
276                                         <!--TMPL_ELSE-->
277                                         <span class="available">
278                                         <!--/TMPL_IF -->
279                                         
280                                             (<!-- TMPL_VAR NAME="count" -->) <!-- TMPL_VAR NAME="branchcode" -->
281                                             <i>
282                                         <!-- TMPL_IF name="location" --><!-- TMPL_VAR name="location" --><!-- /TMPL_IF -->
283                                         <!-- TMPL_IF name="itemcallnumber" --><!-- TMPL_VAR name="itemcallnumber" --><!-- /TMPL_IF -->
284                                          <!-- TMPL_IF name="cn_class" -->
285                                             <a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="cn_class" ESCAPE="URL" -->">
286                                                 <!-- TMPL_VAR NAME="cn_class" -->
287                                             </a>
288                                         <!-- /TMPL_IF -->
289                                         </i>
290                                         <!-- TMPL_IF NAME="onloancount" -->, On loan until <!-- TMPL_VAR NAME="due_date" --><!-- /TMPL_IF -->
291                                         <!-- TMPL_IF NAME="wthdrawncount" -->, Withdrawn<!-- /TMPL_IF -->
292                                         <!-- TMPL_IF NAME="itemlostcount" -->, Lost<!-- /TMPL_IF -->
293                                         <!-- TMPL_IF NAME="orderedcount" -->, On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
294                                          <br />
295                                         </span>
296                                         <!-- /TMPL_LOOP -->
297                                     <!-- /TMPL_IF -->
298                                 </td>
299                                 <td>
300                                     <!-- TMPL_IF NAME="norequests" -->
301                                         No holds allowed
302                                     <!-- TMPL_ELSE -->
303                                         <a class="reserve" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
304                                             Holds
305                                         </a>
306                                     <!-- /TMPL_IF -->
307                                 </td>
308                             </tr>
309                         <!-- /TMPL_LOOP -->
310                 </table>
311                 </div>
312         <!-- /TMPL_IF -->
313     
314        <div class="pages">
315            <!-- TMPL_VAR NAME='pagination_bar'-->
316        </div>
317     
318         <!-- TMPL_IF NAME="outer_sup_results_loop" -->
319             <h3><!-- TMPL_LOOP NAME="outer_sup_results_loop" --></h3>
320                 <!-- TMPL_IF NAME="inner_sup_results_loop" -->
321                 <!-- TMPL_VAR NAME="servername" -->
322                 <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
323                     <div><a href="<!-- TMPL_VAR NAME="link" -->"><!-- TMPL_VAR NAME="title" --></a></div>
324                 <!-- /TMPL_LOOP -->
325                 <!-- /TMPL_IF -->
326             <!-- /TMPL_LOOP -->
327     <!-- /TMPL_IF -->
328     
329     <!-- TMPL_ELSE -->
330     
331     
332     <!-- /TMPL_IF -->
333
334 </div>
335 </div>
336 <div class="yui-b">
337 <!-- TMPL_INCLUDE NAME="cat-menu.inc" -->
338 <!-- TMPL_INCLUDE NAME="facets.inc" -->
339 </div>
340 </div>
341 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->