Merge branch 'bug_9690' into 3.12-master
[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">
5 //<![CDATA[
6 var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
7 var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
8 var q_array = new Array();  // will hold search terms, if present
9 [% IF ( AmazonCoverImages ) %]
10 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
11 function verify_images() {
12     $("img").each(function(i){
13         if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
14             w = this.width;
15             h = this.height;
16             if ((w == 1) || (h == 1)) {
17                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
18             } else if ((this.complete != null) && (!this.complete)) {
19                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
20             }
21         }
22     });
23 }
24
25 $(window).load(function() {
26         verify_images();
27      });
28 [% END %]
29 function Dopop(link) {
30         newin=window.open(link,'popup','width=500,height=500,toolbar=false,scrollbars=yes,resizeable=yes');
31 }
32 function cartList(){
33     if($("#addto").find("option:selected").attr("value") == "addtolist"){
34         var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
35         if (vShelfAdd()) {
36              Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vShelfAdd());
37         }
38         return false;
39     } else if($("#addto").find("option:selected").attr("value") == "newlist"){
40         if (vShelfAdd()) {
41             Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
42         }
43         return false;
44     } else if($("#addto").find("option:selected").attr("value") == "morelists"){
45         if (vShelfAdd()) {
46             Dopop('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?' + vShelfAdd());
47         }
48         return false;
49     }
50     if($("#addto").find("option:selected").attr("value") == "addtocart"){
51         addMultiple();
52         return false;
53     }
54 }
55 $(document).ready(function() {
56 $("#cartsubmit").click(function(){
57     cartList();
58     return false;
59 });
60 $("#z3950submit").click(function(){
61     PopupZ3950();
62     return false;
63 });
64
65 $("#searchheader").on("click",".placehold", function(){
66     placeHold();
67     $(".btn-group").removeClass("open");
68     return false;
69 });
70 $(".placeholdfor").click(function(){
71     holdForPatron();
72     $(".btn-group").removeClass("open");
73     return false;
74 });
75 $("#forgetholdfor").click(function(){
76     forgetPatron();
77     $(".btn-group").removeClass("open");
78     return false;
79 });
80 $('#sortbyform').find("input:submit").hide();
81 $('#sort_by').change(function() {
82         $('#sortbyform').submit();
83     });
84         var param1 = "<label for=\"addto\">"+_("Add to:")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>";
85         [% IF ( intranetbookbag ) %]     param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>"; [% END %]
86         [% IF ( virtualshelves ) %][% IF ( addbarshelves ) %]
87         param1 += "<optgroup label=\""+_("Your lists:")+"\">";[% FOREACH addbarshelvesloo IN addbarshelvesloop %]
88         param1 += "<option id=\"s[% addbarshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addbarshelvesloo.shelfname |html %]<\/option>";[% END %]
89         param1 += "<\/optgroup>";[% END %]
90         [% IF ( addpubshelves ) %]param1 += "<optgroup label=\""+_("Public lists:")+"\">"[% FOREACH addpubshelvesloo IN addpubshelvesloop %]+"<option id=\"s[% addpubshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addpubshelvesloo.shelfname |html %]<\/option>"[% END %]
91         param1 += "<\/optgroup>";[% END %]
92         [% IF ( ( addbarshelvesloop && addbarshelvesloop.size>9 ) || (addpubshelvesloop && addpubshelvesloop.size>9 )) %]
93             param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
94         [% END %]
95         param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
96         [% END %]
97         param1 += "<\/select> <input id=\"cartsubmit\" type=\"submit\" class=\"submit\" value=\""+_("Save")+"\" />";
98  $('#sortsubmit').hide();
99         $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
100         $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
101         $("span.addto").html(param1);
102         $("#addto").change(function(){
103                 cartList();
104         });
105         $(".addto").find("input:submit").click(function(){
106                 cartList();
107                 return false;
108         });
109
110  $("#tagsel_span").html("<input id=\"tagsel_tag\" class=\"submit\" type=\"submit\" value=\"Tag\"/>");
111
112     $("#selection_ops").show();
113     $(".selection").show();
114     [% IF ( query_desc ) %]
115     toHighlight = $("p,span.results_summary,a.title");
116         var query_desc = "[% query_desc |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
117         q_array = query_desc.split(" ");
118         // ensure that we don't have "" at the end of the array, which can
119         // break the highlighter
120         while (q_array.length > 0 && q_array[q_array.length-1] == "") {
121             q_array = q_array.splice(0,-1);
122         }
123         highlightOn();
124         $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
125         $("#highlight_toggle_off").show().click(function() {highlightOff();});
126     [% END %]
127 });
128
129
130 [% IF ( query_desc ) %]function highlightOff() {
131     toHighlight.removeHighlight();
132     $(".highlight_toggle").toggle();
133 }
134 function highlightOn() {
135     var x;
136     for (x in q_array) {
137         toHighlight.highlight(q_array[x]);
138     }
139     $(".highlight_toggle").toggle();
140 }[% END %]
141
142 function selectAll () {
143     $(".selection").attr("checked", "checked");
144 }
145 function clearAll () {
146     $(".selection").removeAttr("checked");
147 }
148 function placeHold () {
149     var checkedItems = $(".selection:checked");
150     if ($(checkedItems).size() == 0) {
151         alert(MSG_NO_ITEM_SELECTED);
152         return false;
153     }
154     var bibs = "";
155     var badBibs = false;
156     $(checkedItems).each(function() {
157         var bib = $(this).val();
158         if ($("#reserve_" + bib).size() == 0) {
159             alert(MSG_NON_RESERVES_SELECTED);
160             badBibs = true;
161             return false;
162         }
163         bibs += bib + "/";
164     });
165     if (badBibs) {
166         return false;
167     }
168     $("#hold_form_biblios").val(bibs);
169     $("#hold_form").submit();
170     return false;
171 }
172
173 function forgetPatron(){
174     $.cookie("holdfor",null, { path: "/", expires: 0 });
175     $(".holdforlink").remove();
176     $("#placeholdc").html("<a class=\"btn btn-mini placehold\" href=\"#\"><i class=\"icon-hold\"></i> "+_("Place hold")+"</a>");
177 }
178
179 function addToList () {
180     var checkedItems = $(".selection:checked");
181     if ($(checkedItems).size() == 0) {
182         alert(MSG_NO_ITEM_SELECTED);
183         return false;
184     }
185     var bibs = "";
186     $(checkedItems).each(function() {
187         bibs += $(this).val() + "/";
188     });
189
190     var url = "/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumbers=" + bibs;
191         window.open(url, 'Add_to_virtualshelf', 'width=500, height=400, toolbar=false, scrollbars=yes');
192     return false;
193 }
194
195 /* this function open a popup to search on z3950 server.  */
196 function PopupZ3950() {
197     var strQuery = GetZ3950Terms();
198     if(strQuery){
199         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');
200     }
201 }
202 /* provide Z3950 search points */
203 function GetZ3950Terms(){
204         var strQuery="&frameworkcode=";
205         [% FOREACH z3950_search_param IN z3950_search_params %]
206                 strQuery += "&" + "[% z3950_search_param.name %]" + "=" + "[% z3950_search_param.encvalue %]";
207         [% END %]
208         return strQuery;
209 }
210
211 var holdFor = function (){
212     $("#holdFor").val("");
213     placeHold();
214 }
215 var holdForPatron = function () {
216     $("#holdFor").val("[% holdfor_cardnumber %]");
217     placeHold();
218 }
219 //]]>
220 </script>
221 </head>
222 <body id="catalog_results" class="catalog">
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 && DisplayMultiPlaceHold ) %]
286                 [% IF ( holdfor ) %]
287                     <div id="placeholdc" class="btn-group">
288                         <button class="btn btn-mini placehold"><i class="icon-hold"></i> Place hold</button>
289                         <button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">
290                         <span class="caret"></span>
291                         </button>
292                         <ul class="dropdown-menu">
293                             <li><a href="#" class="placehold">Place hold</a></li>
294                             <li><a href="#" class="placeholdfor">Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></li>
295                             <li class="divider"></li>
296                             <li><a href="#" id="forgetholdfor">Forget  [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></li>
297                         </ul>
298                     </div>
299                 [% ELSE %]
300                     <div id="placeholdc" class="btn-group"><a class="btn btn-mini placehold" href="#"><i class="icon-hold"></i> Place hold</a></div>
301                 [% END %]
302                 [% END %]
303
304                 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] <div class="btn-group"><a class="btn btn-mini" id="z3950submit" href="#"><i class="icon-search"></i> Z39.50 search</a></div>[% END %]
305             </div>
306         </div>
307     [% IF ( stopwords_removed ) %]<div><p class="tip">Ignored the following common words: "[% stopwords_removed %]"<p></div>[% END %]
308     [% ELSE %]
309         <div id="searchheader">
310                         <form method="post" name="fz3950" class="fz3950bigrpad">
311                                 <span id="z3950searchc"><input type="button" id="z3950search" value="Z39.50 Search" onclick="PopupZ3950(); return false;" /></span>
312                         </form>
313             <h3>No results found</h3>
314         [% IF ( searchdesc ) %]
315             <p>
316                 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 %].
317             </p>
318         [% ELSE %]
319             <p>You did not specify any search criteria.</p>
320         [% END %]
321                 </div>
322     [% END %]
323
324     [% IF ( query_error ) %]
325         <div class="dialog alert"><p><strong>Error:</strong> [% query_error %]</p></div>
326     [% END %]
327
328     <!-- Search Results Table -->
329     [% IF ( total ) %]
330         [% IF ( scan ) %]
331             <h1>Scan index:</h1>
332             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
333             <table>
334                 <tr>
335                     <td>
336                         Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
337                     </td>
338                 </tr>
339                 <tr>
340                     <td>
341                         <label for="scan-index">Indexed in:</label>
342                         <select name="idx" id="scan-index">
343                             <option value="">Any word</option>
344                             [% IF ( ms_anycommaphr) %]<option selected="selected" value="any,phr">Any phrase</option>
345                             [% ELSE %]<option value="any,phr">Any phrase</option>[% END %]
346                             [% IF ( ms_ti ) %]<option selected="selected" value="ti">Title</option>
347                             [% ELSE %]<option value="ti">Title</option>[% END %]
348                             [% IF ( ms_ticommaphr ) %]<option selected="selected" value="ti,phr">Title phrase</option>
349                             [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %]
350                             [% IF ( ms_aucommaphr ) %]<option selected="selected" value="au,phr">Author</option>
351                             [% ELSE %]<option value"au,phr">Author</option>[% END %]
352                             [% IF ( ms_su ) %]<option selected="selected" value="su">Subject</option>
353                             [% ELSE %]<option value="su">Subject</option>[% END %]
354                             [% IF ( ms_sucommaphr ) %]<option selected="selected" value="su,phr">Subject phrase</option>
355                             [% ELSE %]<option value="su,phr">Subject phrase</option>[% END %]
356                             [% IF ( ms_se ) %]<option selected="selected" value="se">Series</option>
357                             [% ELSE %]<option value="su">Series</option>[% END %]
358                             [% IF ( ms_pb ) %]<option selected="selected" value="pb">Publisher</option>
359                             [% ELSE %]<option value="pb">Publisher</option>[% END %]
360                             [% IF ( ms_nt ) %]<option selected="selected" value="nt">Notes</option>
361                             [% ELSE %]<option value="nt">Notes</option>[% END %]
362                             [% IF ( ms_sn ) %]<option selected="selected" value="sn">ISBN</option>
363                             [% ELSE %]<option value="sn">ISBN</option>[% END %]
364                             [% IF ( ms_ss ) %]<option selected="selected" value="ss">ISSN</option>
365                             [% ELSE %]<option value="ss">ISSN</option>[% END %]
366                         </select>
367                         <input type="hidden" name="scan" value="1" />
368                     </td>
369                 </tr>
370             </table>
371             </form>
372
373             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
374             <table>
375                 <tr>
376                     <th>Term/Phrase</th>
377                     <th>Count</th>
378                 </tr>
379                 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
380                     [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
381                         <td>
382                             <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>
383                         </td>
384                         <td>
385                             [% SEARCH_RESULT.author %]
386                         </td>
387                     </tr>
388                 [% END %]
389             </table>
390             </form>
391         [% ELSE %]
392
393                 [% IF ( NoZebra ) %]
394                 <!-- ######### -->
395                 <div id="facets">
396                 <dl>
397                 <!-- FACETS START -->
398                 [% IF ( opacfacets ) %]
399                     <dt id="facets1" onclick="var Elt=document.getElementById('facets_list');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
400                     Refine your search
401                     </dt>
402                     <dd id="facets_list" style="display:none;">
403                     <ul>
404                     [% FOREACH facets_loo IN facets_loop %]
405                     <li id="[% facets_loo.type_id %]">[% facets_loo.type_label %]
406                         <ul>
407                         [% FOREACH facet IN facets_loo.facets %]
408                             <li>
409                                 <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 %]">
410                                     [% facet.facet_label_value %]
411                                 </a> ([% facet.facet_count %])
412                             </li>
413                         [% END %]
414                         [% IF ( facets_loo.expandable ) %]
415                             <li class="showmore">
416                                 <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 %]">
417                                     Show more
418                                 </a>
419                             </li>
420                         [% END %]
421                         </ul>
422                     </li>
423                     [% END %]
424                     </ul>
425                     </dd>
426                 [% END %]
427                 <!-- FACETS END -->
428                 </dl>
429             </div>
430             <!-- ######### -->
431             <!-- NoZebra -->[% END %]
432
433             <div id="searchresults">
434                 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="bookbag_form" id="bookbag_form">
435                 [% IF ( searchdesc ) %]
436                 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
437                 <input type="hidden" name="[% QUERY_INPUT.input_name |html %]" value="[% QUERY_INPUT.input_value |html %]"/>
438                 [% END %]
439                 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
440                 <input type="hidden" name="[% LIMIT_INPUT.input_name |html %]" value="[% LIMIT_INPUT.input_value |html %]"/>
441                 [% END %]
442                 [% END %]
443
444                     <!-- TABLE RESULTS START -->
445                 <table>
446                     <tr>
447                         [% IF ( AmazonCoverImages ) %]<th>&nbsp;</th>[% END %]
448                         <th colspan="2">Results</th>
449                         <th>Location</th>
450                     </tr>
451                         <!-- Actual Search Results -->
452                         [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
453                          [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
454                             [% IF ( AmazonCoverImages ) %]
455                                 <td>
456                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
457                                                                         
458                                         <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" />
459                                     </a></td>
460                             [% END %]
461                             <td>
462                                 <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" style="display:none" />
463                             </td>
464                             <td>
465                             [% IF ( SEARCH_RESULT.XSLTResultsRecord ) %]
466                 [% SEARCH_RESULT.result_number %].
467                                 [% SEARCH_RESULT.XSLTResultsRecord %]
468                             [% ELSE %]
469                                 <p>[% SEARCH_RESULT.result_number %].
470                                  [% biblionumber = SEARCH_RESULT.biblionumber %]
471
472                                 [% INCLUDE 'biblio-default-view.inc' %]
473                                             <b>[% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %]</b>
474                                             </a>
475                                         [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield %][% END %]
476                                         [% IF ( SEARCH_RESULT.seriestitle ) %][% SEARCH_RESULT.seriestitle %][% END %]
477                                         [% IF ( SEARCH_RESULT.volume ) %][% SEARCH_RESULT.volume %][% END %] [% IF ( SEARCH_RESULT.volumeddesc ) %], [% SEARCH_RESULT.volumeddesc %][% END %]
478                                 </p>
479                                 [% IF ( SEARCH_RESULT.summary ) %]
480                                         [% IF ( SEARCH_RESULT.author ) %]
481                                             <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>
482                                         [% ELSE %]
483                                             &nbsp;
484                                         [% END %]
485                                     <p>
486                                     [% UNLESS ( item_level_itypes ) %]
487                                     [% IF !noItemTypeImages && SEARCH_RESULT.imageurl %]
488                                     <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" style="float: left; margin: .1em;" alt="[% SEARCH_RESULT.description %]" />
489                                     [% END %]
490                                     [% SEARCH_RESULT.description %]
491                                     [% END %]
492                                     [% SEARCH_RESULT.summary %]</p>
493                                 [% ELSE %]
494                                     <p>
495                                     [% UNLESS ( item_level_itypes ) %]
496                                     [% IF !noItemTypeImages && SEARCH_RESULT.imageurl %]
497                                     <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" style="float: left; margin: .1em;" alt="" />
498                                     [% END %]
499                                     [% END %]
500
501                                         [% IF ( SEARCH_RESULT.author ) %]
502                                             <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>
503                                         [% ELSE %]
504                                             &nbsp;
505                                         [% END %]
506                                         Description:
507                                         <span class="results_imprint">[% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place %] [% END %]
508                                         [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode %][% END %] [% IF ( SEARCH_RESULT.publicationyear ) %] [% SEARCH_RESULT.publicationyear %] [% ELSIF ( SEARCH_RESULT.copyrightdate ) %] [% SEARCH_RESULT.copyrightdate %][% END %]</span>
509                                                                                 [% IF ( SEARCH_RESULT.edition ) %]<span class="results_edition">Edition: [% SEARCH_RESULT.edition %]</span>[% END %]
510                                         <span class="results_physicaldesc">[% IF ( SEARCH_RESULT.pages ) %]: [% SEARCH_RESULT.pages %][% END %]
511                                         [% 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 %]
512                                         <span class="results_itemtype">[% SEARCH_RESULT.description %]</span>
513                                         [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp %])</i>[% END %]
514                                         [% 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 %]
515                                     </p>
516                                     [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<p class="searchhighlightblob">[% SEARCH_RESULT.searchhighlightblob %]</p>[% END %]
517
518                                     [% IF ( SEARCH_RESULT.authorised_value_images ) %]
519                                 <p>
520                                   [% FOREACH authorised_value_image IN SEARCH_RESULT.authorised_value_images %]
521                                   <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.description %]" />
522                                   [% END %]
523                                 </p>
524                                 [% END %]
525
526                                 [% END %]
527                                 [% END %]
528                                   <p class="hold">[% IF ( SEARCH_RESULT.norequests ) %]
529                                   <span class="noholdstext">No holds allowed</span>
530                               [% ELSE %]
531                                   <a id="reserve_[% SEARCH_RESULT.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Holds</a>
532                                   [% 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 %]
533                               [% END %]
534                           [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
535                           | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit record</a>
536                           [% END %]
537                           [% IF ( CAN_user_editcatalogue_edit_items ) %]
538                           | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit items</a>
539                           [% END %]</p>
540                                 </td>
541
542                                 <td><div class="availability">
543                                     [% IF ( SEARCH_RESULT.items_count ) %]<strong>[% SEARCH_RESULT.items_count %]
544                                     [% IF ( SEARCH_RESULT.itemsplural ) %]items[% ELSE %]item[% END %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount %] available:[% ELSE %], None available[% END %]</strong>
545
546                                     [% IF ( SEARCH_RESULT.availablecount ) %]
547                                     <ul>
548                                     [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
549
550                                         [% IF item_level_itypes && !noItemTypeImages && available_items_loo.imageurl %]
551                                         <li style="list-style: none; list-style-type: none;">
552                                           <img src="[% available_items_loo.imageurl %]" title="[% available_items_loo.description %]" alt="[% available_items_loo.description %]" />
553                                         [% ELSE %]
554                                         <li>
555                                         [% END %]
556                                         [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
557                                         [% IF ( available_items_loo.location ) %][% available_items_loo.location %][% END %]
558                                         [% 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 %]
559                                         ([% available_items_loo.count %])
560                                         [% IF item_level_itypes && available_items_loo.description %]
561                                         <br/>[% available_items_loo.description %]
562                                         [% END %]
563                                         </li>
564                                     [% END %]
565                                     </ul>
566                                     [% END %]
567
568                                    [% IF ( SEARCH_RESULT.onloancount ) %]
569                                    <span class="status">[% SEARCH_RESULT.onloancount %] on loan:</span>
570                                     <ul>
571                                     [% FOREACH onloan_items_loo IN SEARCH_RESULT.onloan_items_loop %]
572                                         [% IF item_level_itypes && !noItemTypeImages && onloan_items_loo.imageurl %]
573                                         <li style="list-style: none; list-style-type: none;">
574                                           <img src="[% onloan_items_loo.imageurl %]" title="[% onloan_items_loo.description %]" alt="[% onloan_items_loo.description %]" />
575                                         [% ELSE %]
576                                         <li>
577                                         [% END %]
578                                         [% IF ( onloan_items_loo.branchname ) %][% onloan_items_loo.branchname %][% END %]
579                                         [% IF ( onloan_items_loo.location ) %][% onloan_items_loo.location %][% END %]
580                                         [% 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 %]
581                                         ([% onloan_items_loo.count %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue %] long overdue[% END %]) date due: [% onloan_items_loo.due_date %]
582                                         [% IF item_level_itypes && onloan_items_loo.description %]
583                                         <br/>[% onloan_items_loo.description %]
584                                         [% END %]
585                                         </li>
586                                     [% END %]
587                                     </ul>
588                                     [% END %]
589
590                                     [% IF ( SEARCH_RESULT.othercount ) %]
591                                     <span class="unavailable">[% SEARCH_RESULT.othercount %] unavailable:</span>
592                                     <ul>
593                                     [% FOREACH other_items_loo IN SEARCH_RESULT.other_items_loop %]
594                                         [% IF item_level_itypes && !noItemTypeImages && other_items_loo.imageurl %]
595                                         <li style="list-style: none; list-style-type: none;">
596                                           <img src="[% other_items_loo.imageurl %]" title="[% other_items_loo.description %]" alt="[% other_items_loo.description %]" />
597                                         [% ELSE %]
598                                         <li>
599                                         [% END %]
600                                         [% IF ( other_items_loo.branchname ) %][% other_items_loo.branchname %][% END %]
601                                         [% IF ( other_items_loo.location ) %][% other_items_loo.location %][% END %]
602                                         [% 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 %]
603                                         [% IF ( other_items_loo.wthdrawn ) %](Withdrawn)[% END %]
604                                         [% IF ( other_items_loo.itemlost ) %](Lost)[% END %]
605                                         [% IF ( other_items_loo.damaged ) %](Damaged)[% END %]
606                                         [% IF ( other_items_loo.intransit ) %](In transit)[% END %]
607                                         [% IF ( other_items_loo.onhold ) %](On hold)[% END %]
608                                         [% IF ( other_items_loo.notforloan ) %][% other_items_loo.notforloan %][% END %]
609                                         ([% other_items_loo.count %])
610                                         [% IF item_level_itypes && other_items_loo.description %]
611                                         <br/>[% other_items_loo.description %]
612                                         [% END %]
613                                         </li>
614                                     [% END %]
615                                     </ul>
616                                     [% END %]
617                                     [% ELSE %]
618                                     [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS.count ) %]
619                                     <strong id="altholdings_heading">Other holdings:</strong>
620                                     <ul>
621                                     [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
622                                     <li id="alternateholdings">[% ALTERNATEHOLDING.holding %]</li>
623                                     [% END %]
624                                     </li>
625                                     [% ELSE %]
626                                     <span class="unavailable">No items</span>
627                                     [% END %]
628                                     [% END %] <!-- /items count -->
629                                     </div></td>
630
631                             </tr>
632                         [% END %]
633                 </table>
634                 </form>
635                 </div>
636         [% END %]
637         [% INCLUDE 'page-numbers.inc' %]
638     [% ELSE %]
639     <!-- No Results Found -->
640     [% END %]
641 [% IF ( outer_sup_results_loop ) %]
642 </div>
643 <div class="yui-u">
644 [% FOREACH outer_sup_results_loo IN outer_sup_results_loop %]
645 <!-- <div class="yui-b"> -->
646     [% IF ( outer_sup_results_loo.inner_sup_results_loop ) %]
647         [% outer_sup_results_loo.servername %]
648         [% FOREACH inner_sup_results_loo IN outer_sup_results_loo.inner_sup_results_loop %]
649         <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>
650         [% END %]
651     [% END %]
652 <!-- </div> -->
653 [% END %]
654 </div>
655 </div>
656 [% END %]
657
658 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
659     <!-- Value will be set here by placeHold() -->
660     <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
661     <input type="hidden" name="findborrower" id="holdFor" value="" />
662     <input type="hidden" name="multi_hold" value="1"/>
663 </form>
664
665 <form id="list_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
666     <!-- Value will be set here by addToList() -->
667     <input id="list_form_biblios" type="hidden" name="biblionumbers" value="" />
668     <input type="hidden" name="multi_listadd" value="1"/>
669 </form>
670
671 </div>
672 </div>
673 <div class="yui-b">
674 [% INCLUDE 'facets.inc' %]
675 </div>
676 </div>
677 [% INCLUDE 'intranet-bottom.inc' %]