Bug 3550 : Display changes needed in opac-results-grouped too
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-results-grouped.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;
3 <!-- TMPL_IF NAME="searchdesc" -->
4         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 -->
5 <!-- TMPL_ELSE -->
6     You did not specify any search criteria.
7 <!-- /TMPL_IF -->
8 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
9 <link rel="alternate" type="application/rss+xml" title="Koha - RSS"
10 href="/cgi-bin/koha/opac-rss.pl?<!-- TMPL_VAR name="query_cgi"--><!-- TMPL_VAR NAME="limit_cgi" -->" />
11 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
12 <script type="text/javascript">
13 //<![CDATA[
14
15 var q_array = new Array();  // will hold the search terms, if possible
16
17 $(document).ready(function(){
18         $('#sortsubmit').hide();
19     $('#sort_by').change(function() {
20         $('#bookbag_form').submit();
21     });
22         $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">Clear All</a>");
23         $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">Select All</a>");
24         $("span.addto").html("<label for=\"addto\">Add to: </label><select name=\"addto\" id=\"addto\"><option value=\"\"></option><!-- TMPL_IF name="opacbookbag" --><option value=\"addtocart\">Cart</option><!-- /TMPL_IF --><!-- TMPL_IF NAME="virtualshelves" --><!-- TMPL_IF NAME="loggedinusername" --><optgroup label=\"Lists:\"><!-- TMPL_IF NAME="barshelves" --><!-- TMPL_LOOP NAME="barshelvesloop" --><!-- TMPL_IF EXPR="category == 1" --><option id=\"s<!-- TMPL_VAR NAME="shelfnumber" -->\" value=\"addtolist\"><!-- TMPL_VAR NAME="shelfname" --></option><!-- /TMPL_IF --><!-- /TMPL_LOOP --><!-- /TMPL_IF --><option value=\"newlist\">[ New List ]</option></optgroup><!-- TMPL_ELSE --><option value=\"newlist\">List</option><!-- /TMPL_IF --><!-- /TMPL_IF --></select> <input type=\"submit\" class=\"submit\" value=\"Save\" />");
25         $("#addto").change(function(){
26                 cartList();
27         });
28         $(".addto").find("input:submit").click(function(){
29                 cartList();
30                 return false;
31         });
32         function cartList(){
33                         if($("#addto").find("option:selected").attr("value") == "addtolist"){
34                         var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
35                         <!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
36                         Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
37                         }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
38                         return false;
39                 } else if($("#addto").find("option:selected").attr("value") == "newlist"){
40                         <!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
41                         Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
42                         }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
43                         return false;
44                 }
45                 if($("#addto").find("option:selected").attr("value") == "addtocart"){
46                         addMultiple();
47                         return false;
48                  }
49         }
50     $("#CheckAll").click(function(){
51         $("#bookbag_form").checkCheckboxes();
52         return false;
53     });
54     $("#CheckNone").click(function(){
55         $("#bookbag_form").unCheckCheckboxes();
56         return false;
57     });
58     <!-- TMPL_IF NAME="query_desc" -->
59     var query_desc = "<!-- TMPL_VAR NAME="query_desc" ESCAPE="JS"-->";
60     q_array = query_desc.split(" ");
61     highlightOn();
62     $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
63     $("#highlight_toggle_off").show().click(function() {highlightOff();});
64     <!-- /TMPL_IF -->
65 });
66
67 function highlightOff() {
68     $("td").removeHighlight();
69     $(".highlight_toggle").toggle();
70 }
71 function highlightOn() {
72     var x;
73     for (x in q_array) {
74         $("td").highlight(q_array[x]);
75     }
76     $(".highlight_toggle").toggle();
77 }
78 //]]>
79 </script>
80 </head>
81 <body id="results">
82 <!--TMPL_INCLUDE NAME="masthead.inc" -->
83
84 <div id="doc3" class="yui-t1">
85    <div id="bd">
86
87         <div id="yui-main">
88
89         <div class="yui-b">
90   <!-- TMPL_IF NAME="koha_spsuggest" -->
91         Did you mean:
92     <ul style="list-style: none;">
93         <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
94         <li>
95             <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
96         </li>
97         <!-- /TMPL_LOOP -->
98     </ul>
99 <!-- /TMPL_IF -->
100
101 <!-- TMPL_IF NAME="query_error" -->
102 <div class="dialog alert">
103         <h4>Error:</h4>
104     <!-- TMPL_VAR NAME="query_error" -->
105 </div>
106 <!-- /TMPL_IF -->
107
108 <!-- Search Results Table -->
109 <!-- TMPL_IF NAME="total" -->
110 <!-- TMPL_IF NAME="scan" -->
111     <h1>Scan Index:</h1>
112     <form action="/cgi-bin/koha/opac-search.pl" method="get">
113         <table>
114             <tr>
115                 <td>
116                     Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
117                 </td>
118             </tr>
119             <tr>
120                 <td>
121                     <label for="scan-index">Indexed in:</label>
122                     <select name="idx" id="scan-index">
123                         <option value="">Any Word</option>
124                         <option value="kw,phr:">Any Phrase</option>
125                         <option value="ti:">Title</option>
126                         <option value="ti,phr:">Title Phrase</option>
127                         <option value="au,phr:">Author</option>
128                         <option value="su:">Subject</option>
129                         <option value="su,phr:">Subject Phrase</option>
130                         <option value="se:">Series</option>
131                         <option value="pb:">Publisher</option>
132                         <option value="nt:">Notes</option>
133                         <option value="se:">Series Title</option>
134                         <option value="sn:">ISBN</option>
135                         <option value="ss:">ISSN</option>
136                     </select>
137                     <input type="hidden" name="scan" value="1" />
138                 </td>
139             </tr>
140         </table>
141     </form>
142
143     <form action="/cgi-bin/koha/opac-search.pl" method="get">
144         <table>
145             <tr>
146                 <th>Term/Phrase</th>
147                 <th>Count</th>
148             </tr>
149             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
150                         <!-- TMPL_IF name="even" -->
151             <tr class="highlight">
152                         <!-- TMPL_ELSE -->
153                         <tr>
154                         <!-- /TMPL_IF -->
155                 <td>
156                     <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="scan_use" escape="url" -->&quot;<!-- TMPL_VAR NAME="title" ESCAPE="url" -->&quot;"><!-- TMPL_VAR NAME="title" ESCAPE="html" --></a>
157                 </td>
158                 <td>
159                     <!-- TMPL_LOOP NAME="subtitle" -->
160                       <!-- TMPL_VAR NAME="subfield" -->
161                     <!-- /TMPL_LOOP -->
162                 </td>
163             </tr>
164             <!-- /TMPL_LOOP -->
165         </table>
166     </form>
167 <!-- TMPL_ELSE -->
168
169     <div class="searchresults">
170         <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form">
171                 <!-- TMPL_IF NAME="searchdesc" -->
172                 <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
173                 <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
174                 <!-- /TMPL_LOOP -->
175                 <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
176                 <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
177                 <!-- /TMPL_LOOP -->
178                 <!-- /TMPL_IF -->
179
180         <!-- TABLE RESULTS START -->
181         <table>
182                 <tr><td colspan="3" class="resultscontrol">
183                 <div class="resort"> <select id="sort_by" name="sort_by"> <!--TMPL_INCLUDE Name="resort_form.inc"--> </select> <input type="submit" class="submit clearfix" id="sortsubmit" value="Go" /></div>
184         <!-- TMPL_IF EXPR="opacbookbag || virtualshelves" --><div class="cartlist"><span class="checkall"></span>
185                 <span class="clearall"></span>
186         <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
187         <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
188                 <span class="addto"></span></div>
189                 <!-- /TMPL_IF -->
190
191         </td></tr>
192             <!-- Actual Search Results -->
193             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
194                 <tr class="grouplabel"><td colspan="3"><!-- TMPL_VAR NAME="group_label" --></td></tr>
195             <!-- TMPL_LOOP NAME="GROUP_RESULTS" -->
196             <!-- TMPL_IF name="even" -->
197                 <tr class="highlight">
198             <!-- TMPL_ELSE -->
199                 <tr>
200             <!-- /TMPL_IF -->
201                     <td><!-- TMPL_IF NAME="OPACAmazonEnabled" -->
202                         <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_IF NAME="isbn" --><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.TZZZZZZZ.jpg" alt="" class="thumbnail" /><!-- TMPL_ELSE --><img src="http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="" class="thumbnail" /><!-- /TMPL_IF -->
203                         </a>
204                         <!-- TMPL_ELSE -->
205                         <!-- TMPL_UNLESS NAME="noItemTypeImages" -->
206                             <!-- TMPL_IF name="imageurl" -->
207                                 <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
208                             <!-- /TMPL_IF -->
209                         <!-- /TMPL_UNLESS -->
210                         <!-- TMPL_VAR name="description" -->
211                         <!-- /TMPL_IF -->
212                     </td>
213                     <td><!-- TMPL_VAR NAME="result_number" -->. <!-- TMPL_IF name="BiblioDefaultViewmarc" --><a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->" title="View details for this title"><!-- TMPL_VAR NAME="title" -->
214                       <!-- TMPL_ELSE -->
215                       <!-- TMPL_IF name="BiblioDefaultViewisbd" --><a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->" title="View details for this title"><!-- TMPL_VAR NAME="title" -->
216                       <!-- TMPL_ELSE --><a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->" title="View details for this title"><!-- TMPL_VAR NAME="title" -->
217                       <!-- /TMPL_IF -->
218                       <!-- TMPL_LOOP NAME="subtitle" -->
219                           <!-- TMPL_VAR NAME="subfield" -->
220                       <!-- /TMPL_LOOP -->
221                       </a>
222                       <!-- /TMPL_IF -->
223                       <!-- TMPL_IF NAME="author" -->by <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->" title="Search for works by this author"><!-- TMPL_VAR NAME="author" --></a>
224                       <!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->
225                                 <p> <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
226                                                 <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
227                                                 <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
228                                                 <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
229                                                 <!-- TMPL_IF name="notes" --> : <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
230                                                 <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
231                                                 <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
232                                 </p>
233         <!--TMPL_IF Name="searchhighlightblob"--><p class="searchhighlightblob"><!-- TMPL_VAR NAME="searchhighlightblob" --></p><!--/TMPL_IF-->
234                                 <p class="availability">
235                                         <!-- TMPL_IF NAME="available_items_loop" -->
236                                         <span class="available"><strong>Copies available at:</strong>
237                                         <!-- TMPL_LOOP NAME="available_items_loop" -->
238                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
239                                         <!-- TMPL_IF name="OPACItemsResultsDisplay" -->
240                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
241                         <!-- TMPL_IF NAME="itemcallnumber" -->[<a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="itemcallnumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="itemcallnumber" --></a>]<!-- /TMPL_IF -->
242                     <!-- /TMPL_IF -->
243                                         (<!-- TMPL_VAR NAME="count" -->),
244                                         <!-- /TMPL_LOOP -->
245                                         </span>
246                                         <!-- TMPL_ELSE -->
247                                         <span class="unavailable">No items available:</span>
248                                         <!-- /TMPL_IF -->
249                                         <span class="unavailable">
250                                         <!-- TMPL_IF NAME="onloancount" --> Checked out (<!-- TMPL_VAR NAME="onloancount" -->), <!-- /TMPL_IF -->
251                                         <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->), <!-- /TMPL_IF -->
252                                         <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->),<!-- /TMPL_IF -->
253                                         <!-- TMPL_IF NAME="damagedcount" --> Damaged (<!-- TMPL_VAR NAME="damagedcount" -->),<!-- /TMPL_IF -->
254                                         <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->),<!-- /TMPL_IF -->
255                     <!-- TMPL_IF NAME="intransitcount" --> In transit (<!-- TMPL_VAR NAME="intransitcount" -->),<!-- /TMPL_IF -->
256                                         </span>
257                                 </p>
258
259                                 <p>
260                                 <!-- TMPL_IF name="RequestOnOpac" -->
261                                         <!-- TMPL_UNLESS NAME="norequests" -->
262                                                 <!-- TMPL_IF NAME="opacuserlogin" -->
263                                                         <!-- TMPL_IF NAME="AllowOnShelfHolds" -->
264                                                                 <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Place Hold</a><!-- add back when available 0 holds in queue-->
265                                                         <!-- TMPL_ELSE -->
266                                                                 <!-- TMPL_IF NAME="itemsissued" -->
267                                                                         <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Place Hold</a><!-- add back when available 0 holds in queue-->
268                                                                 <!-- /TMPL_IF -->
269                                                         <!-- /TMPL_IF -->
270                                                 <!-- /TMPL_IF -->
271                                         <!-- /TMPL_UNLESS -->
272                                 <!-- /TMPL_IF -->
273
274                                 <!--TMPL_IF EXPR="opacbookbag || virtualshelves" --><input type="checkbox" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to cart" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_IF --><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /><!--TMPL_IF EXPR="opacbookbag || virtualshelves" --></label><!-- /TMPL_IF --> <!-- TMPL_IF name="classification" -->
275                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
276                                         <!-- TMPL_VAR NAME="classification" -->
277                                     </a>
278 <!-- /TMPL_IF --></p>
279                                 </td>
280                 </tr>
281                 <!-- /TMPL_LOOP -->
282                 <!-- /TMPL_LOOP -->
283             </table>
284     </form>
285         </div>
286     <!-- /TMPL_IF -->
287         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
288
289     <!-- TMPL_ELSE -->
290     <!-- /TMPL_IF -->
291
292         <!-- TMPL_IF name="suggestion" -->
293 <!-- TMPL_IF NAME="AnonSuggestions" --><div class="suggestion">Not finding what you're looking for?<br />  Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></div><!-- TMPL_ELSE --><!-- TMPL_IF NAME="loggedinusername" --><div class="suggestion">Not finding what you're looking for?<br />  Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></div><!-- /TMPL_IF --><!-- /TMPL_IF -->
294 <!-- /TMPL_IF -->
295
296 </div>
297 </div>
298 <div class="yui-b">
299         <!-- FACETS START -->
300         <!-- TMPL_IF NAME="opacfacets" -->
301                 <!-- TMPL_INCLUDE NAME="opac-facets.inc" -->
302         <!-- /TMPL_IF -->
303         <!-- FACETS END -->
304 </div>
305 </div>
306 </div>
307
308 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->