bug 6919 - implements XSLTResultsDisplay and adding both unimarc and marc21 xslt
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / results.tt
blobd558795fecbe18bf5ae312959eddaf3664d2a1e6
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Catalog &rsaquo; [% IF ( searchdesc ) %]Results of Search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s):&nbsp;'[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %]</title>
3 [% INCLUDE '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 [% IF ( 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     });
26 $(window).load(function() {
27         verify_images();
28      });
29 [% END %]
30 function Dopop(link) {
31         newin=window.open(link,'popup','width=500,height=500,toolbar=false,scrollbars=yes,resizeable=yes');
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     }
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         [% IF ( intranetbookbag ) %]     param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>"; [% END %]
63         [% IF ( virtualshelves ) %][% IF ( addbarshelves ) %]
64         param1 += "<optgroup label=\""+_("Your Lists:")+"\">";[% FOREACH addbarshelvesloo IN addbarshelvesloop %]
65         param1 += "<option id=\"s[% addbarshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addbarshelvesloo.shelfname |html %]<\/option>";[% END %]
66         param1 += "<\/optgroup>";[% END %]
67         [% IF ( addpubshelves ) %]param1 += "<optgroup label=\""+_("Public Lists:")+"\">"[% FOREACH addpubshelvesloo IN addpubshelvesloop %]+"<option id=\"s[% addpubshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addpubshelvesloo.shelfname |html %]<\/option>"[% END %]
68         [% END %]
69         param1 +="<\/optgroup><option value=\"newlist\">"+_("[ New List ]")+"<\/option>"
70         [% END %]
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         });
84  $("#tagsel_span").html("<input id=\"tagsel_tag\" class=\"submit\" type=\"submit\" value=\"Tag\"/>");
86     $("#selection_ops").show();
87     $(".selection").show();
88     [% IF ( query_desc ) %]
89         var query_desc = "[% query_desc |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
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     [% END %]
95 });
97 function highlightOff() {
98     $("p").removeHighlight();
99     $(".highlight_toggle").toggle();
101 function highlightOn() {
102     var x;
103     for (x in q_array) {
104         $("p").highlight(q_array[x]);
105     }
106     $(".highlight_toggle").toggle();
109 function selectAll () {
110     $(".selection").attr("checked", "checked");
112 function clearAll () {
113     $(".selection").removeAttr("checked");
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;
140 function forgetPatron(){
141     $.cookie("holdfor",null, { path: "/", expires: 0 });
142     $(".holdforlink").remove();
143     $("#placeholdc").empty();
144     new YAHOO.widget.Button({
145     id: "placehold",
146     type: "button",
147     label: _("Place hold"),
148     container: "placeholdc",
149     onclick: { fn: placeHold }
150  });
153 function addToList () {
154     var checkedItems = $(".selection:checked");
155     if ($(checkedItems).size() == 0) {
156         alert(MSG_NO_ITEM_SELECTED);
157         return false;
158     }
159     var bibs = "";
160     $(checkedItems).each(function() {
161         bibs += $(this).val() + "/";
162     });
164     var url = "/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumbers=" + bibs;
165         window.open(url, 'Add_to_virtualshelf', 'width=500, height=400, toolbar=false, scrollbars=yes');
166     return false;
169 /* this function open a popup to search on z3950 server.  */
170 function PopupZ3950() {
171     var strQuery = GetZ3950Terms();
172     if(strQuery){
173         window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=[% biblionumber %]"+strQuery,"z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
174     }
176 /* provide Z3950 search points */
177 function GetZ3950Terms(){
178         var strQuery="&frameworkcode=";
179         [% FOREACH z3950_search_param IN z3950_search_params %]
180                 strQuery += "&" + "[% z3950_search_param.name %]" + "=" + "[% z3950_search_param.encvalue %]";
181         [% END %]
182         return strQuery;
185 YAHOO.util.Event.onContentReady("searchheader", function () {
186         new YAHOO.widget.Button( "z3950submit", { onclick: { fn: PopupZ3950 }});
187         [% IF ( holdfor ) %]
188         var holdFor = function (){
189             $("#holdFor").val("");
190             placeHold();
191         }
192         var holdForPatron = function () {
193             $("#holdFor").val("[% holdfor_cardnumber %]");
194             placeHold();
195         }
196         var HoldForButtonMenu = [
197             { text: _("Place hold"), onclick: { fn: holdFor }},
198             { text: _("Place hold for") + " [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", onclick: { fn: holdForPatron }},
199             { text: _("Forget") + " [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", onclick: { fn: forgetPatron }}];
201         var HoldForButton = new YAHOO.widget.Button({
202                 type: "split",
203                 label: _("Place hold"),
204                 name: "holdfor",
205                 menu: HoldForButtonMenu,
206                 container: "placeholdc",
207                 onclick: { fn: holdFor }
208         });
209         [% ELSE %]
210         new YAHOO.widget.Button({
211             id: "placehold",
212             type: "button",
213             label: _("Place hold"),
214             container: "placeholdc",
215             onclick: { fn: placeHold }
216          });
217         [% END %]
218 }); // YAHOO onContentReady
219 //]]>
220 </script>
221 </head>
222 <body>
223 [% INCLUDE 'header.inc' %]
224 [% INCLUDE 'cat-search.inc' %]
226 <div id="breadcrumbs">
227          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
228 &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
229 &rsaquo; Search [% IF ( query_desc ) %]for '[% query_desc |html %]'[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s):&nbsp;'[% limit_desc %]'[% END %]
230 </div>
232 <div id="doc3" class="yui-t1">
233    <div id="bd">
234     <div id="yui-main">
235     <div class="yui-b">
237     [% IF ( outer_sup_results_loop ) %]
238     <div class="yui-ge">
239     <div class="yui-u first">
240     [% END %]
242     [% IF ( koha_spsuggest ) %]
243         <div style="font-size: 12px;">Did you mean:
244             <ul style="list-style: none;">
245             [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
246             <li>
247                 <a href="/cgi-bin/koha/catalogue/search.pl?q=[% SPELL_SUGGES.spsuggestion %]">[% SPELL_SUGGES.spsuggestion %]</a>
248             </li>
249             [% END %]
250             </ul>
251         </div>
252     [% END %]
254     [% IF ( total ) %]
255         <div id="searchheader">
256             <form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="sortbyform">
257                 [% IF ( searchdesc ) %]
258                     [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
259                     <input type="hidden" name="[% QUERY_INPUT.input_name |html %]" value="[% QUERY_INPUT.input_value |html %]"/>
260                     [% END %]
261                     [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
262                     <input type="hidden" name="[% LIMIT_INPUT.input_name |html %]" value="[% LIMIT_INPUT.input_value |html %]"/>
263                     [% END %]
264                 [% END %]
265                 <!-- RE-SORT START -->
266                     <label for="sort_by">Sort By: </label>
267                     <select id="sort_by" name="sort_by">
268                     [% INCLUDE 'resort_form.inc' %]
269                     </select>
270                     <input type="submit" value="Go" />
271                 <!-- RESORT END -->
272             </form>
273             <h3>
274                 [% total %] result(s) found [% IF ( query_desc ) %]for <span style="font-weight: bold;">'[% query_desc |html %]'</span>[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s): <span style="font-weight: bold;">'[% limit_desc %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName %] Catalog[% END %].<br />&nbsp;
275             </h3>
276             <div id="selection_ops" class="cartlist" style="display:none">
277                 <a href="#" onclick="selectAll(); return false;">Select All</a>
278                 |
279                 <a href="#" onclick="clearAll(); return false;">Clear All</a>
280                 |
281                 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
282                 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
283                 |
284                 <span class="addto"></span>
285                 [% IF ( CAN_user_reserveforothers ) %]
286                     [% IF ( DisplayMultiPlaceHold ) %]
287                   | <span id="placeholdc"><input type="button" id="placehold" onclick="placeHold(); return false;" value="Place Hold"/></span>
288                     [% END %]
289                 [% END %]
291                                 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] | <input type="button" id="z3950submit" onclick="PopupZ3950(); return false;" value="Z39.50 Search"/>[% END %]
292             </div>
293         </div>
294     [% IF ( stopwords_removed ) %]<div><p class="tip">Ignored the following common words: "[% stopwords_removed %]"<p></div>[% END %]
295     [% ELSE %]
296         <div id="searchheader">
297                         <form method="post" name="fz3950" class="fz3950bigrpad">
298                                 <span id="z3950searchc"><input type="button" id="z3950search" value="Z39.50 Search" onclick="PopupZ3950(); return false;" /></span>
299                         </form>
300             <h3>No results found</h3>
301         [% IF ( searchdesc ) %]
302             <p>
303                 No results match your search [% IF ( query_desc ) %]for <span style="font-weight: bold;">'[% query_desc |html %]'</span>[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s): <span style="font-weight: bold;">'[% limit_desc %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName %] Catalog[% END %].
304             </p>
305         [% ELSE %]
306             <p>You did not specify any search criteria.</p>
307         [% END %]
308                 </div>
309     [% END %]
311     [% IF ( query_error ) %]
312         <br /><br />
313         Error:
314         <span  class="problem">
315             [% query_error %]
316         </span>
317     [% END %]
319     <!-- Search Results Table -->
320     [% IF ( total ) %]
321         [% IF ( scan ) %]
322             <h1>Scan Index:</h1>
323             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
324             <table>
325                 <tr>
326                     <td>
327                         Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
328                     </td>
329                 </tr>
330                 <tr>
331                     <td>
332                         <label for="scan-index">Indexed in:</label>
333                         <select name="idx" id="scan-index">
334                             <option value="">Any Word</option>
335                             [% IF ( ms_anycommaphr) %]<option selected="selected" value="any,phr">Any Phrase</option>
336                             [% ELSE %]<option value="any,phr">Any Phrase</option>[% END %]
337                             [% IF ( ms_ti ) %]<option selected="selected" value="ti">Title</option>
338                             [% ELSE %]<option value="ti">Title</option>[% END %]
339                             [% IF ( ms_ticommaphr ) %]<option selected="selected" value="ti,phr">Title Phrase</option>
340                             [% ELSE %]<option value="ti,phr">Title Phrase</option>[% END %]
341                             [% IF ( ms_aucommaphr ) %]<option selected="selected" value="au,phr">Author</option>
342                             [% ELSE %]<option value"au,phr">Author</option>[% END %]
343                             [% IF ( ms_su ) %]<option selected="selected" value="su">Subject</option>
344                             [% ELSE %]<option value="su">Subject</option>[% END %]
345                             [% IF ( ms_sucommaphr ) %]<option selected="selected" value="su,phr">Subject Phrase</option>
346                             [% ELSE %]<option value="su,phr">Subject Phrase</option>[% END %]
347                             [% IF ( ms_se ) %]<option selected="selected" value="se">Series</option>
348                             [% ELSE %]<option value="su">Series</option>[% END %]
349                             [% IF ( ms_pb ) %]<option selected="selected" value="pb">Publisher</option>
350                             [% ELSE %]<option value="pb">Publisher</option>[% END %]
351                             [% IF ( ms_nt ) %]<option selected="selected" value="nt">Notes</option>
352                             [% ELSE %]<option value="nt">Notes</option>[% END %]
353                             [% IF ( ms_sn ) %]<option selected="selected" value="sn">ISBN</option>
354                             [% ELSE %]<option value="sn">ISBN</option>[% END %]
355                             [% IF ( ms_ss ) %]<option selected="selected" value="ss">ISSN</option>
356                             [% ELSE %]<option value="ss">ISSN</option>[% END %]
357                         </select>
358                         <input type="hidden" name="scan" value="1" />
359                     </td>
360                 </tr>
361             </table>
362             </form>
364             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
365             <table>
366                 <tr>
367                     <th>Term/Phrase</th>
368                     <th>Count</th>
369                 </tr>
370                 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
371                     [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
372                         <td>
373                             <a href="/cgi-bin/koha/catalogue/search.pl?idx=[% SEARCH_RESULT.scan_index_to_use %]&amp;q=[% SEARCH_RESULT.scan_use |url %]&quot;[% SEARCH_RESULT.title %]&quot;">[% SEARCH_RESULT.title |html %]</a>
374                         </td>
375                         <td>
376                             [% SEARCH_RESULT.author %]
377                         </td>
378                     </tr>
379                 [% END %]
380             </table>
381             </form>
382         [% ELSE %]
384                 [% IF ( NoZebra ) %]
385                 <!-- ######### -->
386                 <div id="facets">
387                 <dl>
388                 <!-- FACETS START -->
389                 [% IF ( opacfacets ) %]
390                     <dt id="facets1" onclick="var Elt=document.getElementById('facets_list');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
391                     Refine your search
392                     </dt>
393                     <dd id="facets_list" style="display:none;">
394                     <ul>
395                     [% FOREACH facets_loo IN facets_loop %]
396                     <li id="[% facets_loo.type_id %]">[% facets_loo.type_label %]
397                         <ul>
398                         [% FOREACH facet IN facets_loo.facets %]
399                             <li>
400                                 <a href="/cgi-bin/koha/catalogue/search.pl?q=[% facet.searchdesc %] and [% facet.type_link_value %]:[% facet.facet_link_value %]" title="[% facet.facet_title_value %]">
401                                     [% facet.facet_label_value %]
402                                 </a> ([% facet.facet_count %])
403                             </li>
404                         [% END %]
405                         [% IF ( facets_loo.expandable ) %]
406                             <li class="showmore">
407                                 <a href="/cgi-bin/koha/catalogue/search.pl?q=[% facets_loo.searchdesc %][% IF ( offset ) %]&amp;offset=[% offset %][% END %]&amp;expand=[% facets_loo.expand %]#[% facets_loo.type_id %]">
408                                     Show More
409                                 </a>
410                             </li>
411                         [% END %]
412                         </ul>
413                     </li>
414                     [% END %]
415                     </ul>
416                     </dd>
417                 [% END %]
418                 <!-- FACETS END -->
419                 </dl>
420             </div>
421             <!-- ######### -->
422             <!-- NoZebra -->[% END %]
424             <div id="searchresults">
425                 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="bookbag_form" id="bookbag_form">
426                 [% IF ( searchdesc ) %]
427                 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
428                 <input type="hidden" name="[% QUERY_INPUT.input_name |html %]" value="[% QUERY_INPUT.input_value |html %]"/>
429                 [% END %]
430                 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
431                 <input type="hidden" name="[% LIMIT_INPUT.input_name |html %]" value="[% LIMIT_INPUT.input_value |html %]"/>
432                 [% END %]
433                 [% END %]
435                     <!-- TABLE RESULTS START -->
436                 <table>
437                     <tr>
438                         [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]<th>&nbsp;</th>[% END %][% END %]
439                         <th colspan="2">Results</th>
440                         <th>Location</th>
441                     </tr>
442                         <!-- Actual Search Results -->
443                         [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
444                          [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
445                             [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]
446                                 <td>
447                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
448                                                                         
449                                         <img src="[% IF ( SEARCH_RESULT.normalized_isbn ) %]http://images.amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg[% ELSE %]http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif[% END %]" alt="" class="thumbnail" />
450                                     </a></td>
451                             [% END %][% END %]
452                             <td>
453                                 <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" style="display:none" />
454                             </td>
455                             <td>
456                             [% IF ( SEARCH_RESULT.XSLTResultsRecord ) %]
457                                 [% SEARCH_RESULT.XSLTResultsRecord %]
458                             [% ELSE %]
459                                 <p>[% SEARCH_RESULT.result_number %].
460                                  [% biblionumber = SEARCH_RESULT.biblionumber %]
462                                 [% INCLUDE 'biblio-default-view.inc' %]
463                                             <b>[% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %]</b>
464                                             </a>
465                                         [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield %][% END %]
466                                                                                 [% IF ( SEARCH_RESULT.volume ) %],[% SEARCH_RESULT.volume %][% END %] [% IF ( SEARCH_RESULT.volumeddesc ) %], [% SEARCH_RESULT.volumeddesc %][% END %]
467                                 </p>
468                                 [% IF ( SEARCH_RESULT.summary ) %]
469                                         [% IF ( SEARCH_RESULT.author ) %]
470                                             <a href="/cgi-bin/koha/catalogue/search.pl?idx=au&amp;q=[% SEARCH_RESULT.author |url %]" title="Search for this Author">[% SEARCH_RESULT.author %]</a>
471                                         [% ELSE %]
472                                             &nbsp;
473                                         [% END %]
474                                     <p>
475                                     [% UNLESS ( item_level_itypes ) %]
476                                     [% UNLESS ( noItemTypeImages ) %][% IF ( SEARCH_RESULT.imageurl ) %]
477                                     <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" style="float: left; margin: .1em;" alt="" />
478                                     [% END %][% END %]
479                                     [% END %]
480                                     [% SEARCH_RESULT.summary %]</p>
481                                 [% ELSE %]
482                                     <p>
483                                     [% UNLESS ( item_level_itypes ) %]
484                                     [% UNLESS ( noItemTypeImages ) %][% IF ( SEARCH_RESULT.imageurl ) %]
485                                     <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" style="float: left; margin: .1em;" alt="" />
486                                     [% END %][% END %]
487                                     [% END %]
489                                         [% IF ( SEARCH_RESULT.author ) %]
490                                             <a href="/cgi-bin/koha/catalogue/search.pl?idx=au&amp;q=[% SEARCH_RESULT.author |url %]" title="Search for this Author">[% SEARCH_RESULT.author %]</a>
491                                         [% ELSE %]
492                                             &nbsp;
493                                         [% END %]
494                                         Description:
495                                         <span class="results_imprint">[% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place %] [% END %]
496                                         [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode %][% END %] [% IF ( SEARCH_RESULT.publicationyear ) %] [% SEARCH_RESULT.publicationyear %] [% ELSIF ( SEARCH_RESULT.copyrightdate ) %] [% SEARCH_RESULT.copyrightdate %][% END %]</span>
497                                                                                 [% IF ( SEARCH_RESULT.edition ) %]<span class="results_edition">Edition: [% SEARCH_RESULT.edition %]</span>[% END %]
498                                         <span class="results_physicaldesc">[% IF ( SEARCH_RESULT.pages ) %]: [% SEARCH_RESULT.pages %][% END %]
499                                         [% IF ( SEARCH_RESULT.size ) %] ; [% SEARCH_RESULT.size %][% END %]</span> [% IF ( SEARCH_RESULT.isbn ) %]<span class="results_isbn">ISBN: [% SEARCH_RESULT.isbn | replace('\s\|', ', ')%]</span>[% END %]
500                                         <span class="results_itemtype">[% SEARCH_RESULT.description %]</span>
501                                         [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp %])</i>[% END %]
502                                         [% IF ( SEARCH_RESULT.cn_class ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=[% SEARCH_RESULT.cn_class |url %]">[% SEARCH_RESULT.cn_class %]</a>][% END %]
503                                     </p>
504                                     [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<p class="searchhighlightblob">[% SEARCH_RESULT.searchhighlightblob %]</p>[% END %]
506                                     [% IF ( SEARCH_RESULT.authorised_value_images ) %]
507                                 <p>
508                                   [% FOREACH authorised_value_image IN SEARCH_RESULT.authorised_value_images %]
509                                   <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.description %]" />
510                                   [% END %]
511                                 </p>
512                                 [% END %]
514                                 [% END %]
515                                 [% END %]
516                                   <p class="hold">[% IF ( SEARCH_RESULT.norequests ) %]
517                                   <span class="noholdstext">No holds allowed</span>
518                               [% ELSE %]
519                                   <a id="reserve_[% SEARCH_RESULT.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Holds</a>
520                                   [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]&amp;findborrower=[% holdfor_cardnumber %]">Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %]
521                               [% END %]
522                           [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
523                           | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit record</a>
524                           [% END %]
525                           [% IF ( CAN_user_editcatalogue_edit_items ) %]
526                           | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit items</a>
527                           [% END %]</p>
528                                 </td>
530                                 <td><div class="availability">
531                                     [% IF ( SEARCH_RESULT.items_count ) %]<strong>[% SEARCH_RESULT.items_count %]
532                                     [% IF ( SEARCH_RESULT.itemsplural ) %]items[% ELSE %]item[% END %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount %] available:[% ELSE %], None available[% END %]</strong>
534                                     [% IF ( SEARCH_RESULT.availablecount ) %]
535                                     <ul>
536                                     [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
538                                         [% IF ( noItemTypeImages ) %]<li>[% ELSE %][% IF ( item_level_itypes ) %][% IF ( available_items_loo.imageurl ) %]<li style="list-style: none; list-style-type: none;"><img src="[% available_items_loo.imageurl %]" title="[% available_items_loo.description %]" alt="[% available_items_loo.description %]" />[% ELSE %]<li>[% END %][% ELSE %]<li>[% END %][% END %]
539                                         [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
540                                         [% IF ( available_items_loo.location ) %][% available_items_loo.location %][% END %]
541                                         [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=[% available_items_loo.itemcallnumber |url %]">[% available_items_loo.itemcallnumber %]</a>][% END %]
542                                         ([% available_items_loo.count %])</li>
543                                     [% END %]</ul>
544                                     [% END %]
546                                    [% IF ( SEARCH_RESULT.onloancount ) %]
547                                    <span class="status">[% SEARCH_RESULT.onloancount %] on loan:</span>
548                                     <ul>
549                                     [% FOREACH onloan_items_loo IN SEARCH_RESULT.onloan_items_loop %]
550                                        [% IF ( noItemTypeImages ) %]<li>[% ELSE %][% IF ( item_level_itypes ) %]
551                                         [% IF ( onloan_items_loo.imageurl ) %]
552                                         <li style="list-style: none; list-style-type: none;"><img src="[% onloan_items_loo.imageurl %]" title="[% onloan_items_loo.description %]" alt="[% onloan_items_loo.description %]" />
553                                         [% ELSE %]<li>[% END %]
554                                         [% ELSE %]<li>[% END %][% END %]
556                                         [% IF ( onloan_items_loo.branchname ) %][% onloan_items_loo.branchname %][% END %]
557                                         [% IF ( onloan_items_loo.location ) %][% onloan_items_loo.location %][% END %]
558                                         [% IF ( onloan_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=[% onloan_items_loo.itemcallnumber |url %]">[% onloan_items_loo.itemcallnumber %]</a>][% END %]
559                                         ([% onloan_items_loo.count %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue %] long overdue[% END %]) date due: [% onloan_items_loo.due_date %]</li>
560                                     [% END %]</ul>
561                                     [% END %]
563                                     [% IF ( SEARCH_RESULT.othercount ) %]
564                                     <span class="unavailable">[% SEARCH_RESULT.othercount %] unavailable:</span>
565                                     <ul>
566                                     [% FOREACH other_items_loo IN SEARCH_RESULT.other_items_loop %]
567                                         [% IF ( noItemTypeImages ) %]<li>[% ELSE %][% IF ( item_level_itypes ) %]
568                                         [% IF ( other_items_loo.imageurl ) %]
569                                         <li style="list-style: none; list-style-type: none;"><img src="[% other_items_loo.imageurl %]" title="[% other_items_loo.description %]" alt="[% other_items_loo.description %]" />
570                                         [% ELSE %]<li>[% END %]
571                                         [% ELSE %]<li>[% END %][% END %]
573                                         [% IF ( other_items_loo.branchname ) %][% other_items_loo.branchname %][% END %]
574                                         [% IF ( other_items_loo.location ) %][% other_items_loo.location %][% END %]
575                                         [% IF ( other_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=[% other_items_loo.itemcallnumber |url %]">[% other_items_loo.itemcallnumber %]</a>][% END %]
576                                         [% IF ( other_items_loo.wthdrawn ) %](Withdrawn)[% END %]
577                                         [% IF ( other_items_loo.itemlost ) %](Lost)[% END %]
578                                         [% IF ( other_items_loo.damaged ) %](Damaged)[% END %]
579                                         [% IF ( other_items_loo.intransit ) %](In transit)[% END %]
580                                         [% IF ( other_items_loo.onhold ) %](On hold)[% END %]
581                                         [% IF ( other_items_loo.notforloan ) %][% other_items_loo.notforloan %][% END %]
582                                         ([% other_items_loo.count %])</li>
583                                     [% END %]</ul>
584                                     [% END %]
585                                     [% ELSE %]
586                                     [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS.count ) %]
587                                     <strong id="altholdings_heading">Other holdings:</strong>
588                                     <ul>
589                                     [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
590                                     <li id="alternateholdings">[% ALTERNATEHOLDING.holding %]</li>
591                                     [% END %]
592                                     </li>
593                                     [% ELSE %]
594                                     <span class="unavailable">No items</span>
595                                     [% END %]
596                                     [% END %] <!-- /items count -->
597                                     </div></td>
599                             </tr>
600                         [% END %]
601                 </table>
602                 </form>
603                 </div>
604         [% END %]
605         [% INCLUDE 'page-numbers.inc' %]
606     [% ELSE %]
607     <!-- No Results Found -->
608     [% END %]
609 [% IF ( outer_sup_results_loop ) %]
610 </div>
611 <div class="yui-u">
612 [% FOREACH outer_sup_results_loo IN outer_sup_results_loop %]
613 <!-- <div class="yui-b"> -->
614     [% IF ( outer_sup_results_loo.inner_sup_results_loop ) %]
615         [% outer_sup_results_loo.servername %]
616         [% FOREACH inner_sup_results_loo IN outer_sup_results_loo.inner_sup_results_loop %]
617         <div><a href="/cgi-bin/koha/catalogue/search.pl?[% inner_sup_results_loo.query_cgi %][% inner_sup_results_loo.limit_cgi |html %][% inner_sup_results_loo.sort_by %][% inner_sup_results_loo.link %]">[% inner_sup_results_loo.title |html %]</a></div>
618         [% END %]
619     [% END %]
620 <!-- </div> -->
621 [% END %]
622 </div>
623 </div>
624 [% END %]
626 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
627     <!-- Value will be set here by placeHold() -->
628     <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
629     <input type="hidden" name="findborrower" id="holdFor" value="" />
630     <input type="hidden" name="multi_hold" value="1"/>
631 </form>
633 <form id="list_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
634     <!-- Value will be set here by addToList() -->
635     <input id="list_form_biblios" type="hidden" name="biblionumbers" value="" />
636     <input type="hidden" name="multi_listadd" value="1"/>
637 </form>
639 </div>
640 </div>
641 <div class="yui-b">
642 [% INCLUDE 'facets.inc' %]
643 </div>
644 </div>
645 [% INCLUDE 'intranet-bottom.inc' %]