2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog ›
4 [% IF ( searchdesc ) %]
5 Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]
7 You did not specify any search criteria.
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %][% END %]
11 <link rel="alternate" type="application/rss+xml" title="Koha - RSS"
12 href="/cgi-bin/koha/opac-rss.pl?[% query_cgi %][% limit_cgi |html %]" />
15 [% INCLUDE 'bodytag.inc' bodyid='results-grouped' %]
16 [% INCLUDE 'masthead.inc' %]
19 <ul class="breadcrumb">
20 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
22 [% IF ( searchdesc ) %]
23 <a href="#">Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]</a>
25 <a href="#">You did not specify any search criteria.</a>
30 [% IF ( query_error ) %]
31 <div class="container-fluid">
32 <div class="row-fluid">
36 <p>[% query_error %]</p>
38 </div> <!-- / .span12 -->
39 </div> <!-- / .row-fluid -->
40 </div> <!-- / .container-fluid -->
43 <div class="container-fluid">
44 <div class="row-fluid">
45 [% IF ( opacfacets && total ) %]
47 <div id="facetcontainer">
49 [% INCLUDE 'opac-facets.inc' %]
57 <div id="grouped-results">
58 <!-- Search Results Table -->
62 <form action="/cgi-bin/koha/opac-search.pl" method="get">
67 Scan index for: <input type="text" name="q" id="scan-index" size="35" value="" />
72 <label for="scan-index">Indexed in:</label>
73 <select name="idx" id="scan-index">
74 <option value="">Any word</option>
75 <option value="kw,phr:">Any phrase</option>
76 <option value="ti:">Title</option>
77 <option value="ti,phr:">Title phrase</option>
78 <option value="au,phr:">Author</option>
79 <option value="su:">Subject</option>
80 <option value="su,phr:">Subject phrase</option>
81 <option value="se:">Series</option>
82 <option value="pb:">Publisher</option>
83 <option value="nt:">Notes</option>
84 <option value="se:">Series Title</option>
85 <option value="sn:">ISBN</option>
86 <option value="ss:">ISSN</option>
88 <input type="hidden" name="scan" value="1" />
95 <form action="/cgi-bin/koha/opac-search.pl" method="get">
104 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
107 <a href="/cgi-bin/koha/opac-search.pl?q=[% SEARCH_RESULT.scan_use |url %]"[% SEARCH_RESULT.title |url %]"">[% SEARCH_RESULT.title |html %]</a>
110 [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
111 [% subtitl.subfield %]
121 <div class="searchresults">
122 <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form">
123 [% IF ( searchdesc ) %]
124 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
125 <input type="hidden" name="[% QUERY_INPUT.input_name |html %]" value="[% QUERY_INPUT.input_value |html %]"/>
127 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
128 <input type="hidden" name="[% LIMIT_INPUT.input_name |html %]" value="[% LIMIT_INPUT.input_value |html %]"/>
132 <!-- TABLE RESULTS START -->
133 <table class="table table-striped">
135 <td colspan="3" class="resultscontrol">
137 <select id="sort_by" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select>
138 <input type="submit" class="submit clearfix" id="sortsubmit" value="Go" />
140 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
141 <div class="cartlist"><span class="checkall"></span>
142 <span class="clearall"></span>
143 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
144 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
145 <span class="addto"></span></div>
149 <!-- Actual Search Results -->
150 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
151 <tr class="grouplabel"><td colspan="3">[% SEARCH_RESULT.group_label %]</td></tr>
152 [% FOREACH GROUP_RESULT IN SEARCH_RESULT.GROUP_RESULTS %]
153 [% IF ( GROUP_RESULT.even ) %]
154 <tr class="highlight">
159 [% IF ( OPACAmazonCoverImages ) %]
160 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% GROUP_RESULT.biblionumber |url %]">[% IF ( GROUP_RESULT.isbn ) %]<img src="https://images-na.ssl-images-amazon.com/images/P/[% GROUP_RESULT.isbn %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />[% ELSE %]<img src="http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="" class="thumbnail" />[% END %]
163 [% UNLESS ( noItemTypeImages ) %]
164 [% IF ( GROUP_RESULT.imageurl ) %]
165 <img src="[% GROUP_RESULT.imageurl %]" title="[% GROUP_RESULT.description %]" />
168 [% GROUP_RESULT.description %]
172 [% GROUP_RESULT.result_number %].
173 [% IF ( GROUP_RESULT.BiblioDefaultViewmarc ) %]
174 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% GROUP_RESULT.biblionumber |url %]" title="View details for this title">[% GROUP_RESULT.title %]
176 [% IF ( GROUP_RESULT.BiblioDefaultViewisbd ) %]
177 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% GROUP_RESULT.biblionumber |url %]" title="View details for this title">[% GROUP_RESULT.title %]
179 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% GROUP_RESULT.biblionumber |url %]" title="View details for this title">[% GROUP_RESULT.title %]
181 [% FOREACH subtitl IN GROUP_RESULT.subtitle %]
182 [% subtitl.subfield %]
185 [% END # / IF GROUP_RESULT.BiblioDefaultViewmarc %]
186 [% IF ( GROUP_RESULT.author ) %]
187 by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% GROUP_RESULT.author |url %]" title="Search for works by this author">[% GROUP_RESULT.author %]</a>
192 [% IF ( GROUP_RESULT.publicationyear ) %] - [% GROUP_RESULT.publicationyear %][% END %]
193 [% IF ( GROUP_RESULT.publishercode ) %]- [% GROUP_RESULT.publishercode %][% END %]
194 [% IF ( GROUP_RESULT.place ) %] ; [% GROUP_RESULT.place %][% END %]
195 [% IF ( GROUP_RESULT.pages ) %] - [% GROUP_RESULT.pages %][% END %]
196 [% IF ( GROUP_RESULT.notes ) %] : [% GROUP_RESULT.notes %][% END %]
197 [% IF ( GROUP_RESULT.size ) %] ; [% GROUP_RESULT.size %][% END %]
198 [% IF ( GROUP_RESULT.timestamp ) %] <i>(modified on [% GROUP_RESULT.timestamp %])</i>[% END %]
200 [% IF ( GROUP_RESULT.searchhighlightblob ) %]
201 <p class="searchhighlightblob">[% GROUP_RESULT.searchhighlightblob %]</p>
203 <p class="availability">
204 [% IF ( GROUP_RESULT.available_items_loop ) %]
205 <span class="available"><strong>Items available at:</strong>
206 [% FOREACH available_items_loo IN GROUP_RESULT.available_items_loop %]
207 [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
208 [% IF ( OPACItemsResultsDisplay ) %]
209 [% IF ( available_items_loo.location ) %][% available_items_loo.location %][% END %]
210 [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/opac-search.pl?q=callnum:[% available_items_loo.itemcallnumber |url %]">[% available_items_loo.itemcallnumber %]</a>][% END %]
212 ([% available_items_loo.count %]),
213 [% END # / FOREACH available_items_loo %]
216 <span class="unavailable">No items available:</span>
217 [% END # / IF GROUP_RESULT.available_items_loop %]
218 <span class="unavailable">
219 [% IF ( GROUP_RESULT.onloancount ) %] Checked out ([% GROUP_RESULT.onloancount %]), [% END %]
220 [% IF ( GROUP_RESULT.withdrawncount ) %] Withdrawn ([% GROUP_RESULT.withdrawncount %]), [% END %]
221 [% IF ( GROUP_RESULT.itemlostcount ) %] Lost ([% GROUP_RESULT.itemlostcount %]),[% END %]
222 [% IF ( GROUP_RESULT.damagedcount ) %] Damaged ([% GROUP_RESULT.damagedcount %]),[% END %]
223 [% IF ( GROUP_RESULT.orderedcount ) %] On order ([% GROUP_RESULT.orderedcount %]),[% END %]
224 [% IF ( GROUP_RESULT.intransitcount ) %] In transit ([% GROUP_RESULT.intransitcount %]),[% END %]
228 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
229 [% UNLESS ( GROUP_RESULT.norequests ) %]
230 [% IF Koha.Preference( 'opacuserlogin' ) == 1 && GROUP_RESULT.holdable %]
231 <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% GROUP_RESULT.biblionumber %]">Place hold</a><!-- add back when available 0 holds in queue-->
236 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
237 <input type="checkbox" name="biblionumber" value="[% GROUP_RESULT.biblionumber %]" title="Click to add to cart" /> <label for="bib[% GROUP_RESULT.biblionumber %]">
239 <img src="[% themelang %]/images/[% GROUP_RESULT.itemtype %].gif" alt="[% GROUP_RESULT.ccode %]" title="[% GROUP_RESULT.ccode %]" />
240 [% IF ( ( Koha.Preference( 'opacbookbag' ) = 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]</label>[% END %]
241 [% IF ( GROUP_RESULT.classification ) %]
242 <a href="/cgi-bin/koha/opac-search.pl?q=callnum:[% GROUP_RESULT.classification |url %]"> [% GROUP_RESULT.classification %] </a>
247 [% END # / FOREACH GROUP_RESULT %]
248 [% END # / FOREACH SEARCH_RESULTS %]
251 </div> <!-- / .searchresults -->
252 [% END # / IF scan %]
253 [% INCLUDE 'page-numbers.inc' %]
254 [% END # / IF total %]
256 [% IF Koha.Preference( 'suggestion' ) == 1 %]
257 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
258 <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>
260 [% IF ( 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>[% END %]
264 </div> <!-- / #grouped-results -->
265 </div> <!-- /.span10/12 -->
266 </div> <!-- / .row-fluid -->
267 </div> <!-- / .container-fluid -->
268 </div><!-- / .main -->
270 [% INCLUDE 'opac-bottom.inc' %]
271 [% BLOCK jsinclude %]
272 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
273 <script type="text/javascript">
276 var q_array = new Array(); // will hold the search terms, if possible
278 $(document).ready(function(){
279 [% IF ( OpacHighlightedWords ) %]
280 $('a.title').each(function() {
281 $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
285 $('#sortsubmit').hide();
286 $('#sort_by').change(function() {
287 $('#bookbag_form').submit();
289 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">Clear all</a>");
290 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">Select all</a>");
291 $("span.addto").html("<label for=\"addto\">Add to: </label><select name=\"addto\" id=\"addto\"><option value=\"\"></option>[% IF Koha.Preference( 'opacbookbag' ) == 1 %]<option value=\"addtocart\">Cart</option>[% END %][% IF Koha.Preference( 'virtualshelves' ) == 1 %][% IF ( loggedinusername ) %]<optgroup label=\"Lists:\">[% IF ( barshelves ) %][% FOREACH barshelvesloo IN barshelvesloop %][% IF ( category == 1 ) %]<option id=\"s[% barshelvesloo.shelfnumber %]\" value=\"addtolist\">[% barshelvesloo.shelfname | html %]</option>[% END %][% END %][% END %]<option value=\"newlist\">[ New list ]</option></optgroup>[% ELSE %]<option value=\"newlist\">List</option>[% END %][% END %]</select> <input type=\"submit\" class=\"submit\" value=\"Save\" />");
292 $("#addto").change(function(){
295 $(".addto").find("input:submit").click(function(){
300 if($("#addto").find("option:selected").attr("value") == "addtolist"){
301 var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
302 [% IF ( loggedinusername ) %]if (vShelfAdd()) {
303 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
304 }[% ELSE %] alert(_("You must be logged in to create or add to Lists")); [% END %]
306 } else if($("#addto").find("option:selected").attr("value") == "newlist"){
307 [% IF ( loggedinusername ) %]if (vShelfAdd()) {
308 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
309 }[% ELSE %] alert(_("You must be logged in to create or add to Lists")); [% END %]
312 if($("#addto").find("option:selected").attr("value") == "addtocart"){
317 $("#CheckAll").click(function(){
318 $("#bookbag_form").checkCheckboxes();
321 $("#CheckNone").click(function(){
322 $("#bookbag_form").unCheckCheckboxes();
325 [% IF ( query_desc ) %]
326 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
327 q_array = query_desc.split(" ");
328 // ensure that we don't have "" at the end of the array, which can
329 // break the highlighter
330 while (q_array.length > 0 && q_array[q_array.length-1] == "") {
331 q_array = q_array.splice(0,-1);
334 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
335 $("#highlight_toggle_off").show().click(function() {highlightOff();});
339 function highlightOff() {
340 $("td").removeHighlight();
341 $(".highlight_toggle").toggle();
343 function highlightOn() {
346 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
347 q_array[x] = q_array[x].toLowerCase();
348 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
349 if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
350 $("td").highlight(q_array[x]);
353 $(".highlight_toggle").toggle();