Fix for Bug 3659, Add place hold option from patron checkout tab
[wip/koha-chris_n.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 <!-- 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 --><!-- TMPL_ELSE -->You did not specify any search criteria<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.highlight-3.js"></script>
5 <script type="text/javascript">
6 //<![CDATA[
7 var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
8 var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
9 var q_array = new Array();  // will hold search terms, if present
10 <!-- TMPL_IF NAME="AmazonEnabled" -->
11 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
12 function verify_images() {
13     $("img").each(function(i){
14         if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
15             w = this.width;
16             h = this.height;
17             if ((w == 1) || (h == 1)) {
18                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
19             } else if ((this.complete != null) && (!this.complete)) {
20                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
21             }
22         }
23     });
24 }
25
26 $(window).load(function() {
27         verify_images();
28      });
29 <!-- /TMPL_IF -->
30 function Dopop(link) {
31         newin=window.open(link,'popup','width=500,height=500,toolbar=false,scrollbars=yes,resizeable=yes');
32 }
33 function cartList(){
34     if($("#addto").find("option:selected").attr("value") == "addtolist"){
35         var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
36         if (vShelfAdd()) {
37              Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vShelfAdd());
38         }
39         return false;
40     } else if($("#addto").find("option:selected").attr("value") == "newlist"){
41         if (vShelfAdd()) {
42             Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
43         }
44         return false;
45     }
46     if($("#addto").find("option:selected").attr("value") == "addtocart"){
47         addMultiple();
48         return false;
49     }
50 }
51 $(window).load(function() {
52         new YAHOO.widget.Button("cartsubmit", { onclick: { fn: cartList }});
53 });
54 $(document).ready(function() {
55 $("#placeholdc").empty();
56 $('#sortbyform').find("input:submit").hide();
57 $('#sort_by').change(function() {
58         $('#sortbyform').submit();
59     });
60 $(".addtocart").show();
61         var param1 = "<label for=\"addto\">"+_("Add to:")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>";
62         <!-- TMPL_IF name="intranetbookbag" -->     param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>"; <!-- /TMPL_IF -->
63         <!-- TMPL_IF NAME="virtualshelves" --><!-- TMPL_IF NAME="addbarshelves" -->
64         param1 += "<optgroup label=\""+_("Your Lists:")+"\">";<!-- TMPL_LOOP NAME="addbarshelvesloop" -->
65         param1 += "<option id=\"s<!-- TMPL_VAR NAME="shelfnumber" -->\" value=\"addtolist\"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"--><\/option>";<!-- /TMPL_LOOP -->
66         param1 += "<\/optgroup>";<!-- /TMPL_IF -->
67         <!-- TMPL_IF NAME="addpubshelves" -->param1 += "<optgroup label=\""+_("Public Lists:")+"\">"<!-- TMPL_LOOP NAME="addpubshelvesloop" -->+"<option id=\"s<!-- TMPL_VAR NAME="shelfnumber" -->\" value=\"addtolist\"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"--><\/option>"<!-- /TMPL_LOOP -->
68         param1 +="<\/optgroup><option value=\"newlist\">"+_("[ New List ]")+"<\/option>"
69 <!-- /TMPL_IF -->
70         <!-- /TMPL_IF -->
71         param1 += "<\/select> <input id=\"cartsubmit\" type=\"submit\" class=\"submit\" value=\""+_("Save")+"\" />";
72  $('#sortsubmit').hide();
73         $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear All")+"<\/a>");
74         $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select All")+"<\/a>");
75         $("span.addto").html(param1);
76         $("#addto").change(function(){
77                 cartList();
78         });
79         $(".addto").find("input:submit").click(function(){
80                 cartList();
81                 return false;
82         });
83
84  $("#tagsel_span").html("<input id=\"tagsel_tag\" class=\"submit\" type=\"submit\" value=\"Tag\"/>");
85
86     $("#selection_ops").show();
87     $(".selection").show();
88     <!-- TMPL_IF NAME="query_desc" -->
89         var query_desc = "<!-- TMPL_VAR NAME="query_desc" ESCAPE="JS"-->";
90         q_array = query_desc.split(" ");
91         highlightOn();
92         $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
93         $("#highlight_toggle_off").show().click(function() {highlightOff();});
94     <!-- /TMPL_IF -->
95 });
96
97 function highlightOff() {
98     $("p").removeHighlight();
99     $(".highlight_toggle").toggle();
100 }
101 function highlightOn() {
102     var x;
103     for (x in q_array) {
104         $("p").highlight(q_array[x]);
105     }
106     $(".highlight_toggle").toggle();
107 }
108
109 function selectAll () {
110     $(".selection").attr("checked", "checked");
111 }
112 function clearAll () {
113     $(".selection").removeAttr("checked");
114 }
115 function placeHold () {
116     var checkedItems = $(".selection:checked");
117     if ($(checkedItems).size() == 0) {
118         alert(MSG_NO_ITEM_SELECTED);
119         return false;
120     }
121     var bibs = "";
122     var badBibs = false;
123     $(checkedItems).each(function() {
124         var bib = $(this).val();
125         if ($("#reserve_" + bib).size() == 0) {
126             alert(MSG_NON_RESERVES_SELECTED);
127             badBibs = true;
128             return false;
129         }
130         bibs += bib + "/";
131     });
132     if (badBibs) {
133         return false;
134     }
135     $("#hold_form_biblios").val(bibs);
136     $("#hold_form").submit();
137     return false;
138 }
139 function addToList () {
140     var checkedItems = $(".selection:checked");
141     if ($(checkedItems).size() == 0) {
142         alert(MSG_NO_ITEM_SELECTED);
143         return false;
144     }
145     var bibs = "";
146     $(checkedItems).each(function() {
147         bibs += $(this).val() + "/";
148     });
149
150     var url = "/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumbers=" + bibs;
151         window.open(url, 'Add_to_virtualshelf', 'width=500, height=400, toolbar=false, scrollbars=yes');
152     return false;
153 }
154
155 /* this function open a popup to search on z3950 server.  */
156 function PopupZ3950() {
157     var strQuery = GetZ3950Terms();
158     if(strQuery){
159         window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"+strQuery,"z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
160     }
161 }
162 /* provide Z3950 search points */
163 function GetZ3950Terms(){
164         var strQuery="&frameworkcode=";
165         <!-- TMPL_LOOP NAME='z3950_search_params' -->
166                 strQuery += "&" + "<!-- TMPL_VAR NAME="name" -->" + "=" + "<!-- TMPL_VAR NAME="encvalue" -->";
167         <!-- /TMPL_LOOP -->
168         return strQuery;
169 }
170
171 YAHOO.util.Event.onContentReady("searchheader", function () {
172         new YAHOO.widget.Button( "z3950submit", { onclick: { fn: PopupZ3950 }});
173         <!-- TMPL_IF NAME="holdfor" -->
174         var holdFor = function (){
175             $("#holdFor").val("");
176             placeHold();
177         }
178         var holdForPatron = function () {
179             $("#holdFor").val("<!-- TMPL_VAR NAME="holdfor_cardnumber" -->");
180             placeHold();
181         }
182         var HoldForButtonMenu = [
183             { text: "Place hold", onclick: { fn: holdFor }},
184             { text: "Place hold for <!-- TMPL_VAR NAME="holdfor_firstname" --> <!-- TMPL_VAR NAME="holdfor_surname" --> (<!-- TMPL_VAR NAME="holdfor_cardnumber" -->)", onclick: { fn: holdForPatron }}
185         ];
186
187         var HoldForButton = new YAHOO.widget.Button({
188                 type: "split",
189                 label: "Place hold",
190                 name: "holdfor",
191                 menu: HoldForButtonMenu,
192                 container: "placeholdc",
193                 onclick: { fn: holdFor }
194         });
195         <!-- TMPL_ELSE -->
196         new YAHOO.widget.Button({
197             id: "placehold",
198             type: "link",
199             label: _("Place hold"),
200             container: "placeholdc",
201             onclick: { fn: placeHold }
202          });
203         <!-- /TMPL_IF -->
204 }); // YAHOO onContentReady
205 //]]>
206 </script>
207 </head>
208 <body>
209 <!-- TMPL_INCLUDE NAME="header.inc" -->
210 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
211
212 <div id="breadcrumbs">
213          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
214 &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
215 &rsaquo; Search <!-- TMPL_IF NAME="query_desc" -->for '<!-- TMPL_VAR NAME="query_desc" ESCAPE="html"-->'<!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" -->&nbsp;with limit(s):&nbsp;'<!-- TMPL_VAR NAME="limit_desc" -->'<!-- /TMPL_IF -->
216 </div>
217
218 <div id="doc3" class="yui-t1">
219    <div id="bd">
220     <div id="yui-main">
221     <div class="yui-b">
222
223     <!-- TMPL_IF NAME="outer_sup_results_loop" -->
224     <div class="yui-ge">
225     <div class="yui-u first">
226     <!-- /TMPL_IF -->
227
228     <!-- TMPL_IF NAME="koha_spsuggest" -->
229         <div style="font-size: 12px;">Did you mean:
230             <ul style="list-style: none;">
231             <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
232             <li>
233                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
234             </li>
235             <!-- /TMPL_LOOP -->
236             </ul>
237         </div>
238     <!-- /TMPL_IF -->
239
240     <!-- TMPL_IF NAME="total" -->
241         <div id="searchheader">
242             <form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="sortbyform">
243                 <!-- TMPL_IF NAME="searchdesc" -->
244                     <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
245                     <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
246                     <!-- /TMPL_LOOP -->
247                     <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
248                     <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
249                     <!-- /TMPL_LOOP -->
250                 <!-- /TMPL_IF -->
251                 <!-- RE-SORT START -->
252                     <label for="sort_by">Sort By: </label>
253                     <select id="sort_by" name="sort_by">
254                     <!-- TMPL_INCLUDE NAME="resort_form.inc" -->
255                     </select>
256                     <input type="submit" value="Go" />
257                 <!-- RESORT END -->
258             </form>
259             <h3>
260                 <!-- TMPL_VAR NAME="total" --> result(s) found <!-- TMPL_IF NAME="query_desc" -->for <span style="font-weight: bold;">'<!-- TMPL_VAR NAME="query_desc" ESCAPE="HTML"-->'</span><!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" -->&nbsp;with limit(s): <span style="font-weight: bold;">'<!-- TMPL_VAR NAME="limit_desc" -->'</span><!-- /TMPL_IF --><!-- TMPL_IF NAME="LibraryName" --> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog<!-- /TMPL_IF -->.<br />&nbsp;
261             </h3>
262             <div id="selection_ops" class="cartlist" style="display:none">
263                 <a href="#" onclick="selectAll(); return false;">Select All</a>
264                 |
265                 <a href="#" onclick="clearAll(); return false;">Clear All</a>
266                 |
267                 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
268                 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
269                 |
270                 <span class="addto"></span>
271                 <!-- TMPL_IF NAME="CAN_user_reserveforothers" -->
272                     <!-- TMPL_IF NAME="DisplayMultiPlaceHold" -->
273                   | <span id="placeholdc"><input type="button" id="placehold" onclick="placeHold(); return false;" value="Place Hold"/></span>
274                     <!-- /TMPL_IF -->
275                 <!-- /TMPL_IF -->
276
277                                 <!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" --> | <input type="button" id="z3950submit" onclick="PopupZ3950(); return false;" value="Z39.50 Search"/><!-- /TMPL_IF -->
278             </div>
279         </div>
280     <!-- TMPL_IF NAME="stopwords_removed" --><div><p class="tip">Ignored the following common words: "<!-- TMPL_VAR NAME="stopwords_removed" -->"<p></div><!-- /TMPL_IF -->
281     <!-- TMPL_ELSE -->
282         <div id="searchheader">
283                         <form method="post" name="fz3950" class="fz3950bigrpad">
284                                 <span id="z3950searchc"><input type="button" id="z3950search" value="Z39.50 Search" onclick="PopupZ3950(); return false;" /></span>
285                         </form>
286             <h3>No results found</h3>
287         <!-- TMPL_IF NAME="searchdesc" -->
288             <p>
289                 No results match your search <!-- TMPL_IF NAME="query_desc" -->for <span style="font-weight: bold;">'<!-- TMPL_VAR NAME="query_desc" ESCAPE="HTML"-->'</span><!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" -->&nbsp;with limit(s): <span style="font-weight: bold;">'<!-- TMPL_VAR NAME="limit_desc" -->'</span><!-- /TMPL_IF --><!-- TMPL_IF NAME="LibraryName" --> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog<!-- /TMPL_IF -->.
290             </p>
291         <!-- TMPL_ELSE -->
292             <p>You did not specify any search criteria.</p>
293         <!-- /TMPL_IF -->
294                 </div>
295     <!-- /TMPL_IF -->
296
297     <!-- TMPL_IF NAME="query_error" -->
298         <br /><br />
299         Error:
300         <span  class="problem">
301             <!-- TMPL_VAR NAME="query_error" -->
302         </span>
303     <!-- /TMPL_IF -->
304
305     <!-- Search Results Table -->
306     <!-- TMPL_IF NAME="total" -->
307         <!-- TMPL_IF NAME="scan" -->
308             <h1>Scan Index:</h1>
309             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
310             <table>
311                 <tr>
312                     <td>
313                         Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
314                     </td>
315                 </tr>
316                 <tr>
317                     <td>
318                         <label for="scan-index">Indexed in:</label>
319                         <select name="idx" id="scan-index">
320                             <option value="">Any Word</option>
321                             <option <!-- TMPL_IF NAME="ms_any,phr" --> selected="selected" <!-- /TMPL_IF --> value="any,phr">Any Phrase</option>
322                             <option <!-- TMPL_IF NAME="ms_ti" --> selected="selected" <!-- /TMPL_IF --> value="ti">Title</option>
323                             <option <!-- TMPL_IF NAME="ms_ti,phr" --> selected="selected" <!-- /TMPL_IF --> value="ti,phr">Title Phrase</option>
324                             <option <!-- TMPL_IF NAME="ms_au,phr" --> selected="selected" <!-- /TMPL_IF --> value="au,phr">Author</option>
325                             <option <!-- TMPL_IF NAME="ms_su" --> selected="selected" <!-- /TMPL_IF --> value="su">Subject</option>
326                             <option <!-- TMPL_IF NAME="ms_su,phr" --> selected="selected" <!-- /TMPL_IF --> value="su,phr">Subject Phrase</option>
327                             <option <!-- TMPL_IF NAME="ms_se" --> selected="selected" <!-- /TMPL_IF --> value="se">Series</option>
328                             <option <!-- TMPL_IF NAME="ms_pb" --> selected="selected" <!-- /TMPL_IF --> value="pb">Publisher</option>
329                             <option <!-- TMPL_IF NAME="ms_nt" --> selected="selected" <!-- /TMPL_IF --> value="nt">Notes</option>
330                             <option <!-- TMPL_IF NAME="ms_se" --> selected="selected" <!-- /TMPL_IF --> value="se">Series Title</option>
331                             <option <!-- TMPL_IF NAME="ms_sn" --> selected="selected" <!-- /TMPL_IF --> value="sn">ISBN</option>
332                             <option <!-- TMPL_IF NAME="ms_ss" --> selected="selected" <!-- /TMPL_IF --> value="ss">ISSN</option>
333                         </select>
334                         <input type="hidden" name="scan" value="1" />
335                     </td>
336                 </tr>
337             </table>
338             </form>
339
340             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
341             <table>
342                 <tr>
343                     <th>Term/Phrase</th>
344                     <th>Count</th>
345                 </tr>
346                 <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
347                     <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
348                         <td>
349                             <a href="/cgi-bin/koha/catalogue/search.pl?idx=<!-- TMPL_VAR name="scan_index_to_use" -->&amp;q=<!-- TMPL_VAR NAME="scan_use" escape="url" -->&quot;<!-- TMPL_VAR NAME="title" -->&quot;"><!-- TMPL_VAR NAME="title" ESCAPE="html" --></a>
350                         </td>
351                         <td>
352                             <!-- TMPL_VAR NAME="author" -->
353                         </td>
354                     </tr>
355                 <!-- /TMPL_LOOP -->
356             </table>
357             </form>
358         <!-- TMPL_ELSE -->
359
360                 <!-- TMPL_IF NAME="NoZebra" -->
361                 <!-- ######### -->
362                 <div id="facets">
363                 <dl>
364                 <!-- FACETS START -->
365                 <!-- TMPL_IF NAME="opacfacets" -->
366                     <dt id="facets1" onclick="var Elt=document.getElementById('facets_list');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
367                     Refine your search
368                     </dt>
369                     <dd id="facets_list" style="display:none;">
370                     <ul>
371                     <!-- TMPL_LOOP NAME="facets_loop" -->
372                     <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
373                         <ul>
374                         <!-- TMPL_LOOP NAME="facets" -->
375                             <li>
376                                 <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" -->">
377                                     <!-- TMPL_VAR NAME="facet_label_value" -->
378                                 </a> (<!-- TMPL_VAR NAME="facet_count" -->)
379                             </li>
380                         <!-- /TMPL_LOOP -->
381                         <!-- TMPL_IF NAME="expandable" -->
382                             <li class="showmore">
383                                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
384                                     Show More
385                                 </a>
386                             </li>
387                         <!-- /TMPL_IF -->
388                         </ul>
389                     </li>
390                     <!-- /TMPL_LOOP -->
391                     </ul>
392                     </dd>
393                 <!-- /TMPL_IF -->
394                 <!-- FACETS END -->
395                 </dl>
396             </div>
397             <!-- ######### -->
398             <!-- NoZebra --><!-- /TMPL_IF -->
399
400             <div id="searchresults">
401                 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="bookbag_form" id="bookbag_form">
402                 <!-- TMPL_IF NAME="searchdesc" -->
403                 <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
404                 <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
405                 <!-- /TMPL_LOOP -->
406                 <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
407                 <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
408                 <!-- /TMPL_LOOP -->
409                 <!-- /TMPL_IF -->
410
411                     <!-- TABLE RESULTS START -->
412                 <table>
413                     <tr>
414                         <!-- TMPL_IF NAME="AmazonEnabled" --><!-- TMPL_IF NAME="AmazonCoverImages" --><th>&nbsp;</th><!-- /TMPL_IF --><!-- /TMPL_IF -->
415                         <th colspan="2">Results</th>
416                         <th>Location</th>
417                     </tr>
418                         <!-- Actual Search Results -->
419                         <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
420                          <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
421                             <!-- TMPL_IF NAME="AmazonEnabled" --><!-- TMPL_IF NAME="AmazonCoverImages" -->
422                                 <td>
423                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
424                                                                         
425                                         <img src="<!-- TMPL_IF NAME="normalized_isbn" -->http://images.amazon.com/images/P/<!-- TMPL_VAR name="normalized_isbn" -->.01.TZZZZZZZ.jpg<!-- TMPL_ELSE -->http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif<!-- /TMPL_IF -->" alt="" class="thumbnail" />
426                                     </a></td>
427                             <!-- /TMPL_IF --><!-- /TMPL_IF -->
428                             <td>
429                                 <input type="checkbox" class="selection" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" style="display:none" />
430                             </td>
431                             <td>
432                                 <p><!-- TMPL_VAR NAME="result_number" -->.
433                                 <!-- TMPL_INCLUDE NAME="biblio-default-view.inc" -->
434                                             <b><!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" ESCAPE="html" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF --></b>
435                                             </a>
436                                         <!-- TMPL_LOOP NAME="subtitle" --> , <!-- TMPL_VAR NAME="subfield" --> <!-- /TMPL_LOOP -->
437                                                                                 <!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
438                                 </p>
439                                 <!-- TMPL_IF name="summary" -->
440                                         <!-- TMPL_IF NAME="author" -->
441                                             <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->" title="Search for this Author"><!-- TMPL_VAR NAME="author" --></a>
442                                         <!-- TMPL_ELSE -->
443                                             &nbsp;
444                                         <!-- /TMPL_IF -->
445                                     <p>
446                                     <!-- TMPL_UNLESS NAME="item-level_itypes" -->
447                                     <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
448                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="" />
449                                     <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
450                                     <!-- /TMPL_UNLESS -->
451                                     <!-- TMPL_VAR name="summary" --></p>
452                                 <!-- TMPL_ELSE -->
453                                     <p>
454                                     <!-- TMPL_UNLESS NAME="item-level_itypes" -->
455                                     <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
456                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="" />
457                                     <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
458                                     <!-- /TMPL_UNLESS -->
459
460                                         <!-- TMPL_IF NAME="author" -->
461                                             <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->" title="Search for this Author"><!-- TMPL_VAR NAME="author" --></a>
462                                         <!-- TMPL_ELSE -->
463                                             &nbsp;
464                                         <!-- /TMPL_IF -->
465                                         Description:
466                                         <!-- TMPL_IF name="place" --><!-- TMPL_VAR name="place" --> <!-- /TMPL_IF -->
467                                         <!-- TMPL_IF name="publishercode" --><!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF --> <!-- TMPL_IF name="publicationyear" --> <!-- TMPL_VAR name="publicationyear" --> <!-- TMPL_ELSIF name="copyrightdate"--> <!-- TMPL_VAR name="copyrightdate" --><!-- /TMPL_IF -->
468                                                                                 <!-- TMPL_IF NAME="edition" -->Edition: <!-- TMPL_VAR NAME="edition" --><!-- /TMPL_IF -->
469                                         <!-- TMPL_IF name="pages" -->: <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
470                                         <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="normalized_isbn" -->ISBN: <!-- TMPL_VAR NAME="normalized_isbn" --><!-- /TMPL_IF -->
471                                         <!-- TMPL_VAR name="description" -->
472                                         <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
473                                         <!-- TMPL_IF name="cn_class" -->[<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="cn_class" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="cn_class" --></a>]<!-- /TMPL_IF -->
474                                     </p>
475                                     <!-- TMPL_IF NAME="searchhighlightblob" --><p class="searchhighlightblob"><!-- TMPL_VAR NAME="searchhighlightblob" --></p><!-- /TMPL_IF -->
476
477                                     <!-- TMPL_IF NAME="authorised_value_images" -->
478                                 <p>
479                                   <!-- TMPL_LOOP NAME="authorised_value_images" -->
480                                   <img src="<!-- TMPL_VAR name="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" />
481                                   <!-- /TMPL_LOOP -->
482                                 </p>
483                                 <!-- /TMPL_IF -->
484
485                                 <!-- /TMPL_IF -->
486                                   <p class="hold"><!-- TMPL_IF NAME="norequests" -->
487                                   <span class="noholdstext">No holds allowed</span>
488                               <!-- TMPL_ELSE -->
489                                   <a id="reserve_<!-- TMPL_VAR NAME="biblionumber" -->" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a>
490                                   <!-- TMPL_IF NAME="holdfor" --> | <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;findborrower=<!-- TMPL_VAR NAME="holdfor_cardnumber" -->">Hold for <!-- TMPL_VAR NAME="holdfor_firstname" --> <!-- TMPL_VAR NAME="holdfor_surname" --> (<!-- TMPL_VAR NAME="holdfor_cardnumber" -->)</a><!-- /TMPL_IF -->
491                               <!-- /TMPL_IF -->
492                           <!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
493                           | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Edit record</a>
494                           <!-- /TMPL_IF -->
495                           <!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_items" -->
496                           | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Edit items</a>
497                           <!-- /TMPL_IF --></p>
498                                 </td>
499
500                                 <td><div class="availability">
501                                     <!-- TMPL_IF NAME="items_count" --><strong><!-- TMPL_VAR NAME="items_count" -->
502                                     <!-- TMPL_IF NAME="itemsplural" -->items<!-- TMPL_ELSE -->item<!-- /TMPL_IF --><!-- TMPL_IF NAME="available_items_loop" -->, <!-- TMPL_IF NAME="availablecount" --><!-- TMPL_VAR NAME="availablecount" --> available:<!-- /TMPL_IF --><!-- TMPL_ELSE -->, None available<!-- /TMPL_IF --></strong>
503
504                                     <!-- TMPL_IF NAME="available_items_loop" -->
505                                     <!-- TMPL_IF NAME="availablecount" --><!-- TMPL_VAR NAME="availablecount" --><!-- /TMPL_IF --> available:
506                                     <ul>
507                                     <!-- TMPL_LOOP NAME="available_items_loop" -->
508
509                                         <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" --><!-- TMPL_IF name="imageurl" --><li style="list-style: none; list-style-type: none;"><img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR name="description" -->" /><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
510                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
511                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
512                                         <!-- TMPL_IF NAME="itemcallnumber" -->[<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="itemcallnumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="itemcallnumber" --></a>]<!-- /TMPL_IF -->
513                                         (<!-- TMPL_VAR NAME="count" -->)</li>
514                                     <!-- /TMPL_LOOP --></ul>
515                                     <!-- /TMPL_IF -->
516
517                                    <!-- TMPL_IF NAME="onloan_items_loop" -->
518                                    <span class="status"><!-- TMPL_IF NAME="onloancount" --><!-- TMPL_VAR NAME="onloancount" --><!-- /TMPL_IF --> on loan:</span>
519                                     <ul>
520                                     <!-- TMPL_LOOP NAME="onloan_items_loop" -->
521                                        <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
522                                         <!-- TMPL_IF name="imageurl" -->
523                                         <li style="list-style: none; list-style-type: none;"><img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR name="description" -->" />
524                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
525                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
526
527                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
528                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
529                                         <!-- TMPL_IF NAME="itemcallnumber" -->[<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="itemcallnumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="itemcallnumber" --></a>]<!-- /TMPL_IF -->
530                                         (<!-- TMPL_VAR NAME="count" --><!-- TMPL_IF NAME="longoverdue" -->, <!-- TMPL_VAR NAME="longoverdue" --> long overdue<!-- /TMPL_IF -->) date due: <!-- TMPL_VAR NAME="due_date" --></li>
531                                     <!-- /TMPL_LOOP --></ul>
532                                     <!-- /TMPL_IF -->
533
534                                     <!-- TMPL_IF NAME="other_items_loop" -->
535                                     <span class="unavailable"><!-- TMPL_IF NAME="othercount" --><!-- TMPL_VAR NAME="othercount" --><!-- /TMPL_IF --> unavailable:</span>
536                                     <ul>
537                                     <!-- TMPL_LOOP NAME="other_items_loop" -->
538                                         <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
539                                         <!-- TMPL_IF name="imageurl" -->
540                                         <li style="list-style: none; list-style-type: none;"><img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR name="description" -->" />
541                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
542                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
543
544                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
545                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
546                                         <!-- TMPL_IF NAME="itemcallnumber" -->[<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="itemcallnumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="itemcallnumber" --></a>]<!-- /TMPL_IF -->
547                                         <!-- TMPL_IF NAME="wthdrawn" -->(Withdrawn)<!-- /TMPL_IF -->
548                                         <!-- TMPL_IF NAME="itemlost" -->(Lost)<!-- /TMPL_IF -->
549                                         <!-- TMPL_IF NAME="damaged" -->(Damaged)<!-- /TMPL_IF -->
550                                         <!-- TMPL_IF NAME="intransit" -->(In transit)<!-- /TMPL_IF -->
551                                         <!-- TMPL_IF NAME="onhold" -->(On hold)<!-- /TMPL_IF -->
552                                         <!-- TMPL_IF NAME="notforloan" --><!-- TMPL_VAR name="notforloan" --><!-- /TMPL_IF -->
553                                         (<!-- TMPL_VAR NAME="count" -->)</li>
554                                     <!-- /TMPL_LOOP --></ul>
555                                     <!-- /TMPL_IF -->
556                                     <!-- TMPL_ELSE -->
557                                     <span class="unavailable">No items</span>
558                                     <!-- /TMPL_IF --> <!-- /items count -->
559                                     </div></td>
560
561                             </tr>
562                         <!-- /TMPL_LOOP -->
563                 </table>
564                 </form>
565                 </div>
566         <!-- /TMPL_IF -->
567         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
568     <!-- TMPL_ELSE -->
569     <!-- No Results Found -->
570     <!-- /TMPL_IF -->
571 <!-- TMPL_IF NAME="outer_sup_results_loop" -->
572 </div>
573 <div class="yui-u">
574 <!-- TMPL_LOOP NAME="outer_sup_results_loop" -->
575 <!-- <div class="yui-b"> -->
576     <!-- TMPL_IF NAME="inner_sup_results_loop" -->
577         <!-- TMPL_VAR NAME="servername" -->
578         <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
579         <div><a href="/cgi-bin/koha/catalogue/search.pl?<!-- TMPL_VAR NAME="query_cgi" --><!-- TMPL_VAR NAME="limit_cgi" --><!-- TMPL_VAR NAME="sort_by" --><!-- TMPL_VAR NAME="link" -->"><!-- TMPL_VAR NAME="title" ESCAPE="html" --></a></div>
580         <!-- /TMPL_LOOP -->
581     <!-- /TMPL_IF -->
582 <!-- </div> -->
583 <!-- /TMPL_LOOP -->
584 </div>
585 </div>
586 <!-- /TMPL_IF -->
587
588 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
589     <!-- Value will be set here by placeHold() -->
590     <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
591     <input type="hidden" name="findborrower" id="holdFor" value="" />
592     <input type="hidden" name="multi_hold" value="1"/>
593 </form>
594
595 <form id="list_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
596     <!-- Value will be set here by addToList() -->
597     <input id="list_form_biblios" type="hidden" name="biblionumbers" value="" />
598     <input type="hidden" name="multi_listadd" value="1"/>
599 </form>
600
601 </div>
602 </div>
603 <div class="yui-b">
604 <!-- TMPL_INCLUDE NAME="facets.inc" -->
605 </div>
606 </div>
607 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->