Merge remote-tracking branch 'kc/new/enh/bug_5263' 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                             [% IF ( ms_anycommaphr) %]<option selected="selected" value="any,phr">Any Phrase</option>
322                             [% ELSE %]<option value="any,phr">Any Phrase</option>[% END %]
323                             [% IF ( ms_ti ) %]<option selected="selected" value="ti">Title</option>
324                             [% ELSE %]<option value="ti">Title</option>[% END %]
325                             [% IF ( ms_ticommaphr ) %]<option selected="selected" value="ti,phr">Title Phrase</option>
326                             [% ELSE %]<option value="ti,phr">Title Phrase</option>[% END %]
327                             [% IF ( ms_aucommaphr ) %]<option selected="selected" value="au,phr">Author</option>
328                             [% ELSE %]<option value"au,phr">Author</option>[% END %]
329                             [% IF ( ms_su ) %]<option selected="selected" value="su">Subject</option>
330                             [% ELSE %]<option value="su">Subject</option>[% END %]
331                             [% IF ( ms_sucommaphr ) %]<option selected="selected" value="su,phr">Subject Phrase</option>
332                             [% ELSE %]<option value="su,phr">Subject Phrase</option>[% END %]
333                             [% IF ( ms_se ) %]<option selected="selected" value="se">Series</option>
334                             [% ELSE %]<option value="su">Series</option>[% END %]
335                             [% IF ( ms_pb ) %]<option selected="selected" value="pb">Publisher</option>
336                             [% ELSE %]<option value="pb">Publisher</option>[% END %]
337                             [% IF ( ms_nt ) %]<option selected="selected" value="nt">Notes</option>
338                             [% ELSE %]<option value="nt">Notes</option>[% END %]
339                             [% IF ( ms_sn ) %]<option selected="selected" value="sn">ISBN</option>
340                             [% ELSE %]<option value="sn">ISBN</option>[% END %]
341                             [% IF ( ms_ss ) %]<option selected="selected" value="ss">ISSN</option>
342                             [% ELSE %]<option value="ss">ISSN</option>[% END %]
343                         </select>
344                         <input type="hidden" name="scan" value="1" />
345                     </td>
346                 </tr>
347             </table>
348             </form>
349
350             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
351             <table>
352                 <tr>
353                     <th>Term/Phrase</th>
354                     <th>Count</th>
355                 </tr>
356                 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
357                     [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
358                         <td>
359                             <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>
360                         </td>
361                         <td>
362                             [% SEARCH_RESULT.author %]
363                         </td>
364                     </tr>
365                 [% END %]
366             </table>
367             </form>
368         [% ELSE %]
369
370                 [% IF ( NoZebra ) %]
371                 <!-- ######### -->
372                 <div id="facets">
373                 <dl>
374                 <!-- FACETS START -->
375                 [% IF ( opacfacets ) %]
376                     <dt id="facets1" onclick="var Elt=document.getElementById('facets_list');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
377                     Refine your search
378                     </dt>
379                     <dd id="facets_list" style="display:none;">
380                     <ul>
381                     [% FOREACH facets_loo IN facets_loop %]
382                     <li id="[% facets_loo.type_id %]">[% facets_loo.type_label %]
383                         <ul>
384                         [% FOREACH facet IN facets_loo.facets %]
385                             <li>
386                                 <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 %]">
387                                     [% facet.facet_label_value %]
388                                 </a> ([% facet.facet_count %])
389                             </li>
390                         [% END %]
391                         [% IF ( facets_loo.expandable ) %]
392                             <li class="showmore">
393                                 <a href="/cgi-bin/koha/catalogue/search.pl?q=[% facets_loo.searchdesc %]&amp;expand=[% facets_loo.expand %]#[% facets_loo.type_id %]">
394                                     Show More
395                                 </a>
396                             </li>
397                         [% END %]
398                         </ul>
399                     </li>
400                     [% END %]
401                     </ul>
402                     </dd>
403                 [% END %]
404                 <!-- FACETS END -->
405                 </dl>
406             </div>
407             <!-- ######### -->
408             <!-- NoZebra -->[% END %]
409
410             <div id="searchresults">
411                 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="bookbag_form" id="bookbag_form">
412                 [% IF ( searchdesc ) %]
413                 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
414                 <input type="hidden" name="[% QUERY_INPUT.input_name |html %]" value="[% QUERY_INPUT.input_value |html %]"/>
415                 [% END %]
416                 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
417                 <input type="hidden" name="[% LIMIT_INPUT.input_name |html %]" value="[% LIMIT_INPUT.input_value |html %]"/>
418                 [% END %]
419                 [% END %]
420
421                     <!-- TABLE RESULTS START -->
422                 <table>
423                     <tr>
424                         [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]<th>&nbsp;</th>[% END %][% END %]
425                         <th colspan="2">Results</th>
426                         <th>Location</th>
427                     </tr>
428                         <!-- Actual Search Results -->
429                         [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
430                          [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
431                             [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]
432                                 <td>
433                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
434                                                                         
435                                         <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" />
436                                     </a></td>
437                             [% END %][% END %]
438                             <td>
439                                 <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" style="display:none" />
440                             </td>
441                             <td>
442                                 <p>[% SEARCH_RESULT.result_number %].
443                                  [% biblionumber = SEARCH_RESULT.biblionumber %]
444
445                                 [% INCLUDE 'biblio-default-view.inc' %]
446                                             <b>[% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %]</b>
447                                             </a>
448                                         [% FOREACH subtitl IN SEARCH_RESULT.subtitle %] , [% subtitl.subfield %] [% END %]
449                                                                                 [% IF ( SEARCH_RESULT.volume ) %],[% SEARCH_RESULT.volume %][% END %] [% IF ( SEARCH_RESULT.volumeddesc ) %], [% SEARCH_RESULT.volumeddesc %][% END %]
450                                 </p>
451                                 [% IF ( SEARCH_RESULT.summary ) %]
452                                         [% IF ( SEARCH_RESULT.author ) %]
453                                             <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>
454                                         [% ELSE %]
455                                             &nbsp;
456                                         [% END %]
457                                     <p>
458                                     [% UNLESS ( item_level_itypes ) %]
459                                     [% UNLESS ( noItemTypeImages ) %][% IF ( SEARCH_RESULT.imageurl ) %]
460                                     <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" style="float: left; margin: .1em;" alt="" />
461                                     [% END %][% END %]
462                                     [% END %]
463                                     [% SEARCH_RESULT.summary %]</p>
464                                 [% ELSE %]
465                                     <p>
466                                     [% UNLESS ( item_level_itypes ) %]
467                                     [% UNLESS ( noItemTypeImages ) %][% IF ( SEARCH_RESULT.imageurl ) %]
468                                     <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" style="float: left; margin: .1em;" alt="" />
469                                     [% END %][% END %]
470                                     [% END %]
471
472                                         [% IF ( SEARCH_RESULT.author ) %]
473                                             <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>
474                                         [% ELSE %]
475                                             &nbsp;
476                                         [% END %]
477                                         Description:
478                                         <span class="results_imprint">[% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place %] [% END %]
479                                         [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode %][% END %] [% IF ( SEARCH_RESULT.publicationyear ) %] [% SEARCH_RESULT.publicationyear %] [% ELSIF ( SEARCH_RESULT.copyrightdate ) %] [% SEARCH_RESULT.copyrightdate %][% END %]</span>
480                                                                                 [% IF ( SEARCH_RESULT.edition ) %]<span class="results_edition">Edition: [% SEARCH_RESULT.edition %]</span>[% END %]
481                                         <span class="results_physicaldesc">[% IF ( SEARCH_RESULT.pages ) %]: [% SEARCH_RESULT.pages %][% END %]
482                                         [% 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 %]
483                                         <span class="results_itemtype">[% SEARCH_RESULT.description %]</span>
484                                         [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp %])</i>[% END %]
485                                         [% 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 %]
486                                     </p>
487                                     [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<p class="searchhighlightblob">[% SEARCH_RESULT.searchhighlightblob %]</p>[% END %]
488
489                                     [% IF ( SEARCH_RESULT.authorised_value_images ) %]
490                                 <p>
491                                   [% FOREACH authorised_value_image IN SEARCH_RESULT.authorised_value_images %]
492                                   <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.description %]" />
493                                   [% END %]
494                                 </p>
495                                 [% END %]
496
497                                 [% END %]
498                                   <p class="hold">[% IF ( SEARCH_RESULT.norequests ) %]
499                                   <span class="noholdstext">No holds allowed</span>
500                               [% ELSE %]
501                                   <a id="reserve_[% SEARCH_RESULT.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Holds</a>
502                                   [% 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 %]
503                               [% END %]
504                           [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
505                           | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit record</a>
506                           [% END %]
507                           [% IF ( CAN_user_editcatalogue_edit_items ) %]
508                           | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit items</a>
509                           [% END %]</p>
510                                 </td>
511
512                                 <td><div class="availability">
513                                     [% IF ( SEARCH_RESULT.items_count ) %]<strong>[% SEARCH_RESULT.items_count %]
514                                     [% IF ( SEARCH_RESULT.itemsplural ) %]items[% ELSE %]item[% END %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount %] available:[% ELSE %], None available[% END %]</strong>
515
516                                     [% IF ( SEARCH_RESULT.availablecount ) %]
517                                     [% SEARCH_RESULT.availablecount %] available:
518                                     <ul>
519                                     [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
520
521                                         [% 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 %]
522                                         [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
523                                         [% IF ( available_items_loo.location ) %][% available_items_loo.location %][% END %]
524                                         [% 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 %]
525                                         ([% available_items_loo.count %])</li>
526                                     [% END %]</ul>
527                                     [% END %]
528
529                                    [% IF ( SEARCH_RESULT.onloancount ) %]
530                                    <span class="status">[% SEARCH_RESULT.onloancount %] on loan:</span>
531                                     <ul>
532                                     [% FOREACH onloan_items_loo IN SEARCH_RESULT.onloan_items_loop %]
533                                        [% IF ( noItemTypeImages ) %]<li>[% ELSE %][% IF ( item_level_itypes ) %]
534                                         [% IF ( onloan_items_loo.imageurl ) %]
535                                         <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 %]" />
536                                         [% ELSE %]<li>[% END %]
537                                         [% ELSE %]<li>[% END %][% END %]
538
539                                         [% IF ( onloan_items_loo.branchname ) %][% onloan_items_loo.branchname %][% END %]
540                                         [% IF ( onloan_items_loo.location ) %][% onloan_items_loo.location %][% END %]
541                                         [% 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 %]
542                                         ([% onloan_items_loo.count %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue %] long overdue[% END %]) date due: [% onloan_items_loo.due_date %]</li>
543                                     [% END %]</ul>
544                                     [% END %]
545
546                                     [% IF ( SEARCH_RESULT.othercount ) %]
547                                     <span class="unavailable">[% SEARCH_RESULT.othercount %] unavailable:</span>
548                                     <ul>
549                                     [% FOREACH other_items_loo IN SEARCH_RESULT.other_items_loop %]
550                                         [% IF ( noItemTypeImages ) %]<li>[% ELSE %][% IF ( item_level_itypes ) %]
551                                         [% IF ( other_items_loo.imageurl ) %]
552                                         <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 %]" />
553                                         [% ELSE %]<li>[% END %]
554                                         [% ELSE %]<li>[% END %][% END %]
555
556                                         [% IF ( other_items_loo.branchname ) %][% other_items_loo.branchname %][% END %]
557                                         [% IF ( other_items_loo.location ) %][% other_items_loo.location %][% END %]
558                                         [% 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 %]
559                                         [% IF ( other_items_loo.wthdrawn ) %](Withdrawn)[% END %]
560                                         [% IF ( other_items_loo.itemlost ) %](Lost)[% END %]
561                                         [% IF ( other_items_loo.damaged ) %](Damaged)[% END %]
562                                         [% IF ( other_items_loo.intransit ) %](In transit)[% END %]
563                                         [% IF ( other_items_loo.onhold ) %](On hold)[% END %]
564                                         [% IF ( other_items_loo.notforloan ) %][% other_items_loo.notforloan %][% END %]
565                                         ([% other_items_loo.count %])</li>
566                                     [% END %]</ul>
567                                     [% END %]
568                                     [% ELSE %]
569                                     [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS.count ) %]
570                                     <strong id="altholdings_heading">Other holdings:</strong>
571                                     <ul>
572                                     [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
573                                     <li id="alternateholdings">[% ALTERNATEHOLDING.holding %]</li>
574                                     [% END %]
575                                     </li>
576                                     [% ELSE %]
577                                     <span class="unavailable">No items</span>
578                                     [% END %]
579                                     [% END %] <!-- /items count -->
580                                     </div></td>
581
582                             </tr>
583                         [% END %]
584                 </table>
585                 </form>
586                 </div>
587         [% END %]
588         [% INCLUDE 'page-numbers.inc' %]
589     [% ELSE %]
590     <!-- No Results Found -->
591     [% END %]
592 [% IF ( outer_sup_results_loop ) %]
593 </div>
594 <div class="yui-u">
595 [% FOREACH outer_sup_results_loo IN outer_sup_results_loop %]
596 <!-- <div class="yui-b"> -->
597     [% IF ( outer_sup_results_loo.inner_sup_results_loop ) %]
598         [% outer_sup_results_loo.servername %]
599         [% FOREACH inner_sup_results_loo IN outer_sup_results_loo.inner_sup_results_loop %]
600         <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>
601         [% END %]
602     [% END %]
603 <!-- </div> -->
604 [% END %]
605 </div>
606 </div>
607 [% END %]
608
609 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
610     <!-- Value will be set here by placeHold() -->
611     <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
612     <input type="hidden" name="findborrower" id="holdFor" value="" />
613     <input type="hidden" name="multi_hold" value="1"/>
614 </form>
615
616 <form id="list_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
617     <!-- Value will be set here by addToList() -->
618     <input id="list_form_biblios" type="hidden" name="biblionumbers" value="" />
619     <input type="hidden" name="multi_listadd" value="1"/>
620 </form>
621
622 </div>
623 </div>
624 <div class="yui-b">
625 [% INCLUDE 'facets.inc' %]
626 </div>
627 </div>
628 [% INCLUDE 'intranet-bottom.inc' %]