Fixing "check all" function in search results; Using javascript to generate book...
[koha_ffzg] / koha-tmpl / opac-tmpl / prog / en / modules / opac-results.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.pack.js"></script>
12 <script type="text/javascript">
13 $(document).ready(function(){
14         $('#sortsubmit').hide();
15     $('#sort_by').change(function() {
16         $('#bookbag_form').submit();
17     });
18         $("span.bookbag").html("<input type=\"button\" class=\"icon shelf\" value=\"Add checked items to book bag\" id=\"addMultiple\" />");
19         $('#addMultiple').click(function(){
20                 addMultiple();
21                 return false;
22         })
23         $("span.lists").html("<input type=\"button\" class=\"icon shelf\" value=\"Add Checked Items to Lists\" id=\"addtoList\" />");
24         $('#addtoList').click(function(){
25                 <!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
26                         Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
27                         }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
28                         return false;
29         });
30         $("span.clearall").html("<input type=\"reset\" value=\"Clear All\" class=\"icon shelf\" />");
31     $("span.checkall").html("<a href=\"#\" id=\"CheckAll\"><img src=\"/opac-tmpl/prog/images/checkall.gif\" alt=\"Check All\" border=\"0\" /></a><a href=\"#\" id=\"CheckNone\"><img src=\"/opac-tmpl/prog/images/checknone.gif\" alt=\"Check None\" border=\"0\" /></a>");
32         $('#CheckNone').hide();
33     $("#CheckAll").click(function(){
34         $("#bookbag_form").checkCheckboxes();
35         $('#CheckAll').hide();
36                 $('#CheckNone').show();
37         return false;
38     });
39     $("#CheckNone").click(function(){
40         $("#bookbag_form").unCheckCheckboxes();
41         $('#CheckAll').show();
42                 $('#CheckNone').hide();
43         return false;
44     });
45 });</script>
46
47
48 </head>
49 <body>
50 <!--TMPL_INCLUDE NAME="masthead.inc" -->
51
52 <div id="doc3" class="yui-t1">
53    <div id="bd">
54
55         <div id="yui-main">
56
57         <div class="yui-b">
58   <!-- TMPL_IF NAME="koha_spsuggest" -->
59         Did you mean:
60     <ul style="list-style: none;">
61         <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
62         <li>
63             <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
64         </li>
65         <!-- /TMPL_LOOP -->
66     </ul>
67 <!-- /TMPL_IF -->
68
69 <!-- TMPL_IF NAME="query_error" -->
70 <div class="error">
71         <h4>Error:</h4>
72     <!-- TMPL_VAR NAME="query_error" -->
73 </div>
74 <!-- /TMPL_IF -->       
75         
76 <!-- Search Results Table -->
77 <!-- TMPL_IF NAME="total" -->
78 <!-- TMPL_IF NAME="scan" -->
79     <h1>Scan Index:</h1>
80     <form action="/cgi-bin/koha/opac-search.pl" method="get">
81         <table>
82             <tr>
83                 <td>
84                     Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
85                 </td>
86             </tr>
87             <tr>
88                 <td>
89                     <label for="scan-index">Indexed in:</label>
90                     <select name="idx" id="scan-index">
91                         <option value="">Any Word</option>
92                         <option value="kw,phr:">Any Phrase</option>
93                         <option value="ti:">Title</option>
94                         <option value="ti,phr:">Title Phrase</option>
95                         <option value="au,phr:">Author</option>
96                         <option value="su:">Subject</option>
97                         <option value="su,phr:">Subject Phrase</option>
98                         <option value="se:">Series</option>
99                         <option value="pb:">Publisher</option>
100                         <option value="nt:">Notes</option>
101                         <option value="se:">Series Title</option>
102                         <option value="sn:">ISBN</option>
103                         <option value="ss:">ISSN</option>
104                     </select>
105                     <input type="hidden" name="scan" value="1" />
106                 </td>
107             </tr>
108         </table>
109     </form>
110     
111     <form action="/cgi-bin/koha/opac-search.pl" method="get">
112         <table>
113             <tr>
114                 <th>Term/Phrase</th>
115                 <th>Count</th>
116             </tr>
117             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
118                         <!-- TMPL_IF name="even" -->
119             <tr class="highlight">
120                         <!-- TMPL_ELSE -->
121                         <tr>
122                         <!-- /TMPL_IF -->
123                 <td>
124                     <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>
125                 </td>
126                 <td>
127                     <!-- TMPL_VAR NAME="subtitle" -->
128                 </td>
129             </tr>
130             <!-- /TMPL_LOOP -->
131         </table>
132     </form>
133 <!-- TMPL_ELSE -->
134
135     <div class="searchresults">
136         <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form">
137                 <!-- TMPL_IF NAME="searchdesc" -->
138                 <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
139                 <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
140                 <!-- /TMPL_LOOP -->
141                 <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
142                 <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
143                 <!-- /TMPL_LOOP -->
144                 <!-- /TMPL_IF -->
145
146         <!-- TABLE RESULTS START -->
147         <table>
148                 <tr><td colspan="3" class="resultscontrol">
149                 <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>
150         <!-- TMPL_IF EXPR="opacbookbag || virtualshelves" --><span class="checkall"></span>
151         <!-- TMPL_IF name="opacbookbag" --><span class="bookbag"></span><!-- /TMPL_IF --> 
152                 <!-- TMPL_IF NAME="virtualshelves" --><span class="lists"></span><!-- /TMPL_IF -->
153                 <span class="clearall"></span><!-- /TMPL_IF -->
154         </td></tr>
155             <!-- Actual Search Results -->
156             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
157             <!-- TMPL_IF name="even" -->
158                 <tr class="highlight">
159             <!-- TMPL_ELSE -->
160                 <tr>
161             <!-- /TMPL_IF -->
162                     <td><!-- TMPL_IF NAME="AmazonContent" -->
163                         <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 -->
164                         </a>
165                         <!-- TMPL_ELSE -->
166                         <!-- TMPL_IF name="imageurl" -->
167                         <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
168                         <!-- TMPL_ELSE -->
169                         <!-- TMPL_VAR name="description" -->
170                         <!-- /TMPL_IF -->
171                         <!-- /TMPL_IF -->
172                     </td>
173                     <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" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- TMPL_ELSE --><!-- 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" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- 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" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- /TMPL_IF --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="author" -->by <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author_nospan" ESCAPE="URL" -->" title="Search for works by this author"><!-- TMPL_VAR NAME="author" --></a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->
174                                 <p> <!-- TMPL_IF name="publicationyear" --> - <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
175                                                 <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
176                                                 <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
177                                                 <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
178                                                 <!-- TMPL_IF name="notes" --> : <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
179                                                 <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
180                                                 <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
181                                 </p>
182         <!--TMPL_IF Name="searchhighlightblob"--><p class="searchhighlightblob"><!-- TMPL_VAR NAME="searchhighlightblob" --></p><!--/TMPL_IF-->
183                                 <p class="availability">
184                                         <!-- TMPL_IF NAME="available_items_loop" -->
185                                         <span class="available"><strong>Copies available at:</strong>
186                                         <!-- TMPL_LOOP NAME="available_items_loop" -->
187                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
188                                         <!-- TMPL_IF name="OPACItemsResultsDisplay" -->
189                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
190                         <!-- 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 -->
191                     <!-- /TMPL_IF -->
192                                         (<!-- TMPL_VAR NAME="count" -->),
193                                         <!-- /TMPL_LOOP -->
194                                         </span>
195                                         <!-- TMPL_ELSE -->
196                                         <span class="unavailable">No items available:</span>
197                                         <!-- /TMPL_IF -->
198                                         <span class="unavailable">
199                                         <!-- TMPL_IF NAME="onloancount" --> On loan (<!-- TMPL_VAR NAME="onloancount" -->), <!-- /TMPL_IF -->
200                                         <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->), <!-- /TMPL_IF -->
201                                         <!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->),<!-- /TMPL_IF -->
202                                         <!-- TMPL_IF NAME="damagedcount" --> Damaged (<!-- TMPL_VAR NAME="damagedcount" -->),<!-- /TMPL_IF -->
203                                         <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->),<!-- /TMPL_IF -->
204                                         </span>
205                                 </p>
206
207                                 <p><!-- TMPL_UNLESS NAME="norequests" --><!-- TMPL_IF NAME="opacuserlogin" --><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Place Hold</a><!-- /TMPL_IF --><!-- /TMPL_UNLESS --> <!--TMPL_IF EXPR="opacbookbag || virtualshelves" --><input type="checkbox" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to book bag" /> <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" -->
208                                     <a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="classification" ESCAPE="URL" -->">
209                                         <!-- TMPL_VAR NAME="classification" -->
210                                     </a>
211 <!-- /TMPL_IF --></p> 
212                                 </td>
213                 </tr>
214                 <!-- /TMPL_LOOP -->
215             </table>
216     </form>
217         </div>
218     <!-- /TMPL_IF -->
219         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
220
221     <!-- TMPL_ELSE -->
222     <!-- /TMPL_IF -->
223
224         <!-- TMPL_IF name="suggestion" -->
225 <!-- 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 -->
226 <!-- /TMPL_IF -->
227     
228 </div>
229 </div>
230 <div class="yui-b">
231         <!-- FACETS START -->
232         <!-- TMPL_IF NAME="opacfacets" -->
233                 <!-- TMPL_INCLUDE NAME="opac-facets.inc" -->
234         <!-- /TMPL_IF -->
235         <!-- FACETS END -->
236 </div>
237 </div>
238 </div>
239
240 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->