more work on the results page
[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="query_desc" --><!-- TMPL_VAR NAME="limit_desc" -->'<!-- 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="query_desc" --><!-- TMPL_VAR NAME="limit_desc" --></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="query_desc" --><!-- TMPL_VAR NAME="limit_desc" -->'
31     </h3>
32         <!-- TMPL_IF NAME="stopwords_removed" --><div><p class="tip">Ignored the following common words: "<!-- TMPL_VAR NAME="stopwords_removed" -->"<p></div><!-- /TMPL_IF -->
33     <!-- TMPL_ELSE -->
34         <!-- TMPL_IF NAME="searchdesc" -->
35             <h3>No results found</h3>
36             <p>
37                 No results match your search for <span style="font-weight: bold;">&ldquo;<!-- TMPL_VAR NAME="query_desc" --><!-- TMPL_VAR NAME="limit_desc" -->&rdquo;</span> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog.
38             </p>
39         <!-- TMPL_ELSE -->
40             <h3>No results found</h3>
41             <p>
42             You did not specify any search criteria.
43             </p>
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="q" 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                                 <!-- TMPL_IF name="even" -->
98                     <tr class="highlight">
99                                 <!-- TMPL_ELSE -->
100                                         <tr>
101                                 <!-- /TMPL_IF -->
102                         <td>
103                             <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>
104                         </td>
105                         <td>
106                             <!-- TMPL_VAR NAME="subtitle" -->
107                         </td>
108                     </tr>
109                 <!-- /TMPL_LOOP -->
110             </table>
111             </form>
112         <!-- TMPL_ELSE -->
113             <!-- ######### -->
114             <div id="facets">
115                 <dl>
116                 <!-- TMPL_IF NAME="NoZebra" -->
117                 <!-- FACETS START -->
118                 <!-- TMPL_IF NAME="opacfacets" -->
119                     <dt id="facets1" onclick="var Elt=document.getElementById('facets_list');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
120                     Refine your search
121                     </dt>
122                     <dd id="facets_list" style="display:none;">
123                     <ul>
124                     <!-- TMPL_LOOP NAME="facets_loop" -->
125                     <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
126                         <ul>
127                         <!-- TMPL_LOOP NAME="facets" -->
128                             <li>
129                                 <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" -->">
130                                     <!-- TMPL_VAR NAME="facet_label_value" -->
131                                 </a> (<!-- TMPL_VAR NAME="facet_count" -->)
132                             </li>
133                         <!-- /TMPL_LOOP -->
134                         <!-- TMPL_IF NAME="expandable" -->
135                             <li class="showmore">
136                                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
137                                     Show More
138                                 </a>
139                             </li>
140                         <!-- /TMPL_IF -->
141                         </ul>
142                     </li>
143                     <!-- /TMPL_LOOP -->
144                     </ul>
145                     </dd>
146                 <!-- /TMPL_IF -->
147                 <!-- FACETS END -->
148                 <!-- /TMPL_IF --> <!-- NoZebra -->
149                 <!-- BULKEDIT START -->
150                 <!--TMPL_IF Name="bulkedit"--> 
151                     <dt id="hbulkedit" onclick="var Elt=document.getElementById('parambulkedit');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
152                     Bulk edit
153                     </dt>
154                     <dd id="parambulkedit" style="display:none;">
155                     <form name="bulkedit" action="search.pl">
156                         <input type="hidden" name="q" value="<!-- TMPL_VAR NAME="searchdesc" -->" />
157                         <input type="hidden" name="operation" value="bulkedit" />
158                         Search for Value :<input type="text" name="inputvalue" value="" /><br />
159                         Subfield       <select name="tagsubfield">
160                         <!--TMPL_LOOP Name="tagsubfields"-->
161                             <option value="<!--TMPL_VAR Name="tagsubfield"-->"> <!--TMPL_VAR Name="tagsubfield"-->
162                             <!-- --<TMPL_VAR Name="tagdesc">--<TMPL_VAR Name="subfielddesc">-->
163                             </option>
164                         <!--/TMPL_LOOP -->
165                         </select><br />
166                         Change to : <input type="text" name="targetvalue" value="" /><br />
167                         Test only : <input type="checkbox" name="test" value="1" /><br />
168                         <input type="Submit" name="Edit" value="Edit" />
169                     </form>
170                     </dd>
171                     <!-- TMPL_IF NAME="bulkeditresults" -->
172                     <dd><em>
173                         tagsubfield : <!-- TMPL_VAR NAME="countchanged" --> Change <!-- TMPL_VAR NAME="countchanged" --> To <!-- TMPL_VAR NAME="countchanged" --><br />
174                         <!-- TMPL_VAR NAME="countchanged" --> biblios changed <br />
175                         <!--TMPL_VAR Name="countunchanged"--> biblios unchanged<br />
176                         <em>
177                     </dd>
178                     <!-- /TMPL_IF -->
179                 <!--/TMPL_IF--> 
180                 <!-- BULKEDIT END -->
181                 </dl>
182             </div>
183             <!-- ######### -->
184
185             <div id="searchresults">
186                                 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="myform" id="mainform">
187                 <!-- TMPL_IF NAME="searchdesc" -->
188                                         <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
189                                         <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
190                                         <!-- /TMPL_LOOP -->
191                                         <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
192                                         <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
193                     <!-- /TMPL_LOOP -->
194
195
196                 <!-- /TMPL_IF -->
197                                 <!-- RE-SORT START -->
198                     <p>
199                     Re-sort results
200                     <select id="sort_by" name="sort_by" onchange="document.myform.submit();">
201                                         <!-- TMPL_INCLUDE NAME="resort_form.inc" -->
202                                         </select>
203                     </p>
204                     <!-- RESORT END -->
205                                 </form>
206         
207                     <!-- TABLE RESULTS START -->
208
209                 <table>
210                     <tr>
211                         <th>&nbsp;</th>
212                         <th>Results</th>
213                         <th>&nbsp;</th>
214                     </tr>
215                         <!-- Actual Search Results -->
216                         <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
217                             <!-- TMPL_IF name="even" -->
218                                 <tr class="highlight">
219                             <!-- TMPL_ELSE -->
220                                 <tr>
221                             <!-- /TMPL_IF -->
222                                 <td>
223                             <!-- TMPL_IF NAME="AmazonContent" -->
224                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
225                                         <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" />
226                                     </a>
227                             <!-- TMPL_ELSE -->
228                                 <!-- TMPL_IF name="imageurl" -->
229                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
230                                 <!-- TMPL_ELSE -->
231                                     <!-- TMPL_VAR name="description" -->
232                                 <!-- /TMPL_IF -->
233                             <!-- /TMPL_IF -->
234                                 </td>
235                             <td>
236                                 <p><!-- TMPL_VAR NAME="result_number" -->.
237                                     <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
238                                         <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
239                                             <b><!-- TMPL_VAR NAME="title" --></b>
240                                         </a> <!-- TMPL_VAR NAME="subtitle" -->
241 <!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
242                                     <!-- TMPL_ELSE -->
243                                         <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
244                                             <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
245                                                 <!-- TMPL_VAR NAME="title" --> 
246                                             </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 -->
247                                         <!-- TMPL_ELSE -->
248                                             <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
249                                                 <!-- TMPL_VAR NAME="title" --> 
250                                             </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 -->
251                                         <!-- /TMPL_IF -->
252                                     <!-- /TMPL_IF -->
253                                 </p>
254                                 <!-- TMPL_IF name="summary" -->
255                                     <p><!-- TMPL_VAR name="summary" --></p>
256                                 <!-- TMPL_ELSE -->
257                                     <p>
258                                         <!-- TMPL_IF NAME="author" -->
259                                             <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a>
260                                         <!-- TMPL_ELSE -->
261                                             &nbsp;
262                                         <!-- /TMPL_IF -->
263                                         <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
264                                         <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
265                                         Description: 
266                                         <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
267                                         <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
268                                         <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
269                                         <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
270                                     </p>
271                                 <!-- /TMPL_IF -->
272                                                                         <p class="availability">
273                                                                         <!-- TMPL_IF NAME="items_loop" -->
274                                                                         <span class="available"><strong><!-- TMPL_IF NAME="items_count" --><!-- TMPL_VAR NAME="items_count" --><!-- /TMPL_IF --> copies available at:</strong> <!-- TMPL_LOOP NAME="items_loop" --><!-- <!-- TMPL_VAR NAME="branchcode" --> --><!-- 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" -->),<!-- /TMPL_LOOP --></span>
275                                                                         <!-- TMPL_ELSE -->
276                                                                         <span class="unavailable">No copies available: </span>
277                                                                         <!-- /TMPL_IF -->
278                                                                         <span class="unavailable">
279                                                                         <!-- TMPL_IF NAME="onloancount" --> On loan (<!-- TMPL_VAR NAME="onloancount" -->), <!-- /TMPL_IF -->
280                                                                         <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->), <!-- /TMPL_IF -->
281                                                                         <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->)<!-- /TMPL_IF -->
282                                                                         <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
283                                                                         </span>
284                                                         </p>
285                                 </td>
286                                 <td>
287                                     <!-- TMPL_IF NAME="norequests" -->
288                                         No holds allowed
289                                     <!-- TMPL_ELSE -->
290                                         <a class="reserve" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
291                                             Holds
292                                         </a>
293                                     <!-- /TMPL_IF -->
294                                 </td>
295                             </tr>
296                         <!-- /TMPL_LOOP -->
297                 </table>
298                 </div>
299         <!-- /TMPL_IF -->
300                 <!-- TMPL_INCLUDE NAME="page-numbers.inc" --> 
301         <!-- TMPL_IF NAME="outer_sup_results_loop" -->
302             <h3><!-- TMPL_LOOP NAME="outer_sup_results_loop" --></h3>
303                 <!-- TMPL_IF NAME="inner_sup_results_loop" -->
304                 <!-- TMPL_VAR NAME="servername" -->
305                 <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
306                     <div><a href="<!-- TMPL_VAR NAME="link" -->"><!-- TMPL_VAR NAME="title" --></a></div>
307                 <!-- /TMPL_LOOP -->
308                 <!-- /TMPL_IF -->
309             <!-- /TMPL_LOOP -->
310     <!-- /TMPL_IF -->
311     
312     <!-- TMPL_ELSE -->
313     
314     
315     <!-- /TMPL_IF -->
316
317 </div>
318 </div>
319 <div class="yui-b">
320 <!-- TMPL_INCLUDE NAME="facets.inc" -->
321 </div>
322 </div>
323 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->