MT 1587 : CSV export for cart and shelves, with the ability to define different expor...
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-results.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; 
3 <!-- TMPL_IF NAME="searchdesc" -->
4         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 --> 
5 <!-- TMPL_ELSE -->
6     You did not specify any search criteria.
7 <!-- /TMPL_IF -->
8 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
9 <link rel="alternate" type="application/rss+xml" title="<!-- TMPL_VAR NAME="LibraryName" --> Search RSS Feed" href="<!-- TMPL_VAR NAME="OPACBaseURL" -->/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR name="query_cgi" ESCAPE="HTML" --><!-- TMPL_VAR NAME="limit_cgi"  ESCAPE="HTML" -->&amp;format=rss2" />
10
11
12 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
13 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.highlight-3.js"></script>
14 <script type="text/javascript">
15 //<![CDATA[
16
17 function holdMultiple() {
18     var checkedBiblioNums = ""; // Separated by "/"
19     var checkedCount = 0;
20     if(document.bookbag_form.biblionumber.length > 0) {
21         for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
22             if (document.bookbag_form.biblionumber[i].checked) {
23                 checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/");
24                 checkedCount++;
25             }
26         }
27     }
28
29     if (checkedCount > 0) {
30         holdBiblioNums(checkedBiblioNums);
31     } else {
32         alert(MSG_NO_RECORD_SELECTED);   
33     }
34 }
35
36 function holdBiblioNums(numList) {
37     // numList: biblio numbers separated by "/"
38     $("#hold_form_biblios").attr("value", numList);
39     $("#hold_form").submit();
40 }
41
42
43 function tagSelected() {
44     var checkedBoxes = $(".searchresults :checkbox:checked");
45     if ($(checkedBoxes).size() == 0) {
46         alert(MSG_NO_RECORD_SELECTED);
47     } else {
48         $("#tagsel_tag").hide();
49         $("#sort_by").hide();
50         $("#tagsel_form").show();
51     }
52 }
53
54 function tagCanceled() {
55     $("#tagsel_form").hide();
56     $("#tagsel_tag").show();
57     $("#sort_by").show();
58 }
59
60 function tagAdded() {
61     var checkedBoxes = $(".searchresults :checkbox:checked");
62     if ($(checkedBoxes).size() == 0) {
63         alert(MSG_NO_RECORD_SELECTED);
64         return false;
65     }
66
67     var tag = $("#tagsel_new").val();
68     if (!tag || (tag == "")) {
69         return false;
70     }
71
72     var bibs = [];
73     for (var i = 0; i < $(checkedBoxes).size(); i++) {
74         var box = $(checkedBoxes).get(i);
75         bibs[i] = $(box).val();
76     }
77
78     KOHA.Tags.add_multitags_button(bibs, tag);
79     return false;
80 }
81
82 var q_array = new Array();  // holds search terms if available
83
84 function highlightOff() {
85     $("td").removeHighlight();
86     $(".highlight_toggle").toggle();
87 }
88 function highlightOn() {
89     var x;
90     for (x in q_array) {
91         $(".title").highlight(q_array[x]);
92         $(".author").highlight(q_array[x]);
93         $(".result_summary").highlight(q_array[x]);
94     }
95     $(".highlight_toggle").toggle();
96 }
97
98 $(document).ready(function(){
99         $(".addtocart").show();
100         var param1 = "<label for=\"addto\">"+_("Add to: ")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>";
101         <!-- TMPL_IF name="opacbookbag" -->     param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
102         <!-- /TMPL_IF --><!-- TMPL_IF NAME="virtualshelves" --><!-- TMPL_IF NAME="loggedinusername" --><!-- TMPL_IF NAME="addbarshelves" -->
103         param1 += "<optgroup label=\""+_("Your Lists:")+"\">";<!-- TMPL_LOOP NAME="addbarshelvesloop" -->
104         param1 += "<option id=\"s<!-- TMPL_VAR NAME="shelfnumber" -->\" value=\"addtolist\"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"--><\/option>";<!-- /TMPL_LOOP -->
105         param1 += "<\/optgroup>";<!-- /TMPL_IF -->
106         <!-- TMPL_IF NAME="addpubshelves" -->param1 += "<optgroup label=\""+_("Public Lists:")+"\">"<!-- TMPL_LOOP NAME="addpubshelvesloop" -->+"<option id=\"s<!-- TMPL_VAR NAME="shelfnumber" -->\" value=\"addtolist\"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"--><\/option>"<!-- /TMPL_LOOP --><!-- /TMPL_IF -->
107         param1 +="<\/optgroup><option value=\"newlist\">[ "+_("New List")+" ]<\/option>"
108         <!-- /TMPL_IF -->
109         <!-- /TMPL_IF -->
110         param1 += "<\/select> <input type=\"submit\" class=\"submit\" value=\""+_("Save")+"\" />";
111         $('#sortsubmit').hide();
112     $('#sort_by').change(function() {
113         $('#bookbag_form').submit();
114     });
115         $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear All")+"<\/a>");
116         $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select All")+"<\/a>");
117         $("span.addto").html(param1);
118         $("#addto").change(function(){
119                 cartList();
120         });
121         $(".addto").find("input:submit").click(function(){
122                 cartList();
123                 return false;
124         });
125
126     $("#tagsel_span").html("<input id=\"tagsel_tag\" class=\"submit\" type=\"submit\" value=\"Tag\"/>");
127     
128         function cartList(){
129                         if($("#addto").find("option:selected").attr("value") == "addtolist"){
130                         var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
131                         if (vShelfAdd()) {
132                         Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
133                         }
134                         return false;                   
135                 } else if($("#addto").find("option:selected").attr("value") == "newlist"){
136                         <!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
137                         Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
138                         }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
139                         return false;   
140                 }
141                 if($("#addto").find("option:selected").attr("value") == "addtocart"){
142                         addMultiple();
143                         return false;
144                  }
145         }
146     $("#CheckAll").click(function(){
147         $("#bookbag_form").checkCheckboxes();
148         return false;
149     });
150     $("#CheckNone").click(function(){
151         $("#bookbag_form").unCheckCheckboxes();
152         return false;
153     });
154 <!-- TMPL_IF NAME="RequestOnOpac" -->
155   <!-- TMPL_IF NAME="opacuserlogin" -->
156     $("#placehold").html("<input class=\"submit\" type=\"submit\" value=\""+_("Place Hold")+"\"/>");
157         $("#placehold").find("input:submit").click(function(){
158         holdMultiple();
159                 return false;
160         });
161   <!-- /TMPL_IF -->
162 <!-- /TMPL_IF -->
163     $("#holdDetails").hide();
164
165     <!-- TMPL_IF NAME="query_desc" -->
166         var query_desc = "<!-- TMPL_VAR NAME="query_desc" ESCAPE="JS"-->";
167         q_array = query_desc.split(" ");
168         highlightOn();
169         $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
170         $("#highlight_toggle_off").show().click(function() {highlightOff();});
171     <!-- /TMPL_IF -->
172
173         <!-- TMPL_IF NAME="TagsEnabled" -->
174         $(".tagbutton").click(KOHA.Tags.add_tag_button);
175             <!-- TMPL_IF NAME="TagsInputOnList" -->
176             <!-- TMPL_IF NAME="loggedinusername" -->
177             $("#tagsel_tag").click(function(){
178                 tagSelected();
179                 return false;
180             });
181             $("#tagsel_cancel").click(function(){
182                 tagCanceled();
183                 return false;
184             });
185             $("#tagsel_button").click(function(){
186                 tagAdded();
187                 return false;
188             });
189         <!-- TMPL_ELSE -->
190             $("#tagsel_tag").click(function(){
191                 window.location = "/cgi-bin/koha/opac-user.pl";
192                 return false;
193             });
194         <!-- /TMPL_IF -->
195         <!-- /TMPL_IF -->
196     <!-- /TMPL_IF -->
197     <!-- TMPL_IF NAME="GoogleJackets" -->KOHA.Google.GetCoverFromIsbn();<!-- /TMPL_IF -->
198 });
199 //]]>
200 </script>
201 </head>
202 <body id="results">
203         <!-- TMPL_IF NAME="opacfacets" --><div id="doc3" class="yui-t1"><!-- TMPL_ELSE --><div id="doc3" class="yui-t7"><!-- /TMPL_IF -->
204    <div id="bd">
205
206 <!--TMPL_INCLUDE NAME="masthead.inc" -->
207
208
209         <div id="yui-main">
210         <div class="yui-b">
211         <div class="container">
212   <!-- TMPL_IF NAME="koha_spsuggest" -->
213         Did you mean:
214     <ul style="list-style: none;">
215         <!-- TMPL_LOOP NAME="SPELL_SUGGEST" -->
216         <li>
217             <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="spsuggestion" -->"><!-- TMPL_VAR NAME="spsuggestion" --></a>
218         </li>
219         <!-- /TMPL_LOOP -->
220     </ul>
221 <!-- /TMPL_IF -->
222
223 <!-- TMPL_IF NAME="query_error" -->
224 <div class="dialog alert">
225         <h4>Error:</h4>
226     <!-- TMPL_VAR NAME="query_error" -->
227 </div>
228 <!-- /TMPL_IF -->       
229         
230 <!-- Search Results Table -->
231 <!-- TMPL_IF NAME="total" -->
232 <!-- TMPL_IF NAME="scan" -->
233     <h1>Scan Index:</h1>
234     <form action="/cgi-bin/koha/opac-search.pl" method="get">
235         <table>
236             <tr>
237                 <td>
238                     Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
239                 </td>
240             </tr>
241             <tr>
242                 <td>
243                     <label for="scan-index">Indexed in:</label>
244                     <select name="idx" id="scan-index">
245                         <option value="">Any Word</option>
246                         <option value="kw,phr:">Any Phrase</option>
247                         <option value="ti:">Title</option>
248                         <option value="ti,phr:">Title Phrase</option>
249                         <option value="au,phr:">Author</option>
250                         <option value="su:">Subject</option>
251                         <option value="su,phr:">Subject Phrase</option>
252                         <option value="se:">Series</option>
253                         <option value="pb:">Publisher</option>
254                         <option value="nt:">Notes</option>
255                         <option value="se:">Series Title</option>
256                         <option value="sn:">ISBN</option>
257                         <option value="ss:">ISSN</option>
258                     </select>
259                     <input type="hidden" name="scan" value="1" />
260                 </td>
261             </tr>
262         </table>
263     </form>
264     
265     <form action="/cgi-bin/koha/opac-search.pl" method="get">
266         <table>
267             <tr>
268                 <th>Term/Phrase</th>
269                 <th>Count</th>
270             </tr>
271             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
272                         <!-- TMPL_IF name="even" -->
273             <tr class="highlight">
274                         <!-- TMPL_ELSE -->
275                         <tr>
276                         <!-- /TMPL_IF -->
277                 <td>
278                     <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="scan_use" escape="url" -->&quot;<!-- TMPL_VAR NAME="title"  ESCAPE="URL" -->&quot;"><!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF --></a>
279                 </td>
280                 <td>
281                     <!-- TMPL_VAR NAME="author" -->
282                 </td>
283             </tr>
284             <!-- /TMPL_LOOP -->
285         </table>
286     </form>
287 <!-- TMPL_ELSE -->
288
289     <div class="searchresults">
290         <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form">
291                 <!-- TMPL_IF NAME="searchdesc" -->
292                 <!-- TMPL_LOOP NAME="QUERY_INPUTS"-->
293                 <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
294                 <!-- /TMPL_LOOP -->
295                 <!-- TMPL_LOOP NAME="LIMIT_INPUTS"-->
296                 <input type="hidden" name="<!-- TMPL_VAR NAME="input_name" -->" value="<!-- TMPL_VAR NAME="input_value" -->"/>
297                 <!-- /TMPL_LOOP -->
298                 <!-- /TMPL_IF -->
299
300         <!-- TABLE RESULTS START -->
301         <table>
302                 <tr><td colspan="5" class="resultscontrol" style="border : 1px solid #e8e8e8;">
303                 <div class="resort"> <select id="sort_by" name="sort_by"> <!--TMPL_INCLUDE NAME="resort_form.inc"--> </select> <input type="submit" class="submit clearfix" id="sortsubmit" value="Go" /></div>
304                 <div class="cartlist">
305             <!-- checkall, clearall are now needed for placehold -->
306             <span class="checkall"></span>
307                 <span class="clearall"></span>
308             <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
309             <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
310             <!-- TMPL_IF EXPR="opacbookbag || virtualshelves" -->
311                 <span class="addto"></span>
312             <!-- /TMPL_IF -->
313                     <span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span>
314             <div id="holdDetails"></div>
315
316                         <!-- TMPL_IF NAME="TagsEnabled" -->
317             <!-- TMPL_IF NAME="TagsInputOnList" -->
318                 <span id="tagsel_span"></span>
319               <!-- TMPL_IF NAME="loggedinusername" -->
320                 <span id="tagsel_form" style="display:none">
321                   <label for="tagsel_new">New Tag:</label>
322                   <input name="tagsel_new" id="tagsel_new" maxlength="100" />
323                   <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button" type="submit" value="Add" />
324                   <a href="#" id="tagsel_cancel">Cancel</a>
325                 </span>
326                 <span id="tagsel_status" class="tagsel_tatus" style="display:none;">
327                   Tag status here.
328                 </span>
329               <!-- /TMPL_IF -->
330             <!-- /TMPL_IF -->
331             <!-- /TMPL_IF -->
332         </div>
333
334         </td></tr>
335             <!-- Actual Search Results -->
336             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
337             <!-- TMPL_UNLESS name="__odd__" -->
338                 <tr class="highlight">
339             <!-- TMPL_ELSE -->
340                 <tr>
341             <!-- /TMPL_UNLESS -->
342
343                 <td class="select selectcol"><!--TMPL_IF EXPR="opacbookbag || virtualshelves" --><input type="checkbox" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to cart" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"></label><!-- /TMPL_IF --></td>
344                 <td class="select selectcol"><!-- TMPL_VAR NAME="result_number" -->.</td>
345
346                                 <!-- TMPL_UNLESS NAME="item-level_itypes" -->
347                                 <td class="itypecol">
348                 <!-- TMPL_IF name="imageurl" -->
349                                 <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR name="description" -->" />
350                 <!-- /TMPL_IF -->
351                                 </td>
352                 <!-- /TMPL_UNLESS-->
353
354                                 <!-- TMPL_IF NAME="AuthorisedValueImages" -->
355                 <td class="itypecol">
356                 <!-- TMPL_LOOP NAME="authorised_value_images" -->
357                 <img src="<!-- TMPL_VAR name="imageurl" -->" alt="<!-- TMPL_VAR name="label" -->" title="<!-- TMPL_VAR name="label" -->">
358                 <!-- /TMPL_LOOP -->
359                 </td>
360                 <!-- /TMPL_IF -->
361
362                                 <td>
363                 <!-- TMPL_IF NAME="coins" -->
364                     <!-- COinS / OpenURL --><span class="Z3988" title="<!-- TMPL_VAR NAME="coins" -->"></span>
365                 <!-- /TMPL_IF -->
366
367                                 <!-- TMPL_IF NAME="XSLTResultsDisplay" -->
368                 <!-- TMPL_VAR NAME="XSLTResultsRecord" -->
369                                 <!-- TMPL_ELSE -->
370                                 <!-- TMPL_IF name="BiblioDefaultViewmarc" --><a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->" title="View details for this title">
371                                 <!-- TMPL_ELSE -->
372                                 <!-- TMPL_IF name="BiblioDefaultViewisbd" --><a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->" title="View details for this title">
373                                 <!-- TMPL_ELSE --><a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->" title="View details for this title">
374                                 <!-- /TMPL_IF -->
375                                 <!-- /TMPL_IF -->
376                                                                 <!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF --> <!-- TMPL_LOOP NAME="subtitle"  --><!--TMPL_VAR Name="subfield"--><!--/TMPL_LOOP--></a>
377                                 <!-- TMPL_IF NAME="author" -->by <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->" title="Search for works by this author" class="author"><!-- TMPL_VAR NAME="author" --></a>
378                                 <!-- TMPL_ELSE -->&nbsp;
379                                 <!-- /TMPL_IF -->
380                                 <span class="results_summary"><span class="label">Publication:</span>
381                         <!-- TMPL_IF name="place" --><!-- TMPL_VAR name="place" --> <!-- /TMPL_IF --><!-- TMPL_IF name="publishercode" --><!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF --><!-- TMPL_IF name="publicationyear" --> <!-- TMPL_VAR name="publicationyear" -->
382                     <!-- TMPL_ELSE --><!-- TMPL_IF name="copyrightdate" --> <!-- TMPL_VAR name="copyrightdate" --><!-- /TMPL_IF --><!-- /TMPL_IF -->
383                         <!-- TMPL_IF name="pages" -->. <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
384                         <!-- TMPL_IF name="notes" -->, <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
385                         <!-- TMPL_IF name="size" --> <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
386                         <!-- TMPL_IF name="timestamp" --> <i>(modified on <!-- TMPL_VAR name="timestamp" -->)</i><!-- /TMPL_IF -->
387                 </span>
388                 <!-- TMPL_IF NAME="summary" -->
389                 <span class="result_summary">
390                         <!-- TMPL_VAR name="summary" -->
391                 </span>
392                 <!-- /TMPL_IF -->
393                 <!-- TMPL_IF NAME="copyrightdate" --><span class="results_summary"><span class="label">Date:</span><!-- TMPL_VAR NAME="copyrightdate" --></span><!-- /TMPL_IF -->
394
395                                 <span class="results_summary">
396                 <span class="label">Availability:</span>
397                     <!-- TMPL_IF NAME="available_items_loop" -->
398                     <span class="available"><strong>Copies available:</strong>
399                     <!-- TMPL_LOOP NAME="available_items_loop" -->
400
401                     <!-- TMPL_IF NAME="singleBranchMode" -->
402                         <!-- TMPL_VAR NAME="location" -->
403                     <!-- TMPL_ELSE -->
404                         <!-- TMPL_VAR NAME="branchname" -->
405                     <!-- /TMPL_IF -->
406
407                     <!-- TMPL_IF name="OPACItemsResultsDisplay" -->
408                                             <!-- TMPL_UNLESS NAME="singleBranchMode" --><!-- TMPL_VAR NAME="location" --><!-- /TMPL_UNLESS -->
409                         <!-- TMPL_IF NAME="itemcallnumber" -->[<a href="/cgi-bin/koha/opac-search.pl?q=callnum:<!-- TMPL_VAR NAME="itemcallnumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="itemcallnumber" --></a>]<!-- /TMPL_IF -->
410                     <!-- /TMPL_IF -->
411                     (<!-- TMPL_VAR NAME="count" -->),
412                     <!-- /TMPL_LOOP -->
413                     </span>
414                     <!-- TMPL_ELSE -->
415                     <span class="unavailable">No items available:</span>
416                     <!-- /TMPL_IF -->
417                     <span class="unavailable">
418                     <!-- TMPL_IF NAME="onloancount" --> Checked out (<!-- TMPL_VAR NAME="onloancount" -->), <!-- /TMPL_IF -->
419                     <!-- TMPL_IF NAME="wthdrawncount" --> Withdrawn (<!-- TMPL_VAR NAME="wthdrawncount" -->), <!-- /TMPL_IF -->
420                     <!-- TMPL_UNLESS NAME="hidelostitems" --><!-- TMPL_IF NAME="itemlostcount" --> Lost (<!-- TMPL_VAR NAME="itemlostcount" -->),<!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
421                     <!-- TMPL_IF NAME="damagedcount" --> Damaged (<!-- TMPL_VAR NAME="damagedcount" -->),<!-- /TMPL_IF -->
422                     <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->),<!-- /TMPL_IF -->
423                     <!-- TMPL_IF NAME="intransitcount" --> In transit (<!-- TMPL_VAR NAME="intransitcount" -->),<!-- /TMPL_IF -->
424                     </span>
425                 </span>
426
427                                 <!-- /TMPL_IF -->
428                                 <!-- TMPL_IF NAME="LibraryThingForLibrariesID" --><div class="ltfl_reviews"></div><!-- /TMPL_IF --> 
429                                 <!-- TMPL_IF NAME="TagsEnabled" -->
430                 <!-- TMPL_IF NAME="TagsShowOnList" -->
431                 <!-- TMPL_IF NAME="TagLoop" -->
432                                         <div class="results_summary">
433                         <span class="label">Tags:</span>
434                         <ul style="display: inline; list-style: none;"><!-- TMPL_LOOP NAME="TagLoop" --><li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->&amp;q=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="term" --></a> <span class="weight">(<!-- TMPL_VAR NAME="weight_total" -->)</span></li>
435                             <!-- /TMPL_LOOP -->
436                         </ul>
437                 <!-- /TMPL_IF -->
438                 <!-- TMPL_IF NAME="TagsInputOnList" -->
439                                         <!-- TMPL_IF NAME="loggedinusername" -->
440                     <form name="tagform<!-- TMPL_VAR NAME="biblionumber" -->" method="post" action="/cgi-bin/koha/opac-tags.pl">
441                         <label for="newtag<!-- TMPL_VAR NAME="biblionumber" -->">New tag:</label>
442                         <input name="newtag<!-- TMPL_VAR NAME="biblionumber" -->" id="newtag<!-- TMPL_VAR NAME="biblionumber" -->" maxlength="100" />
443                         <input name="tagbutton" class="tagbutton" title="<!-- TMPL_VAR NAME="biblionumber" -->" type="submit" value="Add" />
444                     </form>
445                     <span id="newtag<!-- TMPL_VAR NAME="biblionumber" -->_status" class="tagstatus" style="display:none;">
446                         Tag status here.
447                     </span>
448                         <!-- TMPL_ELSIF NAME="__first__" --><span class="tagstatus" id="login4tags">Log in to add tags.</span>
449                         <!-- /TMPL_IF -->
450                 <!-- /TMPL_IF -->
451                         <!-- TMPL_IF NAME="TagLoop" -->
452                                         </div><!-- /TMPL_IF -->
453                                 <!-- /TMPL_IF -->
454                 <!-- /TMPL_IF -->
455                                 <!-- TMPL_IF Name="searchhighlightblob" --><span class="results_summary"><span class="label">Match:</span> <!-- TMPL_VAR NAME="searchhighlightblob" --></span><!-- /TMPL_IF -->
456
457 <span class="results_summary actions"><span class="label">Actions:</span>
458                                 <!-- TMPL_IF name="RequestOnOpac" -->
459                                         <!-- TMPL_UNLESS NAME="norequests" -->
460                                                 <!-- TMPL_IF NAME="opacuserlogin" -->
461                                                         <!-- TMPL_IF NAME="AllowOnShelfHolds" -->
462                                                                 <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Place Hold</a><!-- add back when available 0 holds in queue-->
463                                                         <!-- TMPL_ELSE -->
464                                                                 <!-- TMPL_IF NAME="itemsissued" -->
465                                                                         <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Place Hold</a><!-- add back when available 0 holds in queue-->
466                                                                 <!-- /TMPL_IF -->
467                                                         <!-- /TMPL_IF -->
468                                                 <!-- /TMPL_IF -->
469                                         <!-- /TMPL_UNLESS -->
470                                 <!-- /TMPL_IF -->
471
472
473                                 <!-- TMPL_IF NAME="opacuserlogin" --><!-- TMPL_IF NAME="loggedinusername" --><!-- TMPL_IF NAME="virtualshelves" --><a class="addtolist" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">Save to Lists</a>
474                         <!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->
475                         <!-- TMPL_IF NAME="opacbookbag" --><a class="addtocart" href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">Add to Cart</a><!-- /TMPL_IF -->
476                                 </span>
477                                 </td><td>
478                                         <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
479                     <!-- TMPL_IF NAME="OPACAmazonEnabled" --><!-- TMPL_IF NAME="OPACAmazonCoverImages" --><!-- TMPL_IF NAME="normalized_isbn" --><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="normalized_isbn" -->.01.TZZZZZZZ.jpg" alt="" class="thumbnail" /><!-- TMPL_ELSE --><span class="no-image">No cover image available</span><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->
480
481                                         <!-- TMPL_IF NAME="SyndeticsEnabled" --><!-- TMPL_IF NAME="SyndeticsCoverImages" --><!-- TMPL_IF NAME="content_identifier_exists" --><img src="http://www.syndetics.com/index.aspx?isbn=<!-- TMPL_VAR NAME="normalized_isbn" -->/SC.GIF&amp;client=<!-- TMPL_VAR NAME="SyndeticsClientCode" -->&amp;type=xw10<!-- TMPL_IF NAME="normalized_upc" -->&amp;upc=<!-- TMPL_VAR NAME="normalized_upc" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="normalized_oclc" -->&amp;oclc=<!-- TMPL_VAR NAME="normalized_oclc" --><!-- /TMPL_IF -->" alt="" class="thumbnail" /><!-- TMPL_ELSE --><span class="no-image">No cover image available</span><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->
482                     <!-- TMPL_IF NAME="GoogleJackets" --><!-- TMPL_IF NAME="normalized_isbn" --><div style="block" title="<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->" class="<!-- TMPL_VAR name="normalized_isbn" -->" id="gbs-thumbnail<!--TMPL_VAR NAME="__counter__"-->"></div><!-- TMPL_ELSE --><span class="no-image">No cover image available</span><!-- /TMPL_IF --><!-- /TMPL_IF -->
483                     </a>
484                     <!-- TMPL_IF NAME="BakerTaylorEnabled" --><!-- TMPL_IF NAME="normalized_isbn" --><a href="https://<!-- TMPL_VAR name="BakerTaylorBookstoreURL" ESCAPE="HTML" --><!-- TMPL_VAR name="normalized_isbn" -->"><img alt="See Baker &amp; Taylor" src="<!-- TMPL_VAR name="BakerTaylorImageURL" ESCAPE="HTML" --><!-- TMPL_VAR name="normalized_isbn" -->" /></a><!-- TMPL_ELSE --><span class="no-image">No cover image available</span><!-- /TMPL_IF --><!-- /TMPL_IF -->
485                                 </td>
486                 </tr>
487                 <!-- /TMPL_LOOP -->
488             </table>
489     </form>
490     <form id="hold_form" name="hold_form" method="get" action="/cgi-bin/koha/opac-reserve.pl">
491         <!-- The value will be set by holdBiblioNums() in basket.js -->
492         <input id="hold_form_biblios" type="hidden" name="biblionumbers" value=""/>
493     </form>
494         </div>
495     <!-- /TMPL_IF -->
496         <!-- TMPL_INCLUDE NAME="page-numbers.inc" -->
497
498     <!-- TMPL_ELSE -->
499     <!-- /TMPL_IF -->
500
501         <!-- TMPL_IF name="suggestion" -->
502 <!-- TMPL_IF NAME="AnonSuggestions" --><div class="suggestion">Not finding what you're looking for?<br />  Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></div><!-- TMPL_ELSE --><!-- TMPL_IF NAME="loggedinusername" --><div class="suggestion">Not finding what you're looking for?<br />  Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></div><!-- /TMPL_IF --><!-- /TMPL_IF -->
503 <!-- /TMPL_IF -->
504 </div>    
505 </div>
506 </div>
507         <!-- TMPL_IF NAME="opacfacets" -->
508 <div class="yui-b"><div class="container">
509         <!-- FACETS START -->
510                 <!-- TMPL_INCLUDE NAME="opac-facets.inc" -->
511         <!-- FACETS END -->
512 </div></div>
513         <!-- /TMPL_IF -->
514 </div>
515
516 <!-- TMPL_IF NAME="LibraryThingForLibrariesID" --> 
517 <script src="http://ltfl.librarything.com/forlibraries/widget.js?id=<!--TMPL_VAR NAME="LibraryThingForLibrariesID" -->&systype=koha" type="text/javascript"></script> 
518 <!-- /TMPL_IF --> 
519 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->