bringing back facets to the staff client search
[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                         <option value="">Field-weighted, Relevance Ranked</option>
191         <!--TMPL_IF Name="9523a"-->
192           <option value="1=9523 &gt;i" selected="selected">Popularity (Most to Least)</option>
193         <!--TMPL_ELSE -->
194           <option value="1=9523 &gt;i">Popularity (Most to Least)</option>
195         <!--/TMPL_IF-->
196         <!--TMPL_IF Name="9523d"-->
197           <option value="1=9523 &lt;i" selected="selected">Popularity (Least to Most)</option>
198         <!--TMPL_ELSE -->
199           <option value="1=9523 &lt;i">Popularity (Least to Most)</option>
200         <!--/TMPL_IF-->
201         <!--TMPL_IF Name="1003d"-->
202           <option value="1=1003 &lt;i" selected="selected">Author (A-Z)</option>
203         <!--TMPL_ELSE -->
204           <option value="1=1003 &lt;i">Author (A-Z)</option>
205         <!--/TMPL_IF-->
206         <!--TMPL_IF Name="1003a"-->
207          <option value="1=1003 &gt;i" selected="selected">Author (Z-A)</option>
208         <!--TMPL_ELSE -->
209          <option value="1=1003 &gt;i">Author (Z-A)</option>
210         <!--/TMPL_IF-->
211         <!--TMPL_IF Name="20d"-->
212           <option value="1=20 &lt;i" selected="selected">Call Number (Non-fiction 0-9 to Fiction A-Z)</option>
213         <!--TMPL_ELSE -->
214           <option value="1=20 &lt;i">Call Number (Non-fiction 0-9 to Fiction A-Z)</option>
215         <!--/TMPL_IF-->
216         <!--TMPL_IF Name="20a"-->
217           <option value="1=20 &gt;i" selected="selected">Call Number (Fiction Z-A to Non-fiction 9-0)</option>
218         <!--TMPL_ELSE -->
219           <option value="1=20 &gt;i">Call Number (Fiction Z-A to Non-fiction 9-0)</option>
220         <!--/TMPL_IF-->
221         <!--TMPL_IF Name="31a"-->
222           <option value="1=31 &gt;i" selected="selected">Dates</option>
223         <!--TMPL_ELSE -->
224           <option value="1=31 &gt;i">Dates</option>
225         <!--/TMPL_IF-->
226         <!--TMPL_IF Name="31a"-->
227           <option value="1=31 &gt;i" selected="selected">&nbsp;&nbsp;&nbsp;Publication/Copyright Date: Newest to Oldest</option>
228         <!--TMPL_ELSE -->
229           <option value="1=31 &gt;i">&nbsp;&nbsp;&nbsp;Publication/Copyright Date: Newest to Oldest</option>
230         <!--/TMPL_IF-->
231         <!--TMPL_IF Name="31d"-->
232           <option value="1=31 &lt;i">&nbsp;&nbsp;&nbsp;Publication/Copyright Date: Oldest to Newest</option>
233         <!--TMPL_ELSE -->
234           <option value="1=31 &lt;i">&nbsp;&nbsp;&nbsp;Publication/Copyright Date: Oldest to Newest</option>
235         <!--/TMPL_IF-->
236         <!--TMPL_IF Name="32a"-->
237           <option value="1=32 &gt;i" selected="selected">&nbsp;&nbsp;&nbsp;Acquisition Date: Newest to Oldest</option>
238         <!--TMPL_ELSE -->
239           <option value="1=32 &gt;i">&nbsp;&nbsp;&nbsp;Acquisition Date: Newest to Oldest</option>
240         <!--/TMPL_IF-->
241         <!--TMPL_IF Name="32d"-->
242           <option value="1=32 &lt;i" selected="selected">&nbsp;&nbsp;&nbsp;Acquisition Date: Oldest to Newest</option>
243         <!--TMPL_ELSE -->
244           <option value="1=32 &lt;i">&nbsp;&nbsp;&nbsp;Acquisition Date: Oldest to Newest</option>
245         <!--/TMPL_IF-->
246         <!--TMPL_IF Name="4d"-->
247           <option value="1=4 &lt;i" selected="selected">Title (A-Z)</option>
248         <!--TMPL_ELSE -->
249           <option value="1=4 &lt;i">Title (A-Z)</option>
250         <!--/TMPL_IF-->
251         <!--TMPL_IF Name="4a"-->
252           <option value="1=4 &gt;i" selected="selected">Title (Z-A)</option>
253         <!--TMPL_ELSE -->
254           <option value="1=4 &gt;i">Title (Z-A)</option>
255         <!--/TMPL_IF-->
256                     </select>
257                     </p>
258                     <!-- RESORT END -->
259               </form>
260                     <!-- TABLE RESULTS START -->
261
262                 <table>
263                     <tr>
264                         <th>&nbsp;</th>
265                         <th>Title</th>
266                         <th>Item count</th>
267                         <th>Location</th>
268                         <th>&nbsp;</th>
269                     </tr>
270                         <!-- Actual Search Results -->
271                         <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
272                             <!-- TMPL_IF name="even" -->
273                                 <tr class="highlight">
274                             <!-- TMPL_ELSE -->
275                                 <tr>
276                             <!-- /TMPL_IF -->
277                                 <td>
278                             <!-- TMPL_IF NAME="AmazonContent" -->
279                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
280                                         <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" />
281                                     </a>
282                             <!-- TMPL_ELSE -->
283                                 <!-- TMPL_IF name="imageurl" -->
284                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
285                                 <!-- TMPL_ELSE -->
286                                     <!-- TMPL_VAR name="description" -->
287                                 <!-- /TMPL_IF -->
288                             <!-- /TMPL_IF -->
289                                 </td>
290                             <td>
291                                 <p>
292                                     <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
293                                         <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
294                                             <b><!-- TMPL_VAR NAME="title" --></b>
295                                         </a> <!-- TMPL_VAR NAME="subtitle" -->
296 <!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
297                                     <!-- TMPL_ELSE -->
298                                         <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
299                                             <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
300                                                 <!-- TMPL_VAR NAME="title" --> 
301                                             </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 -->
302                                         <!-- TMPL_ELSE -->
303                                             <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
304                                                 <!-- TMPL_VAR NAME="title" --> 
305                                             </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 -->
306                                         <!-- /TMPL_IF -->
307                                     <!-- /TMPL_IF -->
308                                 </p>
309                                 <!-- TMPL_IF name="summary" -->
310                                     <p><!-- TMPL_VAR name="summary" --></p>
311                                 <!-- TMPL_ELSE -->
312                                     <p>
313                                         <!-- TMPL_IF NAME="author" -->
314                                             <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a>
315                                         <!-- TMPL_ELSE -->
316                                             &nbsp;
317                                         <!-- /TMPL_IF -->
318                                         <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
319                                         <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
320                                         Description: 
321                                         <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
322                                         <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
323                                         <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
324                                         <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
325                                     </p>
326                                 <!-- /TMPL_IF -->
327                                 </td>
328                                 <td>
329                                                     <!-- TMPL_IF NAME="items_count" -->
330                                                     <!-- TMPL_VAR NAME="items_count" -->
331                                                     <!-- /TMPL_IF -->
332                                                       
333                                 </td>
334                                 <td>
335                                     <!-- TMPL_IF NAME="items_loop" -->
336                                         
337                                         <!-- TMPL_LOOP NAME="items_loop" -->
338                                         <!--TMPL_IF Name="unavailable"-->
339                                         <span class="unavailable">
340                                         <!--TMPL_ELSE-->
341                                         <span class="available">
342                                         <!--/TMPL_IF -->
343                                         
344                                             (<!-- TMPL_VAR NAME="count" -->) <!-- TMPL_VAR NAME="branchcode" -->
345                                             <i>
346                                         <!-- TMPL_IF name="location" --><!-- TMPL_VAR name="location" --><!-- /TMPL_IF -->
347                                         <!-- TMPL_IF name="itemcallnumber" --><!-- TMPL_VAR name="itemcallnumber" --><!-- /TMPL_IF -->
348                                          <!-- TMPL_IF name="cn_class" -->
349                                             <a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="cn_class" ESCAPE="URL" -->">
350                                                 <!-- TMPL_VAR NAME="cn_class" -->
351                                             </a>
352                                         <!-- /TMPL_IF -->
353                                         </i>
354                                         <!-- TMPL_IF NAME="onloancount" -->, On loan until <!-- TMPL_VAR NAME="due_date" --><!-- /TMPL_IF -->
355                                         <!-- TMPL_IF NAME="wthdrawncount" -->, Withdrawn<!-- /TMPL_IF -->
356                                         <!-- TMPL_IF NAME="itemlostcount" -->, Lost<!-- /TMPL_IF -->
357                                         <!-- TMPL_IF NAME="orderedcount" -->, On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
358                                          <br />
359                                         </span>
360                                         <!-- /TMPL_LOOP -->
361                                     <!-- /TMPL_IF -->
362                                 </td>
363                                 <td>
364                                     <!-- TMPL_IF NAME="norequests" -->
365                                         No holds allowed
366                                     <!-- TMPL_ELSE -->
367                                         <a class="reserve" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
368                                             Holds
369                                         </a>
370                                     <!-- /TMPL_IF -->
371                                 </td>
372                             </tr>
373                         <!-- /TMPL_LOOP -->
374                 </table>
375                 </div>
376         <!-- /TMPL_IF -->
377     
378        <div class="pages">
379            <!-- TMPL_VAR NAME='pagination_bar'-->
380        </div>
381     
382         <!-- TMPL_IF NAME="outer_sup_results_loop" -->
383             <h3><!-- TMPL_LOOP NAME="outer_sup_results_loop" --></h3>
384                 <!-- TMPL_IF NAME="inner_sup_results_loop" -->
385                 <!-- TMPL_VAR NAME="servername" -->
386                 <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
387                     <div><a href="<!-- TMPL_VAR NAME="link" -->"><!-- TMPL_VAR NAME="title" --></a></div>
388                 <!-- /TMPL_LOOP -->
389                 <!-- /TMPL_IF -->
390             <!-- /TMPL_LOOP -->
391     <!-- /TMPL_IF -->
392     
393     <!-- TMPL_ELSE -->
394     
395     
396     <!-- /TMPL_IF -->
397
398 </div>
399 </div>
400 <div class="yui-b">
401 <!-- TMPL_INCLUDE NAME="cat-menu.inc" -->
402 <!-- TMPL_INCLUDE NAME="facets.inc" -->
403 </div>
404 </div>
405 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->