Merge remote branch 'kc/new/enh/bug_4983' into kcmaster
[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 reserved.");
9 <!-- TMPL_IF NAME="AmazonEnabled" -->
10 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
11 function verify_images() {
12     $("img").each(function(i){
13         if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
14             w = this.width;
15             h = this.height;
16             if ((w == 1) || (h == 1)) {
17                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
18             } else if ((this.complete != null) && (!this.complete)) {
19                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
20             }
21         }
22     });
23 }
24 var q_array = new Array();  // will hold search terms, if present
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 $(document).ready(function() {
34 $('#sortbyform').find("input:submit").hide();
35 $('#sort_by').change(function() {
36         $('#sortbyform').submit();
37     });
38
39
40 $(".addtocart").show();
41         var param1 = "<label for=\"addto\">"+_("Add to:")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>";
42         <!-- TMPL_IF name="intranetbookbag" -->     param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>"; <!-- /TMPL_IF -->
43         <!-- TMPL_IF NAME="virtualshelves" --><!-- TMPL_IF NAME="addbarshelves" -->
44         param1 += "<optgroup label=\""+_("Your Lists:")+"\">";<!-- TMPL_LOOP NAME="addbarshelvesloop" -->
45         param1 += "<option id=\"s<!-- TMPL_VAR NAME="shelfnumber" -->\" value=\"addtolist\"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"--><\/option>";<!-- /TMPL_LOOP -->
46         param1 += "<\/optgroup>";<!-- /TMPL_IF -->
47         <!-- 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 -->
48         param1 +="<\/optgroup><option value=\"newlist\">"+_("[ New List ]")+"<\/option>"
49 <!-- /TMPL_IF -->
50         <!-- /TMPL_IF -->
51         param1 += "<\/select> <input type=\"submit\" class=\"submit\" value=\""+_("Save")+"\" />";
52  $('#sortsubmit').hide();
53         $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear All")+"<\/a>");
54         $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select All")+"<\/a>");
55         $("span.addto").html(param1);
56         $("#addto").change(function(){
57                 cartList();
58         });
59         $(".addto").find("input:submit").click(function(){
60                 cartList();
61                 return false;
62         });
63
64  $("#tagsel_span").html("<input id=\"tagsel_tag\" class=\"submit\" type=\"submit\" value=\"Tag\"/>");
65
66         function cartList(){
67                         if($("#addto").find("option:selected").attr("value") == "addtolist"){
68                         var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
69                         if (vShelfAdd()) {
70                             Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vShelfAdd());
71                         }
72                         return false;
73                 } else if($("#addto").find("option:selected").attr("value") == "newlist"){
74                         if (vShelfAdd()) {
75                             Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
76                         }
77                         return false;
78                 }
79                 if($("#addto").find("option:selected").attr("value") == "addtocart"){
80                         addMultiple();
81                         return false;
82                  }
83
84         }
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 </script>
172 </head>
173 <body>
174 <!-- TMPL_INCLUDE NAME="header.inc" -->
175 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
176
177 <div id="breadcrumbs">
178          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
179 &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
180 &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 -->
181 </div>
182
183 <div id="doc3" class="yui-t1">
184    <div id="bd">
185     <div id="yui-main">
186     <div class="yui-b">
187
188     <!-- TMPL_IF NAME="outer_sup_results_loop" -->
189     <div class="yui-ge">
190     <div class="yui-u first">
191     <!-- /TMPL_IF -->
192
193     <!-- TMPL_IF NAME="koha_spsuggest" -->
194         <div style="font-size: 12px;">Did you mean:
195             <ul style="list-style: none;">
196             <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
197             <li>
198                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
199             </li>
200             <!-- /TMPL_LOOP -->
201             </ul>
202         </div>
203     <!-- /TMPL_IF -->
204
205     <!-- TMPL_IF NAME="total" -->
206         <div id="searchheader">
207             <form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="sortbyform">
208                 <!-- TMPL_IF NAME="searchdesc" -->
209                     <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
210                     <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
211                     <!-- /TMPL_LOOP -->
212                     <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
213                     <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
214                     <!-- /TMPL_LOOP -->
215                 <!-- /TMPL_IF -->
216                 <!-- RE-SORT START -->
217                     <label for="sort_by">Sort By: </label>
218                     <select id="sort_by" name="sort_by">
219                     <!-- TMPL_INCLUDE NAME="resort_form.inc" -->
220                     </select>
221                     <input type="submit" value="Go" />
222                 <!-- RESORT END -->
223             </form>
224             <h3>
225                 <!-- 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;
226             </h3>
227             <div id="selection_ops" class="cartlist" style="display:none">
228                 <a href="#" onclick="selectAll(); return false;">Select All</a>
229                 |
230                 <a href="#" onclick="clearAll(); return false;">Clear All</a>
231                 |
232                 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
233                 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
234                 <!-- TMPL_IF NAME="CAN_user_reserveforothers" -->
235                         <!-- TMPL_IF NAME="DisplayMultiPlaceHold" -->
236                   <input type="button" onclick="placeHold(); return false;" value="Place Hold"/>
237                         <!-- /TMPL_IF -->
238                 <!-- /TMPL_IF -->
239                 <span class="addto"></span>
240
241                                 <!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" --><input type="button" onclick="PopupZ3950(); return false;" value="Z39.50 Search"/><!-- /TMPL_IF -->
242             </div>
243         </div>
244     <!-- TMPL_IF NAME="stopwords_removed" --><div><p class="tip">Ignored the following common words: "<!-- TMPL_VAR NAME="stopwords_removed" -->"<p></div><!-- /TMPL_IF -->
245     <!-- TMPL_ELSE -->
246         <div id="searchheader">
247                         <form method="post" name="fz3950" class="fz3950bigrpad">
248                                 <span id="z3950searchc"><input type="button" id="z3950search" value="Z39.50 Search" onclick="PopupZ3950(); return false;" /></span>
249                         </form>
250             <h3>No results found</h3>
251         <!-- TMPL_IF NAME="searchdesc" -->
252             <p>
253                 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 -->.
254             </p>
255         <!-- TMPL_ELSE -->
256             <p>You did not specify any search criteria.</p>
257         <!-- /TMPL_IF -->
258                 </div>
259     <!-- /TMPL_IF -->
260
261     <!-- TMPL_IF NAME="query_error" -->
262         <br /><br />
263         Error:
264         <span  class="problem">
265             <!-- TMPL_VAR NAME="query_error" -->
266         </span>
267     <!-- /TMPL_IF -->
268
269     <!-- Search Results Table -->
270     <!-- TMPL_IF NAME="total" -->
271         <!-- TMPL_IF NAME="scan" -->
272             <h1>Scan Index:</h1>
273             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
274             <table>
275                 <tr>
276                     <td>
277                         Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
278                     </td>
279                 </tr>
280                 <tr>
281                     <td>
282                         <label for="scan-index">Indexed in:</label>
283                         <select name="idx" id="scan-index">
284                             <option value="">Any Word</option>
285                             <option <!-- TMPL_IF NAME="ms_any,phr" --> selected="selected" <!-- /TMPL_IF --> value="any,phr">Any Phrase</option>
286                             <option <!-- TMPL_IF NAME="ms_ti" --> selected="selected" <!-- /TMPL_IF --> value="ti">Title</option>
287                             <option <!-- TMPL_IF NAME="ms_ti,phr" --> selected="selected" <!-- /TMPL_IF --> value="ti,phr">Title Phrase</option>
288                             <option <!-- TMPL_IF NAME="ms_au,phr" --> selected="selected" <!-- /TMPL_IF --> value="au,phr">Author</option>
289                             <option <!-- TMPL_IF NAME="ms_su" --> selected="selected" <!-- /TMPL_IF --> value="su">Subject</option>
290                             <option <!-- TMPL_IF NAME="ms_su,phr" --> selected="selected" <!-- /TMPL_IF --> value="su,phr">Subject Phrase</option>
291                             <option <!-- TMPL_IF NAME="ms_se" --> selected="selected" <!-- /TMPL_IF --> value="se">Series</option>
292                             <option <!-- TMPL_IF NAME="ms_pb" --> selected="selected" <!-- /TMPL_IF --> value="pb">Publisher</option>
293                             <option <!-- TMPL_IF NAME="ms_nt" --> selected="selected" <!-- /TMPL_IF --> value="nt">Notes</option>
294                             <option <!-- TMPL_IF NAME="ms_se" --> selected="selected" <!-- /TMPL_IF --> value="se">Series Title</option>
295                             <option <!-- TMPL_IF NAME="ms_sn" --> selected="selected" <!-- /TMPL_IF --> value="sn">ISBN</option>
296                             <option <!-- TMPL_IF NAME="ms_ss" --> selected="selected" <!-- /TMPL_IF --> value="ss">ISSN</option>
297                         </select>
298                         <input type="hidden" name="scan" value="1" />
299                     </td>
300                 </tr>
301             </table>
302             </form>
303
304             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
305             <table>
306                 <tr>
307                     <th>Term/Phrase</th>
308                     <th>Count</th>
309                 </tr>
310                 <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
311                     <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
312                         <td>
313                             <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>
314                         </td>
315                         <td>
316                             <!-- TMPL_VAR NAME="author" -->
317                         </td>
318                     </tr>
319                 <!-- /TMPL_LOOP -->
320             </table>
321             </form>
322         <!-- TMPL_ELSE -->
323
324             <!-- ######### -->
325             <div id="facets">
326                 <dl>
327                 <!-- TMPL_IF NAME="NoZebra" -->
328                 <!-- FACETS START -->
329                 <!-- TMPL_IF NAME="opacfacets" -->
330                     <dt id="facets1" onclick="var Elt=document.getElementById('facets_list');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
331                     Refine your search
332                     </dt>
333                     <dd id="facets_list" style="display:none;">
334                     <ul>
335                     <!-- TMPL_LOOP NAME="facets_loop" -->
336                     <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
337                         <ul>
338                         <!-- TMPL_LOOP NAME="facets" -->
339                             <li>
340                                 <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" -->">
341                                     <!-- TMPL_VAR NAME="facet_label_value" -->
342                                 </a> (<!-- TMPL_VAR NAME="facet_count" -->)
343                             </li>
344                         <!-- /TMPL_LOOP -->
345                         <!-- TMPL_IF NAME="expandable" -->
346                             <li class="showmore">
347                                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
348                                     Show More
349                                 </a>
350                             </li>
351                         <!-- /TMPL_IF -->
352                         </ul>
353                     </li>
354                     <!-- /TMPL_LOOP -->
355                     </ul>
356                     </dd>
357                 <!-- /TMPL_IF -->
358                 <!-- FACETS END -->
359                 <!-- /TMPL_IF --> <!-- NoZebra -->
360                 </dl>
361             </div>
362             <!-- ######### -->
363
364             <div id="searchresults">
365                 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="bookbag_form" id="bookbag_form">
366                 <!-- TMPL_IF NAME="searchdesc" -->
367                 <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
368                 <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
369                 <!-- /TMPL_LOOP -->
370                 <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
371                 <input type="hidden" name="<!-- TMPL_VAR ESCAPE=HTML NAME="input_name" -->" value="<!-- TMPL_VAR ESCAPE=HTML NAME="input_value" -->"/>
372                 <!-- /TMPL_LOOP -->
373                 <!-- /TMPL_IF -->
374
375                     <!-- TABLE RESULTS START -->
376                 <table>
377                     <tr>
378                         <!-- TMPL_IF NAME="AmazonEnabled" --><!-- TMPL_IF NAME="AmazonCoverImages" --><th>&nbsp;</th><!-- /TMPL_IF --><!-- /TMPL_IF -->
379                         <th colspan="2">Results</th>
380                         <th>Location</th>
381                     </tr>
382                         <!-- Actual Search Results -->
383                         <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
384                          <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
385                             <!-- TMPL_IF NAME="AmazonEnabled" --><!-- TMPL_IF NAME="AmazonCoverImages" -->
386                                 <td>
387                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
388                                                                         
389                                         <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="image" class="thumbnail" /> 
390                                     </a></td>
391                             <!-- /TMPL_IF --><!-- /TMPL_IF -->
392                             <td>
393                                 <input type="checkbox" class="selection" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" style="display:none" />
394                             </td>
395                             <td>
396                                 <p><!-- TMPL_VAR NAME="result_number" -->.
397                                 <!-- TMPL_INCLUDE NAME="biblio-default-view.inc" -->
398                                             <b><!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" ESCAPE="html" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF --></b>
399                                             </a>
400                                         <!-- TMPL_LOOP NAME="subtitle" --> , <!-- TMPL_VAR NAME="subfield" --> <!-- /TMPL_LOOP -->
401                                                                                 <!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
402                                 </p>
403                                 <!-- TMPL_IF name="summary" -->
404                                         <!-- TMPL_IF NAME="author" -->
405                                             <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>
406                                         <!-- TMPL_ELSE -->
407                                             &nbsp;
408                                         <!-- /TMPL_IF -->
409                                     <p>
410                                     <!-- TMPL_UNLESS NAME="item-level_itypes" -->
411                                     <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
412                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="" />
413                                     <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
414                                     <!-- /TMPL_UNLESS -->
415                                     <!-- TMPL_VAR name="summary" --></p>
416                                 <!-- TMPL_ELSE -->
417                                     <p>
418                                     <!-- TMPL_UNLESS NAME="item-level_itypes" -->
419                                     <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
420                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="" />
421                                     <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
422                                     <!-- /TMPL_UNLESS -->
423
424                                         <!-- TMPL_IF NAME="author" -->
425                                             <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>
426                                         <!-- TMPL_ELSE -->
427                                             &nbsp;
428                                         <!-- /TMPL_IF -->
429
430                                         <!-- TMPL_IF name="publishercode" --><!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
431                                                                                 <!-- TMPL_IF NAME="edition" -->Edition: <!-- TMPL_VAR NAME="edition" --><!-- /TMPL_IF -->
432                                         Description:
433                                         <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
434                                                                                 <!-- TMPL_IF name="publicationyear" -->, <!-- TMPL_VAR name="publicationyear" -->
435                                                                                 <!-- TMPL_ELSIF name="copyrightdate"-->, <!-- TMPL_VAR name="copyrightdate" --><!-- /TMPL_IF -->
436                                         <!-- TMPL_IF name="pages" -->: <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
437                                         <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="normalized_isbn" -->ISBN: <!-- TMPL_VAR NAME="normalized_isbn" --><!-- /TMPL_IF -->
438                                         <!-- TMPL_VAR name="description" -->
439                                         <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
440                                         <!-- 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 -->
441                                     </p>
442                                     <!-- TMPL_IF NAME="searchhighlightblob" --><p class="searchhighlightblob"><!-- TMPL_VAR NAME="searchhighlightblob" --></p><!-- /TMPL_IF -->
443
444                                     <!-- TMPL_IF NAME="authorised_value_images" -->
445                                 <p>
446                                   <!-- TMPL_LOOP NAME="authorised_value_images" -->
447                                   <img src="<!-- TMPL_VAR name="imageurl" -->" />
448                                   <!-- /TMPL_LOOP -->
449                                 </p>
450                                 <!-- /TMPL_IF -->
451
452                                 <!-- /TMPL_IF -->
453                                   <p class="hold"><!-- TMPL_IF NAME="norequests" -->
454                                   <span class="noholdstext">No holds allowed</span>
455                               <!-- TMPL_ELSE -->
456                                   <a id="reserve_<!-- TMPL_VAR NAME="biblionumber" -->" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a>
457                               <!-- /TMPL_IF -->
458                           <!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_catalogue" -->
459                           | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Edit record</a>
460                           <!-- /TMPL_IF -->
461                           <!-- TMPL_IF NAME="CAN_user_editcatalogue_edit_items" -->
462                           | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Edit items</a>
463                           <!-- /TMPL_IF --></p>
464                                 </td>
465
466                                 <td><div class="availability">
467                                     <!-- TMPL_IF NAME="items_count" --><strong><!-- TMPL_VAR NAME="items_count" -->
468                                     <!-- 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>
469
470                                     <!-- TMPL_IF NAME="available_items_loop" -->
471                                     <!-- TMPL_IF NAME="availablecount" --><!-- TMPL_VAR NAME="availablecount" --><!-- /TMPL_IF --> available:
472                                     <ul>
473                                     <!-- TMPL_LOOP NAME="available_items_loop" -->
474
475                                         <!-- 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" -->" /><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
476                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
477                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
478                                         <!-- 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 -->
479                                         (<!-- TMPL_VAR NAME="count" -->)</li>
480                                     <!-- /TMPL_LOOP --></ul>
481                                     <!-- /TMPL_IF -->
482
483                                    <!-- TMPL_IF NAME="onloan_items_loop" -->
484                                    <span class="status"><!-- TMPL_IF NAME="onloancount" --><!-- TMPL_VAR NAME="onloancount" --><!-- /TMPL_IF --> on loan:</span>
485                                     <ul>
486                                     <!-- TMPL_LOOP NAME="onloan_items_loop" -->
487                                        <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
488                                         <!-- TMPL_IF name="imageurl" -->
489                                         <li style="list-style: none; list-style-type: none;"><img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
490                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
491                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
492
493                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
494                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
495                                         <!-- 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 -->
496                                         (<!-- TMPL_VAR NAME="count" --><!-- TMPL_IF NAME="longoverdue" -->, <!-- TMPL_VAR NAME="longoverdue" --> long overdue<!-- /TMPL_IF -->) date due: <!-- TMPL_VAR NAME="due_date" --></li>
497                                     <!-- /TMPL_LOOP --></ul>
498                                     <!-- /TMPL_IF -->
499
500                                     <!-- TMPL_IF NAME="other_items_loop" -->
501                                     <span class="unavailable"><!-- TMPL_IF NAME="othercount" --><!-- TMPL_VAR NAME="othercount" --><!-- /TMPL_IF --> unavailable:</span>
502                                     <ul>
503                                     <!-- TMPL_LOOP NAME="other_items_loop" -->
504                                         <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
505                                         <!-- TMPL_IF name="imageurl" -->
506                                         <li style="list-style: none; list-style-type: none;"><img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" />
507                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
508                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
509
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_IF NAME="wthdrawn" -->(Withdrawn)<!-- /TMPL_IF -->
514                                         <!-- TMPL_IF NAME="itemlost" -->(Lost)<!-- /TMPL_IF -->
515                                         <!-- TMPL_IF NAME="damaged" -->(Damaged)<!-- /TMPL_IF -->
516                                         <!-- TMPL_IF NAME="intransit" -->(In transit)<!-- /TMPL_IF -->
517                                         <!-- TMPL_IF NAME="onhold" -->(On hold)<!-- /TMPL_IF -->
518                                         <!-- TMPL_IF NAME="notforloan" --><!-- TMPL_VAR name="notforloan" --><!-- /TMPL_IF -->
519                                         (<!-- TMPL_VAR NAME="count" -->)</li>
520                                     <!-- /TMPL_LOOP --></ul>
521                                     <!-- /TMPL_IF -->
522                                     <!-- TMPL_ELSE -->
523                                     <span class="unavailable">No items</span>
524                                     <!-- /TMPL_IF --> <!-- /items count -->
525                                     </div></td>
526
527                             </tr>
528                         <!-- /TMPL_LOOP -->
529                 </table>
530                 </form>
531                 </div>
532         <!-- /TMPL_IF -->
533         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
534     <!-- TMPL_ELSE -->
535     <!-- No Results Found -->
536     <!-- /TMPL_IF -->
537 <!-- TMPL_IF NAME="outer_sup_results_loop" -->
538 </div>
539 <div class="yui-u">
540 <!-- TMPL_LOOP NAME="outer_sup_results_loop" -->
541 <!-- <div class="yui-b"> -->
542     <!-- TMPL_IF NAME="inner_sup_results_loop" -->
543         <!-- TMPL_VAR NAME="servername" -->
544         <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
545         <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>
546         <!-- /TMPL_LOOP -->
547     <!-- /TMPL_IF -->
548 <!-- </div> -->
549 <!-- /TMPL_LOOP -->
550 </div>
551 </div>
552 <!-- /TMPL_IF -->
553
554 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
555     <!-- Value will be set here by placeHold() -->
556     <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
557     <input type="hidden" name="multi_hold" value="1"/>
558 </form>
559
560 <form id="list_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
561     <!-- Value will be set here by addToList() -->
562     <input id="list_form_biblios" type="hidden" name="biblionumbers" value="" />
563     <input type="hidden" name="multi_listadd" value="1"/>
564 </form>
565
566 </div>
567 </div>
568 <div class="yui-b">
569 <!-- TMPL_INCLUDE NAME="facets.inc" -->
570 </div>
571 </div>
572 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->