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