Fix for Bug 3659, Add place hold option from patron checkout tab
[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 <!-- 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 onButtonClick = function () {
175             $("#holdFor").val("<!-- TMPL_VAR NAME="holdfor_cardnumber" -->");
176             placeHold();
177         }
178         var HoldForButtonMenu = [
179             { text: "Place hold", onclick: { fn: placeHold }},
180             { text: "Place hold for <!-- TMPL_VAR NAME="holdfor_firstname" --> <!-- TMPL_VAR NAME="holdfor_surname" --> (<!-- TMPL_VAR NAME="holdfor_cardnumber" -->)", onclick: { fn: onButtonClick }}
181         ];
182
183         var HoldForButton = new YAHOO.widget.Button({
184                 type: "split",
185                 label: "Place hold",
186                 name: "holdfor",
187                 menu: HoldForButtonMenu,
188                 container: "placeholdc",
189                 onclick: { fn: placeHold }
190         });
191         <!-- TMPL_ELSE -->
192         new YAHOO.widget.Button({
193             id: "placehold",
194             type: "link",
195             label: _("Place hold"),
196             container: "placeholdc",
197             onclick: { fn: placeHold }
198          });
199         <!-- /TMPL_IF -->
200 }); // YAHOO onContentReady
201 //]]>
202 </script>
203 </head>
204 <body>
205 <!-- TMPL_INCLUDE NAME="header.inc" -->
206 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
207
208 <div id="breadcrumbs">
209          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
210 &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
211 &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 -->
212 </div>
213
214 <div id="doc3" class="yui-t1">
215    <div id="bd">
216     <div id="yui-main">
217     <div class="yui-b">
218
219     <!-- TMPL_IF NAME="outer_sup_results_loop" -->
220     <div class="yui-ge">
221     <div class="yui-u first">
222     <!-- /TMPL_IF -->
223
224     <!-- TMPL_IF NAME="koha_spsuggest" -->
225         <div style="font-size: 12px;">Did you mean:
226             <ul style="list-style: none;">
227             <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
228             <li>
229                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
230             </li>
231             <!-- /TMPL_LOOP -->
232             </ul>
233         </div>
234     <!-- /TMPL_IF -->
235
236     <!-- TMPL_IF NAME="total" -->
237         <div id="searchheader">
238             <form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="sortbyform">
239                 <!-- TMPL_IF NAME="searchdesc" -->
240                     <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
241                     <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
242                     <!-- /TMPL_LOOP -->
243                     <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
244                     <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
245                     <!-- /TMPL_LOOP -->
246                 <!-- /TMPL_IF -->
247                 <!-- RE-SORT START -->
248                     <label for="sort_by">Sort By: </label>
249                     <select id="sort_by" name="sort_by">
250                     <!-- TMPL_INCLUDE NAME="resort_form.inc" -->
251                     </select>
252                     <input type="submit" value="Go" />
253                 <!-- RESORT END -->
254             </form>
255             <h3>
256                 <!-- 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;
257             </h3>
258             <div id="selection_ops" class="cartlist" style="display:none">
259                 <a href="#" onclick="selectAll(); return false;">Select All</a>
260                 |
261                 <a href="#" onclick="clearAll(); return false;">Clear All</a>
262                 |
263                 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
264                 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
265                 |
266                 <span class="addto"></span>
267                 <!-- TMPL_IF NAME="CAN_user_reserveforothers" -->
268                     <!-- TMPL_IF NAME="DisplayMultiPlaceHold" -->
269                   | <span id="placeholdc"><input type="button" id="placehold" onclick="placeHold(); return false;" value="Place Hold"/></span>
270                     <!-- /TMPL_IF -->
271                 <!-- /TMPL_IF -->
272
273                                 <!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" --> | <input type="button" id="z3950submit" onclick="PopupZ3950(); return false;" value="Z39.50 Search"/><!-- /TMPL_IF -->
274             </div>
275         </div>
276     <!-- TMPL_IF NAME="stopwords_removed" --><div><p class="tip">Ignored the following common words: "<!-- TMPL_VAR NAME="stopwords_removed" -->"<p></div><!-- /TMPL_IF -->
277     <!-- TMPL_ELSE -->
278         <div id="searchheader">
279                         <form method="post" name="fz3950" class="fz3950bigrpad">
280                                 <span id="z3950searchc"><input type="button" id="z3950search" value="Z39.50 Search" onclick="PopupZ3950(); return false;" /></span>
281                         </form>
282             <h3>No results found</h3>
283         <!-- TMPL_IF NAME="searchdesc" -->
284             <p>
285                 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 -->.
286             </p>
287         <!-- TMPL_ELSE -->
288             <p>You did not specify any search criteria.</p>
289         <!-- /TMPL_IF -->
290                 </div>
291     <!-- /TMPL_IF -->
292
293     <!-- TMPL_IF NAME="query_error" -->
294         <br /><br />
295         Error:
296         <span  class="problem">
297             <!-- TMPL_VAR NAME="query_error" -->
298         </span>
299     <!-- /TMPL_IF -->
300
301     <!-- Search Results Table -->
302     <!-- TMPL_IF NAME="total" -->
303         <!-- TMPL_IF NAME="scan" -->
304             <h1>Scan Index:</h1>
305             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
306             <table>
307                 <tr>
308                     <td>
309                         Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
310                     </td>
311                 </tr>
312                 <tr>
313                     <td>
314                         <label for="scan-index">Indexed in:</label>
315                         <select name="idx" id="scan-index">
316                             <option value="">Any Word</option>
317                             <option <!-- TMPL_IF NAME="ms_any,phr" --> selected="selected" <!-- /TMPL_IF --> value="any,phr">Any Phrase</option>
318                             <option <!-- TMPL_IF NAME="ms_ti" --> selected="selected" <!-- /TMPL_IF --> value="ti">Title</option>
319                             <option <!-- TMPL_IF NAME="ms_ti,phr" --> selected="selected" <!-- /TMPL_IF --> value="ti,phr">Title Phrase</option>
320                             <option <!-- TMPL_IF NAME="ms_au,phr" --> selected="selected" <!-- /TMPL_IF --> value="au,phr">Author</option>
321                             <option <!-- TMPL_IF NAME="ms_su" --> selected="selected" <!-- /TMPL_IF --> value="su">Subject</option>
322                             <option <!-- TMPL_IF NAME="ms_su,phr" --> selected="selected" <!-- /TMPL_IF --> value="su,phr">Subject Phrase</option>
323                             <option <!-- TMPL_IF NAME="ms_se" --> selected="selected" <!-- /TMPL_IF --> value="se">Series</option>
324                             <option <!-- TMPL_IF NAME="ms_pb" --> selected="selected" <!-- /TMPL_IF --> value="pb">Publisher</option>
325                             <option <!-- TMPL_IF NAME="ms_nt" --> selected="selected" <!-- /TMPL_IF --> value="nt">Notes</option>
326                             <option <!-- TMPL_IF NAME="ms_se" --> selected="selected" <!-- /TMPL_IF --> value="se">Series Title</option>
327                             <option <!-- TMPL_IF NAME="ms_sn" --> selected="selected" <!-- /TMPL_IF --> value="sn">ISBN</option>
328                             <option <!-- TMPL_IF NAME="ms_ss" --> selected="selected" <!-- /TMPL_IF --> value="ss">ISSN</option>
329                         </select>
330                         <input type="hidden" name="scan" value="1" />
331                     </td>
332                 </tr>
333             </table>
334             </form>
335
336             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
337             <table>
338                 <tr>
339                     <th>Term/Phrase</th>
340                     <th>Count</th>
341                 </tr>
342                 <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
343                     <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
344                         <td>
345                             <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>
346                         </td>
347                         <td>
348                             <!-- TMPL_VAR NAME="author" -->
349                         </td>
350                     </tr>
351                 <!-- /TMPL_LOOP -->
352             </table>
353             </form>
354         <!-- TMPL_ELSE -->
355
356                 <!-- TMPL_IF NAME="NoZebra" -->
357                 <!-- ######### -->
358                 <div id="facets">
359                 <dl>
360                 <!-- FACETS START -->
361                 <!-- TMPL_IF NAME="opacfacets" -->
362                     <dt id="facets1" onclick="var Elt=document.getElementById('facets_list');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
363                     Refine your search
364                     </dt>
365                     <dd id="facets_list" style="display:none;">
366                     <ul>
367                     <!-- TMPL_LOOP NAME="facets_loop" -->
368                     <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
369                         <ul>
370                         <!-- TMPL_LOOP NAME="facets" -->
371                             <li>
372                                 <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" -->">
373                                     <!-- TMPL_VAR NAME="facet_label_value" -->
374                                 </a> (<!-- TMPL_VAR NAME="facet_count" -->)
375                             </li>
376                         <!-- /TMPL_LOOP -->
377                         <!-- TMPL_IF NAME="expandable" -->
378                             <li class="showmore">
379                                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
380                                     Show More
381                                 </a>
382                             </li>
383                         <!-- /TMPL_IF -->
384                         </ul>
385                     </li>
386                     <!-- /TMPL_LOOP -->
387                     </ul>
388                     </dd>
389                 <!-- /TMPL_IF -->
390                 <!-- FACETS END -->
391                 </dl>
392             </div>
393             <!-- ######### -->
394             <!-- NoZebra --><!-- /TMPL_IF -->
395
396             <div id="searchresults">
397                 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="bookbag_form" id="bookbag_form">
398                 <!-- TMPL_IF NAME="searchdesc" -->
399                 <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
400                 <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
401                 <!-- /TMPL_LOOP -->
402                 <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
403                 <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
404                 <!-- /TMPL_LOOP -->
405                 <!-- /TMPL_IF -->
406
407                     <!-- TABLE RESULTS START -->
408                 <table>
409                     <tr>
410                         <!-- TMPL_IF NAME="AmazonEnabled" --><!-- TMPL_IF NAME="AmazonCoverImages" --><th>&nbsp;</th><!-- /TMPL_IF --><!-- /TMPL_IF -->
411                         <th colspan="2">Results</th>
412                         <th>Location</th>
413                     </tr>
414                         <!-- Actual Search Results -->
415                         <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
416                          <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
417                             <!-- TMPL_IF NAME="AmazonEnabled" --><!-- TMPL_IF NAME="AmazonCoverImages" -->
418                                 <td>
419                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
420                                                                         
421                                         <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" />
422                                     </a></td>
423                             <!-- /TMPL_IF --><!-- /TMPL_IF -->
424                             <td>
425                                 <input type="checkbox" class="selection" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" style="display:none" />
426                             </td>
427                             <td>
428                                 <p><!-- TMPL_VAR NAME="result_number" -->.
429                                 <!-- TMPL_INCLUDE NAME="biblio-default-view.inc" -->
430                                             <b><!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" ESCAPE="html" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF --></b>
431                                             </a>
432                                         <!-- TMPL_LOOP NAME="subtitle" --> , <!-- TMPL_VAR NAME="subfield" --> <!-- /TMPL_LOOP -->
433                                                                                 <!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
434                                 </p>
435                                 <!-- TMPL_IF name="summary" -->
436                                         <!-- TMPL_IF NAME="author" -->
437                                             <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>
438                                         <!-- TMPL_ELSE -->
439                                             &nbsp;
440                                         <!-- /TMPL_IF -->
441                                     <p>
442                                     <!-- TMPL_UNLESS NAME="item-level_itypes" -->
443                                     <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
444                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="" />
445                                     <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
446                                     <!-- /TMPL_UNLESS -->
447                                     <!-- TMPL_VAR name="summary" --></p>
448                                 <!-- TMPL_ELSE -->
449                                     <p>
450                                     <!-- TMPL_UNLESS NAME="item-level_itypes" -->
451                                     <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
452                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="" />
453                                     <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
454                                     <!-- /TMPL_UNLESS -->
455
456                                         <!-- TMPL_IF NAME="author" -->
457                                             <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>
458                                         <!-- TMPL_ELSE -->
459                                             &nbsp;
460                                         <!-- /TMPL_IF -->
461                                         Description:
462                                         <!-- TMPL_IF name="place" --><!-- TMPL_VAR name="place" --> <!-- /TMPL_IF -->
463                                         <!-- 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 -->
464                                                                                 <!-- TMPL_IF NAME="edition" -->Edition: <!-- TMPL_VAR NAME="edition" --><!-- /TMPL_IF -->
465                                         <!-- TMPL_IF name="pages" -->: <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
466                                         <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="normalized_isbn" -->ISBN: <!-- TMPL_VAR NAME="normalized_isbn" --><!-- /TMPL_IF -->
467                                         <!-- TMPL_VAR name="description" -->
468                                         <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
469                                         <!-- 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 -->
470                                     </p>
471                                     <!-- TMPL_IF NAME="searchhighlightblob" --><p class="searchhighlightblob"><!-- TMPL_VAR NAME="searchhighlightblob" --></p><!-- /TMPL_IF -->
472
473                                     <!-- TMPL_IF NAME="authorised_value_images" -->
474                                 <p>
475                                   <!-- TMPL_LOOP NAME="authorised_value_images" -->
476                                   <img src="<!-- TMPL_VAR name="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" />
477                                   <!-- /TMPL_LOOP -->
478                                 </p>
479                                 <!-- /TMPL_IF -->
480
481                                 <!-- /TMPL_IF -->
482                                   <p class="hold"><!-- TMPL_IF NAME="norequests" -->
483                                   <span class="noholdstext">No holds allowed</span>
484                               <!-- TMPL_ELSE -->
485                                   <a id="reserve_<!-- TMPL_VAR NAME="biblionumber" -->" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a>
486                                   <!-- 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 -->
487                               <!-- /TMPL_IF -->
488                           <!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
489                           | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Edit record</a>
490                           <!-- /TMPL_IF -->
491                           <!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_items" -->
492                           | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Edit items</a>
493                           <!-- /TMPL_IF --></p>
494                                 </td>
495
496                                 <td><div class="availability">
497                                     <!-- TMPL_IF NAME="items_count" --><strong><!-- TMPL_VAR NAME="items_count" -->
498                                     <!-- 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>
499
500                                     <!-- TMPL_IF NAME="available_items_loop" -->
501                                     <!-- TMPL_IF NAME="availablecount" --><!-- TMPL_VAR NAME="availablecount" --><!-- /TMPL_IF --> available:
502                                     <ul>
503                                     <!-- TMPL_LOOP NAME="available_items_loop" -->
504
505                                         <!-- 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 -->
506                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
507                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
508                                         <!-- 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 -->
509                                         (<!-- TMPL_VAR NAME="count" -->)</li>
510                                     <!-- /TMPL_LOOP --></ul>
511                                     <!-- /TMPL_IF -->
512
513                                    <!-- TMPL_IF NAME="onloan_items_loop" -->
514                                    <span class="status"><!-- TMPL_IF NAME="onloancount" --><!-- TMPL_VAR NAME="onloancount" --><!-- /TMPL_IF --> on loan:</span>
515                                     <ul>
516                                     <!-- TMPL_LOOP NAME="onloan_items_loop" -->
517                                        <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
518                                         <!-- TMPL_IF name="imageurl" -->
519                                         <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" -->" />
520                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
521                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
522
523                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
524                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
525                                         <!-- 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 -->
526                                         (<!-- TMPL_VAR NAME="count" --><!-- TMPL_IF NAME="longoverdue" -->, <!-- TMPL_VAR NAME="longoverdue" --> long overdue<!-- /TMPL_IF -->) date due: <!-- TMPL_VAR NAME="due_date" --></li>
527                                     <!-- /TMPL_LOOP --></ul>
528                                     <!-- /TMPL_IF -->
529
530                                     <!-- TMPL_IF NAME="other_items_loop" -->
531                                     <span class="unavailable"><!-- TMPL_IF NAME="othercount" --><!-- TMPL_VAR NAME="othercount" --><!-- /TMPL_IF --> unavailable:</span>
532                                     <ul>
533                                     <!-- TMPL_LOOP NAME="other_items_loop" -->
534                                         <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
535                                         <!-- TMPL_IF name="imageurl" -->
536                                         <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" -->" />
537                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
538                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
539
540                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
541                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
542                                         <!-- 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 -->
543                                         <!-- TMPL_IF NAME="wthdrawn" -->(Withdrawn)<!-- /TMPL_IF -->
544                                         <!-- TMPL_IF NAME="itemlost" -->(Lost)<!-- /TMPL_IF -->
545                                         <!-- TMPL_IF NAME="damaged" -->(Damaged)<!-- /TMPL_IF -->
546                                         <!-- TMPL_IF NAME="intransit" -->(In transit)<!-- /TMPL_IF -->
547                                         <!-- TMPL_IF NAME="onhold" -->(On hold)<!-- /TMPL_IF -->
548                                         <!-- TMPL_IF NAME="notforloan" --><!-- TMPL_VAR name="notforloan" --><!-- /TMPL_IF -->
549                                         (<!-- TMPL_VAR NAME="count" -->)</li>
550                                     <!-- /TMPL_LOOP --></ul>
551                                     <!-- /TMPL_IF -->
552                                     <!-- TMPL_ELSE -->
553                                     <span class="unavailable">No items</span>
554                                     <!-- /TMPL_IF --> <!-- /items count -->
555                                     </div></td>
556
557                             </tr>
558                         <!-- /TMPL_LOOP -->
559                 </table>
560                 </form>
561                 </div>
562         <!-- /TMPL_IF -->
563         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
564     <!-- TMPL_ELSE -->
565     <!-- No Results Found -->
566     <!-- /TMPL_IF -->
567 <!-- TMPL_IF NAME="outer_sup_results_loop" -->
568 </div>
569 <div class="yui-u">
570 <!-- TMPL_LOOP NAME="outer_sup_results_loop" -->
571 <!-- <div class="yui-b"> -->
572     <!-- TMPL_IF NAME="inner_sup_results_loop" -->
573         <!-- TMPL_VAR NAME="servername" -->
574         <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
575         <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>
576         <!-- /TMPL_LOOP -->
577     <!-- /TMPL_IF -->
578 <!-- </div> -->
579 <!-- /TMPL_LOOP -->
580 </div>
581 </div>
582 <!-- /TMPL_IF -->
583
584 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
585     <!-- Value will be set here by placeHold() -->
586     <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
587     <input type="text" name="findborrower" id="holdFor" value="" />
588     <input type="hidden" name="multi_hold" value="1"/>
589 </form>
590
591 <form id="list_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
592     <!-- Value will be set here by addToList() -->
593     <input id="list_form_biblios" type="hidden" name="biblionumbers" value="" />
594     <input type="hidden" name="multi_listadd" value="1"/>
595 </form>
596
597 </div>
598 </div>
599 <div class="yui-b">
600 <!-- TMPL_INCLUDE NAME="facets.inc" -->
601 </div>
602 </div>
603 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->