Bug 3056 - replace span hacking for terms in C4::Search
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / results.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Catalog &rsaquo; <!-- TMPL_IF NAME="searchdesc" -->Results of Search <!-- TMPL_IF NAME="query_desc" -->for '<!-- TMPL_VAR NAME="query_desc" -->'<!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" -->&nbsp;with limit(s):&nbsp;'<!-- TMPL_VAR NAME="limit_desc" -->'<!-- /TMPL_IF --><!-- TMPL_ELSE -->You did not specify any search criteria<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="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 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
8 function verify_images() {
9     $("img").each(function(i){
10         if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
11             w = this.width;
12             h = this.height;
13             if ((w == 1) || (h == 1)) {
14                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
15             } else if ((this.complete != null) && (!this.complete)) {
16                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
17             }
18         }
19     });
20 }
21 $(window).load(function() {
22     verify_images();
23 });
24 <!-- /TMPL_IF -->
25
26 var q_array = new Array();  // will hold search terms, if present
27
28 $(document).ready(function() {
29     $('#sortbyform').find("input:submit").hide();
30     $('#sort_by').change(function() {
31         $('#sortbyform').submit();
32     });
33         $("#z3950searchc").empty();
34         yuiZ3950button();
35     $("#selection_ops").show();
36     $(".selection").show();
37     <!-- TMPL_IF NAME="query_desc" -->
38         var query_desc = "<!-- TMPL_VAR NAME="query_desc" ESCAPE="JS"-->";
39         q_array = query_desc.split(" ");
40         highlightOn();
41         $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
42         $("#highlight_toggle_off").show().click(function() {highlightOff();});
43     <!-- /TMPL_IF -->
44 });
45
46 function highlightOff() {
47     $("p").removeHighlight();
48     $(".highlight_toggle").toggle();
49 }
50 function highlightOn() {
51     var x;
52     for (x in q_array) {
53         $("p").highlight(q_array[x]);
54     }
55     $(".highlight_toggle").toggle();
56 }
57
58 function selectAll () {
59     $(".selection").attr("checked", "checked");
60 }
61 function clearAll () {
62     $(".selection").removeAttr("checked");
63 }
64 function placeHold () {
65     var checkedItems = $(".selection:checked");
66     if ($(checkedItems).size() == 0) {
67         alert(MSG_NO_ITEM_SELECTED);
68         return false;
69     }
70     var bibs = "";
71     var badBibs = false;
72     $(checkedItems).each(function() {
73         var bib = $(this).val();
74         if ($("#reserve_" + bib).size() == 0) {
75             alert(MSG_NON_RESERVES_SELECTED);
76             badBibs = true;
77             return false;
78         }
79         bibs += bib + "/";
80     });
81     if (badBibs) {
82         return false;
83     }
84     $("#hold_form_biblios").val(bibs);
85     $("#hold_form").submit();
86     return false;
87 }
88 function addToList () {
89     var checkedItems = $(".selection:checked");
90     if ($(checkedItems).size() == 0) {
91         alert(MSG_NO_ITEM_SELECTED);
92         return false;
93     }
94     var bibs = "";
95     $(checkedItems).each(function() {
96         bibs += $(this).val() + "/";
97     });
98
99     var url = "/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumbers=" + bibs;
100         window.open(url, 'Add_to_virtualshelf', 'width=500, height=400, toolbar=false, scrollbars=yes');
101     return false;
102 }
103
104 /* this function open a popup to search on z3950 server.  */
105 function PopupZ3950() {
106     var strQuery = GetZ3950Terms();
107     if(strQuery){
108         window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"+strQuery,"z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
109     }
110 }
111 /* provide Z3950 search points */
112 function GetZ3950Terms(){
113         var strQuery="&frameworkcode=";
114         <!-- TMPL_LOOP NAME='z3950_search_params' -->
115                 strQuery += "&" + "<!-- TMPL_VAR NAME="name" -->" + "=" + "<!-- TMPL_VAR NAME="encvalue" -->";
116         <!-- /TMPL_LOOP -->
117         return strQuery;
118 }
119 /* prepare DOM for Z39.50 Search Button */
120 function yuiZ3950button() {
121         new YAHOO.widget.Button({
122                         id: "z3950search",
123                         type: "button",
124                         label: _("z39.50 Search"),
125                         container: "z3950searchc",
126                         onclick: {fn:function(){PopupZ3950()}}
127         });
128 }
129 //]]>
130 </script>
131 </head>
132 <body>
133 <!-- TMPL_INCLUDE NAME="header.inc" -->
134 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
135
136 <div id="breadcrumbs">
137          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
138 &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
139 &rsaquo; Search <!-- TMPL_IF NAME="query_desc" -->for '<!-- TMPL_VAR NAME="query_desc" ESCAPE="html"-->'<!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" -->&nbsp;with limit(s):&nbsp;'<!-- TMPL_VAR NAME="limit_desc" -->'<!-- /TMPL_IF -->
140 </div>
141
142 <div id="doc3" class="yui-t1">
143    <div id="bd">
144     <div id="yui-main">
145     <div class="yui-b">
146
147     <!-- TMPL_IF NAME="outer_sup_results_loop" -->
148     <div class="yui-ge">
149     <div class="yui-u first">
150     <!-- /TMPL_IF -->
151
152     <!-- TMPL_IF NAME="koha_spsuggest" -->
153         <div style="font-size: 12px;">Did you mean: 
154             <ul style="list-style: none;">
155             <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
156             <li>
157                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
158             </li>
159             <!-- /TMPL_LOOP -->
160             </ul>
161         </div>
162     <!-- /TMPL_IF -->
163
164     <!-- TMPL_IF NAME="total" -->
165         <div id="searchheader">
166                         <form method="post" name="fz3950" class="fz3950">
167                                         <span id="z3950searchc"><input type="button" id="z3950search" value="z39.50 Search" onclick="PopupZ3950(); return false;" /></span>
168                         </form>
169             <form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="sortbyform">
170                 <!-- TMPL_IF NAME="searchdesc" -->
171                     <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
172                     <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
173                     <!-- /TMPL_LOOP -->
174                     <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
175                     <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
176                     <!-- /TMPL_LOOP -->
177                 <!-- /TMPL_IF -->
178                 <!-- RE-SORT START -->
179                     <label for="sort_by">Sort By: </label>
180                     <select id="sort_by" name="sort_by">
181                     <!-- TMPL_INCLUDE NAME="resort_form.inc" -->
182                     </select>
183                     <input type="submit" value="Go" />
184                 <!-- RESORT END -->
185             </form>
186             <h3>
187                 <!-- TMPL_VAR NAME="total" --> result(s) found <!-- TMPL_IF NAME="query_desc" -->for <span style="font-weight: bold;">'<!-- TMPL_VAR NAME="query_desc" ESCAPE="HTML"-->'</span><!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" -->&nbsp;with limit(s): <span style="font-weight: bold;">'<!-- TMPL_VAR NAME="limit_desc" -->'</span><!-- /TMPL_IF --><!-- TMPL_IF NAME="LibraryName" --> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog<!-- /TMPL_IF -->.<br />&nbsp;
188             </h3>
189             <div id="selection_ops" style="display:none">
190                 <a href="#" onclick="selectAll(); return false;">Select All</a>
191                 |
192                 <a href="#" onclick="clearAll(); return false;">Clear All</a>
193                 |
194                 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
195                 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
196                 <!-- TMPL_IF NAME="CAN_user_reserveforothers" -->
197                   <input type="button" onclick="placeHold(); return false;" value="Place Hold"/>
198                 <!-- /TMPL_IF -->
199                 <input type="button" onclick="addToList(); return false;" value="Add to List"/>
200             </div>
201         </div>
202     <!-- TMPL_IF NAME="stopwords_removed" --><div><p class="tip">Ignored the following common words: "<!-- TMPL_VAR NAME="stopwords_removed" -->"<p></div><!-- /TMPL_IF -->
203     <!-- TMPL_ELSE -->
204         <div id="searchheader">
205                         <form method="post" name="fz3950" class="fz3950bigrpad">
206                                 <span id="z3950searchc"><input type="button" id="z3950search" value="z39.50 Search" onclick="PopupZ3950(); return false;" /></span>
207                         </form>
208             <h3>No results found</h3>
209         <!-- TMPL_IF NAME="searchdesc" -->
210             <p>
211                 No results match your search <!-- TMPL_IF NAME="query_desc" -->for <span style="font-weight: bold;">'<!-- TMPL_VAR NAME="query_desc" ESCAPE="HTML"-->'</span><!-- /TMPL_IF --><!-- TMPL_IF NAME="limit_desc" -->&nbsp;with limit(s): <span style="font-weight: bold;">'<!-- TMPL_VAR NAME="limit_desc" -->'</span><!-- /TMPL_IF --><!-- TMPL_IF NAME="LibraryName" --> in <!-- TMPL_VAR NAME="LibraryName" --> Catalog<!-- /TMPL_IF -->.
212             </p>
213         <!-- TMPL_ELSE -->
214             <p>You did not specify any search criteria.</p>
215         <!-- /TMPL_IF -->
216                 </div>
217     <!-- /TMPL_IF -->
218     
219     <!-- TMPL_IF NAME="query_error" -->
220         <br /><br />
221         Error: 
222         <span  class="problem">
223             <!-- TMPL_VAR NAME="query_error" -->
224         </span>
225     <!-- /TMPL_IF -->
226     
227     <!-- Search Results Table -->
228     <!-- TMPL_IF NAME="total" -->
229         <!-- TMPL_IF NAME="scan" -->
230             <h1>Scan Index:</h1>
231             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
232             <table>
233                 <tr>
234                     <td>
235                         Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
236                     </td>
237                 </tr>
238                 <tr>
239                     <td>
240                         <label for="scan-index">Indexed in:</label>
241                         <select name="idx" id="scan-index">
242                             <option value="">Any Word</option>
243                             <option <!-- TMPL_IF NAME="ms_any,phr" --> selected="selected" <!-- /TMPL_IF --> value="any,phr">Any Phrase</option>
244                             <option <!-- TMPL_IF NAME="ms_ti" --> selected="selected" <!-- /TMPL_IF --> value="ti">Title</option>
245                             <option <!-- TMPL_IF NAME="ms_ti,phr" --> selected="selected" <!-- /TMPL_IF --> value="ti,phr">Title Phrase</option>
246                             <option <!-- TMPL_IF NAME="ms_au,phr" --> selected="selected" <!-- /TMPL_IF --> value="au,phr">Author</option>
247                             <option <!-- TMPL_IF NAME="ms_su" --> selected="selected" <!-- /TMPL_IF --> value="su">Subject</option>
248                             <option <!-- TMPL_IF NAME="ms_su,phr" --> selected="selected" <!-- /TMPL_IF --> value="su,phr">Subject Phrase</option>
249                             <option <!-- TMPL_IF NAME="ms_se" --> selected="selected" <!-- /TMPL_IF --> value="se">Series</option>
250                             <option <!-- TMPL_IF NAME="ms_pb" --> selected="selected" <!-- /TMPL_IF --> value="pb">Publisher</option>
251                             <option <!-- TMPL_IF NAME="ms_nt" --> selected="selected" <!-- /TMPL_IF --> value="nt">Notes</option>
252                             <option <!-- TMPL_IF NAME="ms_se" --> selected="selected" <!-- /TMPL_IF --> value="se">Series Title</option>
253                             <option <!-- TMPL_IF NAME="ms_sn" --> selected="selected" <!-- /TMPL_IF --> value="sn">ISBN</option>
254                             <option <!-- TMPL_IF NAME="ms_ss" --> selected="selected" <!-- /TMPL_IF --> value="ss">ISSN</option>
255                         </select>
256                         <input type="hidden" name="scan" value="1" />
257                     </td>
258                 </tr>
259             </table>
260             </form>
261             
262             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
263             <table>
264                 <tr>
265                     <th>Term/Phrase</th>
266                     <th>Count</th>
267                 </tr>
268                 <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
269                     <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
270                         <td>
271                             <a href="/cgi-bin/koha/catalogue/search.pl?idx=<!-- TMPL_VAR name="scan_index_to_use" -->&amp;q=<!-- TMPL_VAR NAME="scan_use" escape="url" -->&quot;<!-- TMPL_VAR NAME="title" -->&quot;"><!-- TMPL_VAR NAME="title" --></a>
272                         </td>
273                         <td>
274                             <!-- TMPL_VAR NAME="author" -->
275                         </td>
276                     </tr>
277                 <!-- /TMPL_LOOP -->
278             </table>
279             </form>
280         <!-- TMPL_ELSE -->
281
282             <!-- ######### -->
283             <div id="facets">
284                 <dl>
285                 <!-- TMPL_IF NAME="NoZebra" -->
286                 <!-- FACETS START -->
287                 <!-- TMPL_IF NAME="opacfacets" -->
288                     <dt id="facets1" onclick="var Elt=document.getElementById('facets_list');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
289                     Refine your search
290                     </dt>
291                     <dd id="facets_list" style="display:none;">
292                     <ul>
293                     <!-- TMPL_LOOP NAME="facets_loop" -->
294                     <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
295                         <ul>
296                         <!-- TMPL_LOOP NAME="facets" -->
297                             <li>
298                                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="searchdesc" --> and <!-- TMPL_VAR NAME="type_link_value" -->:<!-- TMPL_VAR NAME="facet_link_value" -->" title="<!-- TMPL_VAR NAME="facet_title_value" -->">
299                                     <!-- TMPL_VAR NAME="facet_label_value" -->
300                                 </a> (<!-- TMPL_VAR NAME="facet_count" -->)
301                             </li>
302                         <!-- /TMPL_LOOP -->
303                         <!-- TMPL_IF NAME="expandable" -->
304                             <li class="showmore">
305                                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
306                                     Show More
307                                 </a>
308                             </li>
309                         <!-- /TMPL_IF -->
310                         </ul>
311                     </li>
312                     <!-- /TMPL_LOOP -->
313                     </ul>
314                     </dd>
315                 <!-- /TMPL_IF -->
316                 <!-- FACETS END -->
317                 <!-- /TMPL_IF --> <!-- NoZebra -->
318                 </dl>
319             </div>
320             <!-- ######### -->
321
322             <div id="searchresults">
323                     
324                     <!-- TABLE RESULTS START -->
325
326                 <table>
327                     <tr>
328                         <!-- TMPL_IF NAME="AmazonContent" --><th>&nbsp;</th><!-- /TMPL_IF -->
329                         <th>Results</th>
330                         <th>Location</th>
331                     </tr>
332                         <!-- Actual Search Results -->
333                         <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
334                          <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
335                             <!-- TMPL_IF NAME="AmazonContent" -->
336                                 <td>
337                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
338                                         <img src="<!-- TMPL_IF NAME="isbn" -->http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.TZZZZZZZ.jpg<!-- TMPL_ELSE -->http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif<!-- /TMPL_IF -->" alt="image" class="thumbnail" />
339                                     </a></td>                           
340                             <!-- /TMPL_IF -->
341                             <td>
342                                 <p><!-- TMPL_VAR NAME="result_number" -->.
343                                     <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
344                                         <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
345                                             <b><!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF --></b>
346                                         </a> <!-- TMPL_VAR NAME="subtitle" -->
347 <!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
348                                     <!-- TMPL_ELSIF NAME="BiblioDefaultViewlabeled_marc" -->
349                                             <a class="title" href="/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
350                                                 <!-- TMPL_VAR NAME="title" --> 
351                                             </a> <!-- TMPL_VAR NAME="subtitle" --><!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
352                                     <!-- TMPL_ELSIF NAME="BiblioDefaultViewisbd" -->
353                                             <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
354                                                 <!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF -->
355                                             </a> <!-- TMPL_VAR NAME="subtitle" --><!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
356                                     <!-- TMPL_ELSE -->
357                                             <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
358                                                 <!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF -->
359                                             </a> <!-- TMPL_VAR NAME="subtitle" --><!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
360                                                                         <!-- /TMPL_IF -->
361                                 </p>
362                                 <!-- TMPL_IF name="summary" -->
363                                         <!-- TMPL_IF NAME="author" -->
364                                             <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->" title="Search for this Author"><!-- TMPL_VAR NAME="author" --></a>
365                                         <!-- TMPL_ELSE -->
366                                             &nbsp;
367                                         <!-- /TMPL_IF -->
368                                     <p>
369                                     <!-- TMPL_UNLESS NAME="item-level_itypes" -->
370                                     <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
371                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="img" />
372                                     <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
373                                     <!-- /TMPL_UNLESS -->
374                                     <!-- TMPL_VAR name="summary" --></p>
375                                 <!-- TMPL_ELSE -->
376                                     <p>
377                                     <!-- TMPL_UNLESS NAME="item-level_itypes" -->
378                                     <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
379                                     <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="img" />
380                                     <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
381                                     <!-- /TMPL_UNLESS -->
382
383                                         <!-- TMPL_IF NAME="author" -->
384                                             <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->" title="Search for this Author"><!-- TMPL_VAR NAME="author" --></a>
385                                         <!-- TMPL_ELSE -->
386                                             &nbsp;
387                                         <!-- /TMPL_IF -->
388                                         
389                                         <!-- TMPL_IF name="publishercode" --><!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
390                                                                                 <!-- TMPL_IF NAME="edition" -->Edition: <!-- TMPL_VAR NAME="edition" --><!-- /TMPL_IF -->
391                                         Description: 
392                                         <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
393                                                                                 <!-- TMPL_IF name="publicationyear" -->, <!-- TMPL_VAR name="publicationyear" -->
394                                                                                 <!-- TMPL_ELSIF name="copyrightdate"-->, <!-- TMPL_VAR name="copyrightdate" --><!-- /TMPL_IF -->
395                                         <!-- TMPL_IF name="pages" -->: <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
396                                         <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="isbn" -->ISBN: <!-- TMPL_VAR NAME="isbn" --><!-- /TMPL_IF -->
397                                         <!-- TMPL_VAR name="description" -->
398                                         <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
399                                         <!-- TMPL_IF name="cn_class" -->[<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="cn_class" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="cn_class" --></a>]<!-- /TMPL_IF -->
400                                     </p>
401                                     <p class="searchhighlightblob"><!-- TMPL_VAR NAME="searchhighlightblob" --></p>
402
403                                     <!-- TMPL_IF NAME="authorised_value_images" -->
404                                 <p>
405                                   <!-- TMPL_LOOP NAME="authorised_value_images" -->
406                                   <img src="<!-- TMPL_VAR name="imageurl" -->" />
407                                   <!-- /TMPL_LOOP -->
408                                 </p>
409                                 <!-- /TMPL_IF -->
410                                 
411                                 <!-- /TMPL_IF -->
412                                   <!-- TMPL_IF NAME="norequests" -->
413                                         No holds allowed
414                                     <!-- TMPL_ELSE -->
415                                         <a class="reserve" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a>
416                                     <!-- /TMPL_IF -->
417                                 </td>
418
419                                 <td><div class="availability">
420                                     <!-- TMPL_IF NAME="items_count" --><div><!-- TMPL_VAR NAME="items_count" -->
421                                     <!-- TMPL_IF NAME="itemsplural" -->items<!-- TMPL_ELSE -->item<!-- /TMPL_IF --></div>
422
423                                     <!-- TMPL_IF NAME="available_items_loop" -->
424                                     <!-- TMPL_IF NAME="availablecount" --><!-- TMPL_VAR NAME="availablecount" --><!-- /TMPL_IF --> available:
425                                     <ul>
426                                     <!-- TMPL_LOOP NAME="available_items_loop" -->
427                                         
428                                         <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" --><!-- TMPL_IF name="imageurl" --><li style="list-style: none; list-style-type: none;"><img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR NAME="description" -->"/><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
429                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
430                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
431                                         <!-- TMPL_IF NAME="itemcallnumber" -->[<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="itemcallnumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="itemcallnumber" --></a>]<!-- /TMPL_IF -->
432                                         <!-- TMPL_IF NAME="barcode" -->(<!-- TMPL_VAR NAME="barcode" -->)<!-- /TMPL_IF -->
433                                         (<!-- TMPL_VAR NAME="count" -->)</li>
434                                     <!-- /TMPL_LOOP --></ul>
435                                     <!-- TMPL_ELSE -->
436                                     <span class="unavailable">No items available</span>
437                                     <!-- /TMPL_IF -->
438
439                                                                         <!-- TMPL_IF NAME="notforloan_items_loop" -->
440                                                                                 <!-- TMPL_IF name="notforloancount" -->
441                                                                                         <!-- TMPL_VAR name="notforloancount" --> not for loan:
442                                                                                 <!-- /TMPL_IF -->
443                                                                                 <ul>
444                                                                                 <!-- TMPL_LOOP NAME="notforloan_items_loop" -->
445                                                                                         <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" --><!-- TMPL_IF name="imageurl" --><li style="list-style: none; list-style-type: none;"><img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR NAME="description" -->"/><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
446                                                 <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
447                                                 <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
448                                                 <!-- TMPL_IF NAME="itemcallnumber" -->[<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="itemcallnumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="itemcallnumber" --></a>]<!-- /TMPL_IF -->
449                                                 <!-- TMPL_IF NAME="barcode" -->(<!-- TMPL_VAR NAME="barcode" -->)<!-- /TMPL_IF -->
450                                                 (<!-- TMPL_VAR NAME="count" -->)</li>
451                                                                                 <!-- /TMPL_LOOP -->
452                                                                                 </ul>
453                                                                         <!-- /TMPL_IF -->
454
455                                    <!-- TMPL_IF NAME="onloan_items_loop" -->
456                                    <span class="status"><!-- TMPL_IF NAME="onloancount" --><!-- TMPL_VAR NAME="onloancount" --><!-- /TMPL_IF --> on loan:</span>
457                                     <ul>
458                                     <!-- TMPL_LOOP NAME="onloan_items_loop" -->
459                                        <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
460                                         <!-- TMPL_IF name="imageurl" -->
461                                         <li style="list-style: none; list-style-type: none;"><img src="<!-- TMPL_VAR name=imageurl -->" title="<!-- TMPL_VAR name="description" -->"/>
462                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
463                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->                                        
464
465                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
466                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
467                                         <!-- TMPL_IF NAME="itemcallnumber" -->[<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="itemcallnumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="itemcallnumber" --></a>]<!-- /TMPL_IF -->
468                                         <!-- TMPL_IF NAME="barcode" -->(<!-- TMPL_VAR NAME="barcode" -->)<!-- /TMPL_IF -->
469                                         (<!-- TMPL_VAR NAME="count" --><!-- TMPL_IF NAME="longoverdue" -->, <!-- TMPL_VAR NAME="longoverdue" --> long overdue<!-- /TMPL_IF -->) date due: <!-- TMPL_VAR NAME="due_date" --></li>
470                                     <!-- /TMPL_LOOP --></ul>
471                                     <!-- /TMPL_IF -->
472
473                                     <!-- TMPL_IF NAME="other_items_loop" -->
474                                     <span class="unavailable"><!-- TMPL_IF NAME="othercount" --><!-- TMPL_VAR NAME="othercount" --><!-- /TMPL_IF --> unavailable:</span>
475                                     <ul>
476                                     <!-- TMPL_LOOP NAME="other_items_loop" -->
477                                         <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
478                                         <!-- TMPL_IF name="imageurl" -->
479                                         <li style="list-style: none; list-style-type: none;"><img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->"/>
480                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
481                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
482
483                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
484                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
485                                         <!-- TMPL_IF NAME="itemcallnumber" -->[<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:<!-- TMPL_VAR NAME="itemcallnumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="itemcallnumber" --></a>]<!-- /TMPL_IF -->
486                                         <!-- TMPL_IF NAME="barcode" -->(<!-- TMPL_VAR NAME="barcode" -->)<!-- /TMPL_IF -->
487                                         <!-- TMPL_IF NAME="wthdrawn" -->(Withdrawn)<!-- /TMPL_IF -->
488                                         <!-- TMPL_IF NAME="itemlost" -->(Lost)<!-- /TMPL_IF -->
489                                         <!-- TMPL_IF NAME="damaged" -->(Damaged)<!-- /TMPL_IF -->
490                                         <!-- TMPL_IF NAME="intransit" -->(In transit)<!-- /TMPL_IF -->
491                                         <!-- TMPL_IF NAME="notforloan" --><!-- TMPL_VAR name="notforloan" --><!-- /TMPL_IF -->
492                                         (<!-- TMPL_VAR NAME="count" -->)</li>
493                                     <!-- /TMPL_LOOP --></ul>
494                                     <!-- /TMPL_IF -->
495                                     <!-- TMPL_ELSE -->
496                                     <span class="unavailable">No items</span>
497                                     <!-- /TMPL_IF --> <!-- /items count -->
498                                     </div></td>
499
500                             </tr>
501                         <!-- /TMPL_LOOP -->
502                 </table>
503                 </div>
504         <!-- /TMPL_IF -->
505         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
506     <!-- TMPL_ELSE -->
507     <!-- No Results Found -->
508     <!-- /TMPL_IF -->
509 <!-- TMPL_IF NAME="outer_sup_results_loop" -->
510 </div>
511 <div class="yui-u">
512 <!-- TMPL_LOOP NAME="outer_sup_results_loop" -->
513 <!-- <div class="yui-b"> -->
514     <!-- TMPL_IF NAME="inner_sup_results_loop" -->
515         <!-- TMPL_VAR NAME="servername" -->
516         <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
517         <div><a href="/cgi-bin/koha/catalogue/search.pl?<!-- TMPL_VAR NAME="query_cgi" --><!-- TMPL_VAR NAME="limit_cgi" --><!-- TMPL_VAR NAME="sort_by" --><!-- TMPL_VAR NAME="link" -->"><!-- TMPL_VAR NAME="title" --></a></div>
518         <!-- /TMPL_LOOP -->
519     <!-- /TMPL_IF -->
520 <!-- </div> -->
521 <!-- /TMPL_LOOP -->
522 </div>
523 </div>
524 <!-- /TMPL_IF -->
525
526 </div>
527 </div>
528 <div class="yui-b">
529 <!-- TMPL_INCLUDE NAME="facets.inc" -->
530 </div>
531 </div>
532 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->