merging opac details only for items with the same branch+location+itemcallnumber...
[koha.git] / koha-tmpl / opac-tmpl / prog / en / opac-results.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_VAR NAME="LibraryNameTitle" -->
3
4 <!-- TMPL_IF NAME="searchdesc" -->
5     Results of Search for '<!-- TMPL_VAR NAME="searchdesc" -->'
6 <!-- TMPL_ELSE -->
7     You did not specify any search criteria
8 <!-- /TMPL_IF -->
9
10 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
11
12 <!--TMPL_INCLUDE NAME="masthead.inc" -->
13 <!--TMPL_INCLUDE NAME="navigation.inc" -->
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/opac-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
27 <!-- TMPL_IF NAME="total" -->
28 <h3><!-- TMPL_VAR NAME="total" --> results found for '<!-- TMPL_VAR NAME="searchdesc" -->'. <a href="http://o15.bureau.paulpoulain.com/cgi-bin/koha/opac-search.pl">[ Perform a new search ]</a></h3>
29 <!-- TMPL_ELSE -->
30 <!-- TMPL_IF NAME="searchdesc" -->
31 <h3> No Result found !</h3>
32 <p>
33     No results match your search for <span style="font-weight: bold;">&ldquo;<!-- TMPL_VAR NAME="searchdesc" -->&rdquo;</span> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog.
34 </p>
35 <a href="/cgi-bin/koha/opac-search.pl" title="New search">Perform a new search</a>
36 <!-- TMPL_ELSE -->
37 <h3> No result found !</h3>
38 <p>
39     You did not specify any search criteria.
40 </p>
41 <a href="/cgi-bin/koha/opac-search.pl" title="New search">Perform a new search</a>
42 <!-- /TMPL_IF -->
43 <!-- /TMPL_IF -->
44
45 <!-- TMPL_IF NAME="query_error" -->
46 <br /><br />
47 Error :
48 <span  class="problem">
49     <!-- TMPL_VAR NAME="query_error" -->
50 </span>
51 <!-- /TMPL_IF -->
52
53 <!-- Search Results Table -->
54 <!-- TMPL_IF NAME="total" -->
55 <!-- TMPL_IF NAME="scan" -->
56 <h1>Scan Index:</h1>
57 <form action="/cgi-bin/koha/opac-search.pl" method="POST">
58     <table>
59         <tr>
60             <td>
61                 Scan Index for: <input type="text" name="qf" id="scan-index" size="35" value="" />
62             </td>
63         </tr>
64         <tr>
65             <td>
66                 <label for="scan-index">Indexed in:</label>
67                 <select name="idx" id="scan-index">
68                     <option value="">Any Word</option>
69                     <option value="any/phr:">Any Phrase</option>
70                     <option value="ti:">Title</option>
71                     <option value="ti,phr:">Title Phrase</option>
72                     <option value="au,phr:">Author</option>
73                     <option value="su:">Subject</option>
74                     <option value="su,phr:">Subject Phrase</option>
75                     <option value="se:">Series</option>
76                     <option value="pb:">Publisher</option>
77                     <option value="nt:">Notes</option>
78                     <option value="se:">Series Title</option>
79                     <option value="sn:">ISBN</option>
80                     <option value="ss:">ISSN</option>
81                 </select>
82                 <input type="hidden" name="scan" value="1" />
83             </td>
84         </tr>
85     </table>
86 </form>
87
88 <form action="/cgi-bin/koha/opac-search.pl" method="POST">
89     <table>
90         <tr>
91             <th>Term/Phrase</th>
92             <th>Count</th>
93         </tr>
94         <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
95         <tr<!-- TMPL_IF name="even" --> class="highlight"<!-- /TMPL_IF -->>
96             <td>
97                 <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="scan_use" escape="url" -->&quot;<!-- TMPL_VAR NAME="title" -->&quot;"><!-- TMPL_VAR NAME="title" --></a>
98             </td>
99             <td>
100                 <!-- TMPL_VAR NAME="subtitle" -->
101             </td>
102         </tr>
103         <!-- /TMPL_LOOP -->
104     </table>
105 </form>
106 <!-- TMPL_ELSE -->
107
108 <form action="/cgi-bin/koha/opac-search.pl" method="POST" name="myform" id="mainform">
109     
110     <!-- TMPL_IF NAME="searchdesc" -->
111     <input type="hidden" name="q" value="<!-- TMPL_VAR NAME="searchdesc" escape="html" -->" />
112     <!-- /TMPL_IF -->
113     
114     <div class="searchresults">
115         
116         <!-- RE-SORT START -->
117         <!-- TMPL_IF NAME="sort_by_loop" -->
118         <p>
119             Re-sort results
120             <select id="sort_by" name="sort_by" onChange="javascript:document.myform.submit();">
121                 <option value="">Field-weighted, Relevance Ranked</option>
122                 <!-- TMPL_LOOP NAME="sort_by_loop" -->
123                 <option value="<!-- TMPL_VAR NAME="value" -->" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="label" --></option>
124                 <!-- /TMPL_LOOP -->
125             </select>
126         </p>
127         <!-- /TMPL_IF -->
128         <!-- RESORT END -->
129 </form>
130         <!-- ######### -->
131         <!-- FACETS START -->
132         <!-- TMPL_IF NAME="opacfacets" -->
133         <div id="facets" >
134             <dl>
135             <dt onclick="var Elt=document.getElementById('facets_list');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">Refine Your Search</dt>
136             <dd id="facets_list" style="display:none">
137                 <!-- TMPL_LOOP NAME="facets_loop" -->
138                 <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
139                     <ul>
140                         <!-- TMPL_LOOP NAME="facets" -->
141                         <li>
142                             <a href="/cgi-bin/koha/opac-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" -->">
143                                 <!-- TMPL_VAR NAME="facet_label_value" -->
144                             </a> (<!-- TMPL_VAR NAME="facet_count" -->)
145                         </li>
146                         <!-- /TMPL_LOOP -->
147                         <!-- TMPL_IF NAME="expandable" -->
148                         <li class="showmore">
149                             <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
150                                 Show More
151                             </a>
152                         </li>
153                         <!-- /TMPL_IF -->
154                     </ul>
155                 </li>
156                 <!-- /TMPL_LOOP -->
157             </ul>
158             </dd>
159         </div>
160         <!-- /TMPL_IF -->
161         <!-- FACETS END -->
162         
163         <!-- ######### -->
164         
165         <!-- TABLE RESULTS START -->
166         <!-- TMPL_IF name="opacbookbag" -->
167             <form action="opac-searchresults.pl" method="get" name="bookbag_form">
168             <input type="submit" class="button" value="Add checked items to book bag" onclick="addMultiple(); return false;" /> 
169             <input type="reset" value="Clear All" class="button" />
170         <!-- /TMPL_IF -->
171         <table>
172             <tr>
173                 <th><input type="checkbox" name="select_all" onClick="SelectAll()" /></th>
174                 <th>Title</th>
175                 <th>Location</th>
176                 <!-- TMPL_IF NAME="RequestOnOpac" -->
177                 <th>Reservation</th>
178                 <!-- /TMPL_IF -->
179             </tr>
180             <!-- Actual Search Results -->
181             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
182             <!-- TMPL_IF name="even" -->
183                 <tr class="highlight">
184             <!-- TMPL_ELSE -->
185                 <tr>
186             <!-- /TMPL_IF -->
187                     <td>
188                         <!-- TMPL_IF name="opacbookbag" -->
189                             <input type="checkbox" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to book bag" />
190                         <!-- /TMPL_IF -->
191                         <!-- TMPL_IF NAME="AmazonContent" -->
192                         <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
193                             <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" />
194                         </a>
195                         <!-- TMPL_ELSE -->
196                         <!-- TMPL_IF name="imageurl" -->
197                         <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->"/>
198                         <!-- TMPL_ELSE -->
199                         <!-- TMPL_VAR name="description" -->
200                         <!-- /TMPL_IF -->
201                         <!-- /TMPL_IF -->
202                     </td>
203                     <td>
204                         <p>
205                             <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
206                             <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
207                                 <!-- TMPL_VAR NAME="title" -->
208                             </a> <!-- TMPL_VAR NAME="subtitle" -->
209                             <!-- TMPL_ELSE -->
210                             <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
211                             <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
212                                 <!-- TMPL_VAR NAME="title" -->
213                             </a> <!-- TMPL_VAR NAME="subtitle" -->
214                             <!-- TMPL_ELSE -->
215                             <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
216                                 <!-- TMPL_VAR NAME="title" -->
217                             </a> <!-- TMPL_VAR NAME="subtitle" -->
218                             <!-- /TMPL_IF -->
219                             <!-- /TMPL_IF -->
220                         </p>
221                         <!-- TMPL_IF name="summary" -->
222                         <p><!-- TMPL_VAR name="summary" --></p>
223                         <!-- TMPL_ELSE -->
224                         <p>
225                             <!-- TMPL_IF NAME="author" -->
226                             <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="author" --></a>
227                             <!-- TMPL_ELSE -->
228                             &nbsp;
229                             <!-- /TMPL_IF -->
230                             <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
231                             <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
232                             <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
233                             <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
234                             <!-- TMPL_IF name="notes" --> : <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
235                             <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
236                             <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
237                         </p>
238                         <!-- /TMPL_IF -->
239                     </td>
240                     <td>
241                         <!-- TMPL_IF NAME="items_loop" -->
242                         <span class="available">
243                             <!-- TMPL_LOOP NAME="items_loop" -->
244                                 <!-- TMPL_VAR NAME="count" --> <!-- TMPL_VAR NAME="branchname" -->
245                                 <i>
246                                 <!-- TMPL_IF name="location" --> <!-- TMPL_VAR name="location" --><!-- /TMPL_IF -->
247                                 <!-- TMPL_IF name="itemcallnumber" --> <!-- TMPL_VAR name="itemcallnumber" --><!-- /TMPL_IF -->
248                                 <!-- TMPL_IF name="classification" -->
249                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
250                                         <!-- TMPL_VAR NAME="classification" -->
251                                     </a>
252                                 <!-- /TMPL_IF -->
253                                 </i>
254                                 <br />
255                             <!-- /TMPL_LOOP -->
256                         </span>
257                         <!-- /TMPL_IF -->
258                         <span class="unavailable">
259                             <!-- TMPL_IF NAME="onloancount" --> On loan (<!-- TMPL_VAR NAME="onloancount" -->),<br /> <!-- /TMPL_IF -->
260                             <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->),<br /> <!-- /TMPL_IF -->
261                             <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->)<br /><!-- /TMPL_IF -->
262                             <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
263                         </span>
264                     </td>
265                     <!-- TMPL_IF NAME="RequestOnOpac" -->
266                     <td>
267                         <!-- TMPL_IF NAME="norequests" -->
268                         Not Reserveable
269                         <!-- TMPL_ELSE -->
270                         <a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
271                             Reserves
272                         </a>
273                         <!-- /TMPL_IF -->
274                     </td>
275                     <!-- /TMPL_IF -->
276                 </tr>
277                 <!-- /TMPL_LOOP -->
278             </table>
279         </div>
280     </form>
281     <!-- /TMPL_IF -->
282     
283     <!-- TMPL_IF NAME="PAGE_NUMBERS" -->
284     <div class="pages">
285         <!-- Row of numbers corresponding to search result pages -->
286         <!-- TMPL_IF NAME="previous_page_offset" -->
287         <a class="nav" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="previous_page_offset" -->">
288             &lt;&lt; Previous
289         </a>
290         <!-- /TMPL_IF -->
291         <!-- TMPL_LOOP NAME="PAGE_NUMBERS" -->
292         <!-- TMPL_IF NAME="highlight" -->
293         <span class="current"><!-- TMPL_VAR NAME="pg" --></span>
294         <!-- TMPL_ELSE -->
295         <a class="nav" href="/cgi-bin/koha/opac-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 -->">
296             <!-- TMPL_VAR NAME="pg" -->
297         </a>
298         <!-- /TMPL_IF -->
299         <!-- /TMPL_LOOP -->
300         <!-- TMPL_IF NAME="next_page_offset" -->
301         <a class="nav" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;offset=<!-- TMPL_VAR NAME="next_page_offset" -->">
302             Next &gt;&gt;
303         </a>
304         <!-- /TMPL_IF -->
305     </div>
306     <!-- /TMPL_IF -->
307     
308     <!-- TMPL_IF NAME="outer_sup_results_loop" -->
309     <h3><!-- TMPL_LOOP NAME="outer_sup_results_loop" --></h3>
310     <!-- TMPL_IF NAME="inner_sup_results_loop" -->
311     <!-- TMPL_VAR NAME="servername" -->
312     <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
313     <div><a href="<!-- TMPL_VAR NAME="link" -->"><!-- TMPL_VAR NAME="title" --></a></div>
314     <!-- /TMPL_LOOP -->
315     <!-- /TMPL_IF -->
316     <!-- /TMPL_LOOP -->
317     <!-- /TMPL_IF -->
318     
319     <!-- TMPL_ELSE -->
320     
321     
322     <!-- /TMPL_IF -->
323     
324 </div>
325 </div>
326 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->