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