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