3.0.x : intranet results Removing missing features
[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 <!--TMPL_IF NAME="AmazonContent"-->
8 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
9 function verify_images() {
10     $("img").each(function(i){
11         if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
12             w = this.width;
13             h = this.height;
14             if ((w == 1) || (h == 1)) {
15                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
16             } else if ((this.complete != null) && (!this.complete)) {
17                 this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
18             }
19         }
20     });
21 }
22 $(window).load(function() {
23     verify_images();
24 });
25 <!--/TMPL_IF-->
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             </div>
197         </div>
198     <!-- TMPL_IF NAME="stopwords_removed" --><div><p class="tip">Ignored the following common words: "<!-- TMPL_VAR NAME="stopwords_removed" -->"<p></div><!-- /TMPL_IF -->
199     <!-- TMPL_ELSE -->
200         <div id="searchheader">
201                         <form method="post" name="fz3950" class="fz3950bigrpad">
202                                 <span id="z3950searchc"><input type="button" id="z3950search" value="z39.50 Search" onclick="PopupZ3950(); return false;" /></span>
203                         </form>
204             <h3>No results found</h3>
205         <!-- TMPL_IF NAME="searchdesc" -->
206             <p>
207                 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 -->.
208             </p>
209         <!-- TMPL_ELSE -->
210             <p>You did not specify any search criteria.</p>
211         <!-- /TMPL_IF -->
212                 </div>
213     <!-- /TMPL_IF -->
214     
215     <!-- TMPL_IF NAME="query_error" -->
216         <br /><br />
217         Error: 
218         <span  class="problem">
219             <!-- TMPL_VAR NAME="query_error" -->
220         </span>
221     <!-- /TMPL_IF -->
222     
223     <!-- Search Results Table -->
224     <!-- TMPL_IF NAME="total" -->
225         <!-- TMPL_IF NAME="scan" -->
226             <h1>Scan Index:</h1>
227             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
228             <table>
229                 <tr>
230                     <td>
231                         Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
232                     </td>
233                 </tr>
234                 <tr>
235                     <td>
236                         <label for="scan-index">Indexed in:</label>
237                         <select name="idx" id="scan-index">
238                             <option value="">Any Word</option>
239                             <option <!-- TMPL_IF NAME="ms_any,phr" --> selected="selected" <!-- /TMPL_IF --> value="any,phr">Any Phrase</option>
240                             <option <!-- TMPL_IF NAME="ms_ti" --> selected="selected" <!-- /TMPL_IF --> value="ti">Title</option>
241                             <option <!-- TMPL_IF NAME="ms_ti,phr" --> selected="selected" <!-- /TMPL_IF --> value="ti,phr">Title Phrase</option>
242                             <option <!-- TMPL_IF NAME="ms_au,phr" --> selected="selected" <!-- /TMPL_IF --> value="au,phr">Author</option>
243                             <option <!-- TMPL_IF NAME="ms_su" --> selected="selected" <!-- /TMPL_IF --> value="su">Subject</option>
244                             <option <!-- TMPL_IF NAME="ms_su,phr" --> selected="selected" <!-- /TMPL_IF --> value="su,phr">Subject Phrase</option>
245                             <option <!-- TMPL_IF NAME="ms_se" --> selected="selected" <!-- /TMPL_IF --> value="se">Series</option>
246                             <option <!-- TMPL_IF NAME="ms_pb" --> selected="selected" <!-- /TMPL_IF --> value="pb">Publisher</option>
247                             <option <!-- TMPL_IF NAME="ms_nt" --> selected="selected" <!-- /TMPL_IF --> value="nt">Notes</option>
248                             <option <!-- TMPL_IF NAME="ms_se" --> selected="selected" <!-- /TMPL_IF --> value="se">Series Title</option>
249                             <option <!-- TMPL_IF NAME="ms_sn" --> selected="selected" <!-- /TMPL_IF --> value="sn">ISBN</option>
250                             <option <!-- TMPL_IF NAME="ms_ss" --> selected="selected" <!-- /TMPL_IF --> value="ss">ISSN</option>
251                         </select>
252                         <input type="hidden" name="scan" value="1" />
253                     </td>
254                 </tr>
255             </table>
256             </form>
257             
258             <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
259             <table>
260                 <tr>
261                     <th>Term/Phrase</th>
262                     <th>Count</th>
263                 </tr>
264                 <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
265                     <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
266                         <td>
267                             <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>
268                         </td>
269                         <td>
270                             <!-- TMPL_VAR NAME="author" -->
271                         </td>
272                     </tr>
273                 <!-- /TMPL_LOOP -->
274             </table>
275             </form>
276         <!-- TMPL_ELSE -->
277
278             <!-- ######### -->
279             <div id="facets">
280                 <dl>
281                 <!-- TMPL_IF NAME="NoZebra" -->
282                 <!-- FACETS START -->
283                 <!-- TMPL_IF NAME="opacfacets" -->
284                     <dt id="facets1" onclick="var Elt=document.getElementById('facets_list');if (Elt.style.display!='block'){Elt.style.display='block';} else {Elt.style.display='none';}">
285                     Refine your search
286                     </dt>
287                     <dd id="facets_list" style="display:none;">
288                     <ul>
289                     <!-- TMPL_LOOP NAME="facets_loop" -->
290                     <li id="<!-- TMPL_VAR NAME="type_id" -->"><!-- TMPL_VAR NAME="type_label" -->
291                         <ul>
292                         <!-- TMPL_LOOP NAME="facets" -->
293                             <li>
294                                 <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" -->">
295                                     <!-- TMPL_VAR NAME="facet_label_value" -->
296                                 </a> (<!-- TMPL_VAR NAME="facet_count" -->)
297                             </li>
298                         <!-- /TMPL_LOOP -->
299                         <!-- TMPL_IF NAME="expandable" -->
300                             <li class="showmore">
301                                 <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="searchdesc" -->&amp;expand=<!-- TMPL_VAR NAME="expand" -->#<!-- TMPL_VAR NAME="type_id" -->">
302                                     Show More
303                                 </a>
304                             </li>
305                         <!-- /TMPL_IF -->
306                         </ul>
307                     </li>
308                     <!-- /TMPL_LOOP -->
309                     </ul>
310                     </dd>
311                 <!-- /TMPL_IF -->
312                 <!-- FACETS END -->
313                 <!-- /TMPL_IF --> <!-- NoZebra -->
314                 </dl>
315             </div>
316             <!-- ######### -->
317
318             <div id="searchresults">
319                     
320                     <!-- TABLE RESULTS START -->
321
322                 <table>
323                     <tr>
324                         <!-- TMPL_IF NAME="AmazonContent" --><th>&nbsp;</th><!-- /TMPL_IF -->
325                         <th>Results</th>
326                         <th>Location</th>
327                     </tr>
328                         <!-- Actual Search Results -->
329                         <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
330                          <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
331                             <!-- TMPL_IF NAME="AmazonContent" -->
332                                 <td>
333                                     <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
334                                         <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" />
335                                     </a></td>                           
336                             <!-- /TMPL_IF -->
337                             <td>
338                                 <p><!-- TMPL_VAR NAME="result_number" -->.
339                                     <!-- TMPL_IF name="BiblioDefaultViewmarc" --> <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
340                                     <!-- TMPL_ELSIF NAME="BiblioDefaultViewlabeled_marc" --> <a class="title" href="/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
341                                     <!-- TMPL_ELSIF NAME="BiblioDefaultViewisbd" --> <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
342                                     <!-- TMPL_ELSE --> <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
343                                                                         <!--/TMPL_IF-->
344                                             <b><!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF --></b>
345                                         </a> <!-- TMPL_LOOP NAME="subtitle" --> , <!-- TMPL_VAR NAME="subfield" --> <!-- /TMPL_LOOP -->
346 <!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
347                                 </p>
348                                                             <p>
349                                                             <!-- TMPL_UNLESS NAME="item-level_itypes" -->
350                                                             <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
351                                                             <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="img" />
352                                                             <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
353                                                             <!-- /TMPL_UNLESS -->
354
355                                                                 <!-- TMPL_IF NAME="author" -->
356                                                                         <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>
357                                                                 <!-- TMPL_ELSE -->
358                                                                         &nbsp;
359                                                                 <!-- /TMPL_IF -->
360
361                                 <!-- TMPL_IF name="summary" -->
362                                     <!-- TMPL_VAR name="summary" --></p>
363                                 <!-- TMPL_ELSE -->
364                                         <!-- TMPL_IF name="publishercode" --><!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
365                                                                                 <!-- TMPL_IF NAME="edition" -->Edition: <!-- TMPL_VAR NAME="edition" --><!-- /TMPL_IF -->
366                                         Description: 
367                                         <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
368                                                                                 <!-- TMPL_IF name="publicationyear" -->, <!-- TMPL_VAR name="publicationyear" -->
369                                                                                 <!-- TMPL_ELSIF name="copyrightdate"-->, <!-- TMPL_VAR name="copyrightdate" --><!-- /TMPL_IF -->
370                                         <!-- TMPL_IF name="pages" -->: <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
371                                         <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="isbn" -->ISBN: <!-- TMPL_VAR NAME="isbn" --><!-- /TMPL_IF -->
372                                         <!-- TMPL_VAR name="description" -->
373                                         <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
374                                         <!-- 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 -->
375                                     </p>
376                                     <p class="searchhighlightblob"><!-- TMPL_VAR NAME="searchhighlightblob" --></p>
377
378                                     <!-- TMPL_IF NAME="authorised_value_images" -->
379                                 <p>
380                                   <!-- TMPL_LOOP NAME="authorised_value_images" -->
381                                   <img src="<!-- TMPL_VAR name="imageurl" -->" />
382                                   <!-- /TMPL_LOOP -->
383                                 </p>
384                                 <!-- /TMPL_IF -->
385                             <!-- /TMPL_IF -->
386                                   <!-- TMPL_IF NAME="norequests" -->
387                                         No holds allowed
388                                     <!-- TMPL_ELSE -->
389                                         <a class="reserve" href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a>
390                                     <!-- /TMPL_IF -->
391                                 </td>
392
393                                 <td><div class="availability">
394                                     <!-- TMPL_IF NAME="items_count" --><div><!-- TMPL_VAR NAME="items_count" -->
395                                     <!-- TMPL_IF NAME="itemsplural" -->items<!-- TMPL_ELSE -->item<!-- /TMPL_IF --></div>
396
397                                     <!-- TMPL_IF NAME="available_items_loop" -->
398                                     <!-- TMPL_IF NAME="availablecount" --><!-- TMPL_VAR NAME="availablecount" --><!-- /TMPL_IF --> available:
399                                     <ul>
400                                     <!-- TMPL_LOOP NAME="available_items_loop" -->
401                                         
402                                         <!-- 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 -->
403                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
404                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
405                                         <!-- 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 -->
406                                         <!-- TMPL_IF NAME="barcode" -->(<!-- TMPL_VAR NAME="barcode" -->)<!-- /TMPL_IF -->
407                                         (<!-- TMPL_VAR NAME="count" -->)</li>
408                                     <!-- /TMPL_LOOP --></ul>
409                                     <!-- TMPL_ELSE -->
410                                     <span class="unavailable">No items available</span>
411                                     <!-- /TMPL_IF -->
412
413                                                                         <!-- TMPL_IF NAME="notforloan_items_loop" -->
414                                                                                 <!-- TMPL_IF name="notforloancount" -->
415                                                                                         <!-- TMPL_VAR name="notforloancount" --> not for loan:
416                                                                                 <!-- /TMPL_IF -->
417                                                                                 <ul>
418                                                                                 <!-- TMPL_LOOP NAME="notforloan_items_loop" -->
419                                                                                         <!-- 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 -->
420                                                 <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
421                                                 <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
422                                                 <!-- 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 -->
423                                                 <!-- TMPL_IF NAME="barcode" -->(<!-- TMPL_VAR NAME="barcode" -->)<!-- /TMPL_IF -->
424                                                 (<!-- TMPL_VAR NAME="count" -->)</li>
425                                                                                 <!-- /TMPL_LOOP -->
426                                                                                 </ul>
427                                                                         <!-- /TMPL_IF -->
428
429                                    <!-- TMPL_IF NAME="onloan_items_loop" -->
430                                    <span class="status"><!-- TMPL_IF NAME="onloancount" --><!-- TMPL_VAR NAME="onloancount" --><!-- /TMPL_IF --> on loan:</span>
431                                     <ul>
432                                     <!-- TMPL_LOOP NAME="onloan_items_loop" -->
433                                        <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
434                                         <!-- TMPL_IF name="imageurl" -->
435                                         <li style="list-style: none; list-style-type: none;"><img src="<!-- TMPL_VAR name=imageurl -->" title="<!-- TMPL_VAR name="description" -->"/>
436                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
437                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->                                        
438
439                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
440                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
441                                         <!-- 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 -->
442                                         <!-- TMPL_IF NAME="barcode" -->(<!-- TMPL_VAR NAME="barcode" -->)<!-- /TMPL_IF -->
443                                         (<!-- TMPL_VAR NAME="count" --><!-- TMPL_IF NAME="longoverdue" -->, <!-- TMPL_VAR NAME="longoverdue" --> long overdue<!-- /TMPL_IF -->)
444                                         <!-- TMPL_IF NAME="date_due" --> 
445                                                 date due: <!-- TMPL_VAR NAME="due_date" -->
446                                         <!-- TMPL_ELSIF NAME="reserved" -->
447                                                 On Hold
448                                         <!-- /TMPL_IF -->
449                                         </li>
450                                                 
451                                     <!-- /TMPL_LOOP --></ul>
452                                     <!-- /TMPL_IF -->
453
454                                     <!-- TMPL_IF NAME="other_items_loop" -->
455                                     <span class="unavailable"><!-- TMPL_IF NAME="othercount" --><!-- TMPL_VAR NAME="othercount" --><!-- /TMPL_IF --> unavailable:</span>
456                                     <ul>
457                                     <!-- TMPL_LOOP NAME="other_items_loop" -->
458                                         <!-- TMPL_IF NAME="noItemTypeImages" --><li><!-- TMPL_ELSE --><!-- TMPL_IF NAME="item-level_itypes" -->
459                                         <!-- TMPL_IF name="imageurl" -->
460                                         <li style="list-style: none; list-style-type: none;"><img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->"/>
461                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
462                                         <!-- TMPL_ELSE --><li><!-- /TMPL_IF --><!-- /TMPL_IF -->
463
464                                         <!-- TMPL_IF NAME="branchname" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_IF -->
465                                         <!-- TMPL_IF NAME="location" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_IF -->
466                                         <!-- 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 -->
467                                         <!-- TMPL_IF NAME="barcode" -->(<!-- TMPL_VAR NAME="barcode" -->)<!-- /TMPL_IF -->
468                                         <!-- TMPL_IF NAME="wthdrawn" -->(Withdrawn)<!-- /TMPL_IF -->
469                                         <!-- TMPL_IF NAME="itemlost" -->(Lost)<!-- /TMPL_IF -->
470                                         <!-- TMPL_IF NAME="damaged" -->(Damaged)<!-- /TMPL_IF -->
471                                         <!-- TMPL_IF NAME="intransit" -->(In transit)<!-- /TMPL_IF -->
472                                         <!-- TMPL_IF NAME="notforloan" --><!-- TMPL_VAR name="notforloan" --><!-- /TMPL_IF -->
473                                         (<!-- TMPL_VAR NAME="count" -->)</li>
474                                     <!-- /TMPL_LOOP --></ul>
475                                     <!-- /TMPL_IF -->
476                                     <!-- TMPL_ELSE -->
477                                     <span class="unavailable">No items</span>
478                                     <!-- /TMPL_IF --> <!-- /items count -->
479                                     </div></td>
480
481                             </tr>
482                         <!-- /TMPL_LOOP -->
483                 </table>
484                 </div>
485         <!-- /TMPL_IF -->
486         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
487     <!-- TMPL_ELSE -->
488     <!-- No Results Found -->
489     <!-- /TMPL_IF -->
490 <!-- TMPL_IF NAME="outer_sup_results_loop" -->
491 </div>
492 <div class="yui-u">
493 <!-- TMPL_LOOP NAME="outer_sup_results_loop" -->
494 <!-- <div class="yui-b"> -->
495     <!-- TMPL_IF NAME="inner_sup_results_loop" -->
496         <!-- TMPL_VAR NAME="servername" -->
497         <!-- TMPL_LOOP NAME="inner_sup_results_loop" -->
498         <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>
499         <!-- /TMPL_LOOP -->
500     <!-- /TMPL_IF -->
501 <!-- </div> -->
502 <!-- /TMPL_LOOP -->
503 </div>
504 </div>
505 <!-- /TMPL_IF -->
506
507 </div>
508 </div>
509 <div class="yui-b">
510 <!-- TMPL_INCLUDE NAME="facets.inc" -->
511 </div>
512 </div>
513 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->