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