Bug 7381 - wrong isbn showing on the staff search results
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / results.tt
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     });
24 }
25
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');
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         [% 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         });
83
84  $("#tagsel_span").html("<input id=\"tagsel_tag\" class=\"submit\" type=\"submit\" value=\"Tag\"/>");
85
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 });
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
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  });
151 }
152
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     });
163
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;
167 }
168
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     }
175 }
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;
183 }
184
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 }}];
200
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' %]
225
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>
231
232 <div id="doc3" class="yui-t1">
233    <div id="bd">
234     <div id="yui-main">
235     <div class="yui-b">
236
237     [% IF ( outer_sup_results_loop ) %]
238     <div class="yui-ge">
239     <div class="yui-u first">
240     [% END %]
241
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 %]
253
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 %]
290
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 %]
310
311     [% IF ( query_error ) %]
312         <br /><br />
313         Error:
314         <span  class="problem">
315             [% query_error %]
316         </span>
317     [% END %]
318
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>
363
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 %]
383
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 %]
423
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 %]
434
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                                 <p>[% SEARCH_RESULT.result_number %].
457                                  [% biblionumber = SEARCH_RESULT.biblionumber %]
458
459                                 [% INCLUDE 'biblio-default-view.inc' %]
460                                             <b>[% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %]</b>
461                                             </a>
462                                         [% FOREACH subtitl IN SEARCH_RESULT.subtitle %] , [% subtitl.subfield %] [% END %]
463                                                                                 [% IF ( SEARCH_RESULT.volume ) %],[% SEARCH_RESULT.volume %][% END %] [% IF ( SEARCH_RESULT.volumeddesc ) %], [% SEARCH_RESULT.volumeddesc %][% END %]
464                                 </p>
465                                 [% IF ( SEARCH_RESULT.summary ) %]
466                                         [% IF ( SEARCH_RESULT.author ) %]
467                                             <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>
468                                         [% ELSE %]
469                                             &nbsp;
470                                         [% END %]
471                                     <p>
472                                     [% UNLESS ( item_level_itypes ) %]
473                                     [% UNLESS ( noItemTypeImages ) %][% IF ( SEARCH_RESULT.imageurl ) %]
474                                     <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" style="float: left; margin: .1em;" alt="" />
475                                     [% END %][% END %]
476                                     [% END %]
477                                     [% SEARCH_RESULT.summary %]</p>
478                                 [% ELSE %]
479                                     <p>
480                                     [% UNLESS ( item_level_itypes ) %]
481                                     [% UNLESS ( noItemTypeImages ) %][% IF ( SEARCH_RESULT.imageurl ) %]
482                                     <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" style="float: left; margin: .1em;" alt="" />
483                                     [% END %][% END %]
484                                     [% END %]
485
486                                         [% IF ( SEARCH_RESULT.author ) %]
487                                             <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>
488                                         [% ELSE %]
489                                             &nbsp;
490                                         [% END %]
491                                         Description:
492                                         <span class="results_imprint">[% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place %] [% END %]
493                                         [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode %][% END %] [% IF ( SEARCH_RESULT.publicationyear ) %] [% SEARCH_RESULT.publicationyear %] [% ELSIF ( SEARCH_RESULT.copyrightdate ) %] [% SEARCH_RESULT.copyrightdate %][% END %]</span>
494                                                                                 [% IF ( SEARCH_RESULT.edition ) %]<span class="results_edition">Edition: [% SEARCH_RESULT.edition %]</span>[% END %]
495                                         <span class="results_physicaldesc">[% IF ( SEARCH_RESULT.pages ) %]: [% SEARCH_RESULT.pages %][% END %]
496                                         [% 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 %]
497                                         <span class="results_itemtype">[% SEARCH_RESULT.description %]</span>
498                                         [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp %])</i>[% END %]
499                                         [% 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 %]
500                                     </p>
501                                     [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<p class="searchhighlightblob">[% SEARCH_RESULT.searchhighlightblob %]</p>[% END %]
502
503                                     [% IF ( SEARCH_RESULT.authorised_value_images ) %]
504                                 <p>
505                                   [% FOREACH authorised_value_image IN SEARCH_RESULT.authorised_value_images %]
506                                   <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.description %]" />
507                                   [% END %]
508                                 </p>
509                                 [% END %]
510
511                                 [% END %]
512                                   <p class="hold">[% IF ( SEARCH_RESULT.norequests ) %]
513                                   <span class="noholdstext">No holds allowed</span>
514                               [% ELSE %]
515                                   <a id="reserve_[% SEARCH_RESULT.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Holds</a>
516                                   [% 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 %]
517                               [% END %]
518                           [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
519                           | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit record</a>
520                           [% END %]
521                           [% IF ( CAN_user_editcatalogue_edit_items ) %]
522                           | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit items</a>
523                           [% END %]</p>
524                                 </td>
525
526                                 <td><div class="availability">
527                                     [% IF ( SEARCH_RESULT.items_count ) %]<strong>[% SEARCH_RESULT.items_count %]
528                                     [% IF ( SEARCH_RESULT.itemsplural ) %]items[% ELSE %]item[% END %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount %] available:[% ELSE %], None available[% END %]</strong>
529
530                                     [% IF ( SEARCH_RESULT.availablecount ) %]
531                                     [% SEARCH_RESULT.availablecount %] available:
532                                     <ul>
533                                     [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
534
535                                         [% 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 %]
536                                         [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
537                                         [% IF ( available_items_loo.location ) %][% available_items_loo.location %][% END %]
538                                         [% 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 %]
539                                         ([% available_items_loo.count %])</li>
540                                     [% END %]</ul>
541                                     [% END %]
542
543                                    [% IF ( SEARCH_RESULT.onloancount ) %]
544                                    <span class="status">[% SEARCH_RESULT.onloancount %] on loan:</span>
545                                     <ul>
546                                     [% FOREACH onloan_items_loo IN SEARCH_RESULT.onloan_items_loop %]
547                                        [% IF ( noItemTypeImages ) %]<li>[% ELSE %][% IF ( item_level_itypes ) %]
548                                         [% IF ( onloan_items_loo.imageurl ) %]
549                                         <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 %]" />
550                                         [% ELSE %]<li>[% END %]
551                                         [% ELSE %]<li>[% END %][% END %]
552
553                                         [% IF ( onloan_items_loo.branchname ) %][% onloan_items_loo.branchname %][% END %]
554                                         [% IF ( onloan_items_loo.location ) %][% onloan_items_loo.location %][% END %]
555                                         [% 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 %]
556                                         ([% onloan_items_loo.count %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue %] long overdue[% END %]) date due: [% onloan_items_loo.due_date %]</li>
557                                     [% END %]</ul>
558                                     [% END %]
559
560                                     [% IF ( SEARCH_RESULT.othercount ) %]
561                                     <span class="unavailable">[% SEARCH_RESULT.othercount %] unavailable:</span>
562                                     <ul>
563                                     [% FOREACH other_items_loo IN SEARCH_RESULT.other_items_loop %]
564                                         [% IF ( noItemTypeImages ) %]<li>[% ELSE %][% IF ( item_level_itypes ) %]
565                                         [% IF ( other_items_loo.imageurl ) %]
566                                         <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 %]" />
567                                         [% ELSE %]<li>[% END %]
568                                         [% ELSE %]<li>[% END %][% END %]
569
570                                         [% IF ( other_items_loo.branchname ) %][% other_items_loo.branchname %][% END %]
571                                         [% IF ( other_items_loo.location ) %][% other_items_loo.location %][% END %]
572                                         [% 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 %]
573                                         [% IF ( other_items_loo.wthdrawn ) %](Withdrawn)[% END %]
574                                         [% IF ( other_items_loo.itemlost ) %](Lost)[% END %]
575                                         [% IF ( other_items_loo.damaged ) %](Damaged)[% END %]
576                                         [% IF ( other_items_loo.intransit ) %](In transit)[% END %]
577                                         [% IF ( other_items_loo.onhold ) %](On hold)[% END %]
578                                         [% IF ( other_items_loo.notforloan ) %][% other_items_loo.notforloan %][% END %]
579                                         ([% other_items_loo.count %])</li>
580                                     [% END %]</ul>
581                                     [% END %]
582                                     [% ELSE %]
583                                     [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS.count ) %]
584                                     <strong id="altholdings_heading">Other holdings:</strong>
585                                     <ul>
586                                     [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
587                                     <li id="alternateholdings">[% ALTERNATEHOLDING.holding %]</li>
588                                     [% END %]
589                                     </li>
590                                     [% ELSE %]
591                                     <span class="unavailable">No items</span>
592                                     [% END %]
593                                     [% END %] <!-- /items count -->
594                                     </div></td>
595
596                             </tr>
597                         [% END %]
598                 </table>
599                 </form>
600                 </div>
601         [% END %]
602         [% INCLUDE 'page-numbers.inc' %]
603     [% ELSE %]
604     <!-- No Results Found -->
605     [% END %]
606 [% IF ( outer_sup_results_loop ) %]
607 </div>
608 <div class="yui-u">
609 [% FOREACH outer_sup_results_loo IN outer_sup_results_loop %]
610 <!-- <div class="yui-b"> -->
611     [% IF ( outer_sup_results_loo.inner_sup_results_loop ) %]
612         [% outer_sup_results_loo.servername %]
613         [% FOREACH inner_sup_results_loo IN outer_sup_results_loo.inner_sup_results_loop %]
614         <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>
615         [% END %]
616     [% END %]
617 <!-- </div> -->
618 [% END %]
619 </div>
620 </div>
621 [% END %]
622
623 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
624     <!-- Value will be set here by placeHold() -->
625     <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
626     <input type="hidden" name="findborrower" id="holdFor" value="" />
627     <input type="hidden" name="multi_hold" value="1"/>
628 </form>
629
630 <form id="list_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
631     <!-- Value will be set here by addToList() -->
632     <input id="list_form_biblios" type="hidden" name="biblionumbers" value="" />
633     <input type="hidden" name="multi_listadd" value="1"/>
634 </form>
635
636 </div>
637 </div>
638 <div class="yui-b">
639 [% INCLUDE 'facets.inc' %]
640 </div>
641 </div>
642 [% INCLUDE 'intranet-bottom.inc' %]