reverting to more mature page numbering system
[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                     <input type="hidden" name="q" value="<!-- TMPL_VAR NAME="searchdesc" escape="html" -->" />
188                 <!-- /TMPL_IF -->
189                                 <!-- RE-SORT START -->
190                     <p>
191                     Re-sort results
192                     <select id="sort_by" name="sort_by" onchange="document.myform.submit();">
193                                         <!-- TMPL_INCLUDE NAME="resort_form.inc" -->
194                                         </select>
195                     </p>
196                     <!-- RESORT END -->
197                                 </form>
198         
199                     <!-- TABLE RESULTS START -->
200
201                 <table>
202                     <tr>
203                         <th>&nbsp;</th>
204                         <th>Title</th>
205                         <th>Item count</th>
206                         <th>Location</th>
207                         <th>&nbsp;</th>
208                     </tr>
209                         <!-- Actual Search Results -->
210                         <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
211                             <!-- TMPL_IF name="even" -->
212                                 <tr class="highlight">
213                             <!-- TMPL_ELSE -->
214                                 <tr>
215                             <!-- /TMPL_IF -->
216                                 <td>
217                             <!-- TMPL_IF NAME="AmazonContent" -->
218                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
219                                         <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" />
220                                     </a>
221                             <!-- TMPL_ELSE -->
222                                 <!-- TMPL_IF name="imageurl" -->
223                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
224                                 <!-- TMPL_ELSE -->
225                                     <!-- TMPL_VAR name="description" -->
226                                 <!-- /TMPL_IF -->
227                             <!-- /TMPL_IF -->
228                                 </td>
229                             <td>
230                                 <p>
231                                     <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
232                                         <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
233                                             <b><!-- TMPL_VAR NAME="title" --></b>
234                                         </a> <!-- TMPL_VAR NAME="subtitle" -->
235 <!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
236                                     <!-- TMPL_ELSE -->
237                                         <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
238                                             <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
239                                                 <!-- TMPL_VAR NAME="title" --> 
240                                             </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 -->
241                                         <!-- TMPL_ELSE -->
242                                             <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
243                                                 <!-- TMPL_VAR NAME="title" --> 
244                                             </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 -->
245                                         <!-- /TMPL_IF -->
246                                     <!-- /TMPL_IF -->
247                                 </p>
248                                 <!-- TMPL_IF name="summary" -->
249                                     <p><!-- TMPL_VAR name="summary" --></p>
250                                 <!-- TMPL_ELSE -->
251                                     <p>
252                                         <!-- TMPL_IF NAME="author" -->
253                                             <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a>
254                                         <!-- TMPL_ELSE -->
255                                             &nbsp;
256                                         <!-- /TMPL_IF -->
257                                         <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
258                                         <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
259                                         Description: 
260                                         <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
261                                         <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
262                                         <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
263                                         <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
264                                     </p>
265                                 <!-- /TMPL_IF -->
266                                 </td>
267                                 <td>
268                                                     <!-- TMPL_IF NAME="items_count" -->
269                                                     <!-- TMPL_VAR NAME="items_count" -->
270                                                     <!-- /TMPL_IF -->
271                                                       
272                                 </td>
273                                 <td>
274                                     <!-- TMPL_IF NAME="items_loop" -->
275                                         
276                                         <!-- TMPL_LOOP NAME="items_loop" -->
277                                         <!--TMPL_IF Name="unavailable"-->
278                                         <span class="unavailable">
279                                         <!--TMPL_ELSE-->
280                                         <span class="available">
281                                         <!--/TMPL_IF -->
282                                         
283                                             (<!-- TMPL_VAR NAME="count" -->) <!-- TMPL_VAR NAME="branchcode" -->
284                                             <i>
285                                         <!-- TMPL_IF name="location" --><!-- TMPL_VAR name="location" --><!-- /TMPL_IF -->
286                                         <!-- TMPL_IF name="itemcallnumber" --><!-- TMPL_VAR name="itemcallnumber" --><!-- /TMPL_IF -->
287                                          <!-- TMPL_IF name="cn_class" -->
288                                             <a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="cn_class" ESCAPE="URL" -->">
289                                                 <!-- TMPL_VAR NAME="cn_class" -->
290                                             </a>
291                                         <!-- /TMPL_IF -->
292                                         </i>
293                                         <!-- TMPL_IF NAME="onloancount" -->, On loan until <!-- TMPL_VAR NAME="due_date" --><!-- /TMPL_IF -->
294                                         <!-- TMPL_IF NAME="wthdrawncount" -->, Withdrawn<!-- /TMPL_IF -->
295                                         <!-- TMPL_IF NAME="itemlostcount" -->, Lost<!-- /TMPL_IF -->
296                                         <!-- TMPL_IF NAME="orderedcount" -->, On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
297                                          <br />
298                                         </span>
299                                         <!-- /TMPL_LOOP -->
300                                     <!-- /TMPL_IF -->
301                                 </td>
302                                 <td>
303                                     <!-- TMPL_IF NAME="norequests" -->
304                                         No holds allowed
305                                     <!-- TMPL_ELSE -->
306                                         <a class="reserve" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
307                                             Holds
308                                         </a>
309                                     <!-- /TMPL_IF -->
310                                 </td>
311                             </tr>
312                         <!-- /TMPL_LOOP -->
313                 </table>
314                 </div>
315         <!-- /TMPL_IF -->
316     
317 <!-- TMPL_IF NAME="PAGE_NUMBERS" --><div class="pages">
318     <!-- Row of numbers corresponding to search result pages -->
319         <!-- TMPL_IF NAME="previous_page_offset" --><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="previous_page_offset" --><!-- TMPL_IF NAME="sort_by" -->&amp;sort_by=<!-- TMPL_VAR NAME="sort_by" --><!-- /TMPL_IF -->">&lt;&lt; Previous</a><!-- /TMPL_IF -->
320     <!-- TMPL_LOOP NAME="PAGE_NUMBERS" --><!-- TMPL_IF NAME="highlight" --><span class="current"><!-- TMPL_VAR NAME="pg" --></span><!-- TMPL_ELSE -->        <a class="nav" href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="offset" --><!-- TMPL_IF NAME="sort_by" -->&amp;sort_by=<!-- TMPL_VAR NAME="sort_by" --><!-- /TMPL_IF -->"><!-- TMPL_VAR NAME="pg" --></a><!-- /TMPL_IF -->
321     <!-- /TMPL_LOOP -->
322
323         <!-- TMPL_IF NAME="next_page_offset" --><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="next_page_offset" --><!-- TMPL_IF NAME="sort_by" -->&amp;sort_by=<!-- TMPL_VAR NAME="sort_by" --><!-- /TMPL_IF -->">Next &gt;&gt;</a><!-- /TMPL_IF -->
324 </div><!-- /TMPL_IF -->
325     
326         <!-- TMPL_IF NAME="outer_sup_results_loop" -->
327             <h3><!-- TMPL_LOOP NAME="outer_sup_results_loop" --></h3>
328                 <!-- TMPL_IF NAME="inner_sup_results_loop" -->
329                 <!-- TMPL_VAR NAME="servername" -->
330                 <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
331                     <div><a href="<!-- TMPL_VAR NAME="link" -->"><!-- TMPL_VAR NAME="title" --></a></div>
332                 <!-- /TMPL_LOOP -->
333                 <!-- /TMPL_IF -->
334             <!-- /TMPL_LOOP -->
335     <!-- /TMPL_IF -->
336     
337     <!-- TMPL_ELSE -->
338     
339     
340     <!-- /TMPL_IF -->
341
342 </div>
343 </div>
344 <div class="yui-b">
345 <!-- TMPL_INCLUDE NAME="facets.inc" -->
346 </div>
347 </div>
348 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->