4 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %]
5 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %]
6 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
7 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
10 [% SET OverDriveEnabled = Koha.Preference('OverDriveLibraryID') && Koha.Preference('OverDriveClientKey') && Koha.Preference('OverDriveClientSecret') %]
11 [% SET RecordedBooksEnabled = Koha.Preference('RecordedBooksLibraryID') && Koha.Preference('RecordedBooksClientSecret') %]
14 [% INCLUDE 'doc-head-open.inc' %]
15 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog ›
16 [% IF ( searchdesc ) %]
18 Results of search for '[% ms_value | html %]'
23 You did not specify any search criteria.
25 [% INCLUDE 'doc-head-close.inc' %]
27 <link rel="alternate" type="application/rss+xml" title="[% LibraryName | html %] Search RSS feed" href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&count=[% countrss |uri %]&sort_by=acqdate_dsc&format=rss" />
29 [% BLOCK cssinclude %][% END %]
30 [% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %]
31 [% INCLUDE 'masthead.inc' %]
34 <ul class="breadcrumb">
35 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
36 [% IF ( searchdesc ) %]
37 [% IF ( ReturnPath ) %]
39 <a href="[% ReturnPath | url %]">Advanced search</a> <span class="divider">›</span>
44 <a href="#" title="You searched [% IF ( query_desc ) %] for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]">Results of search for '[% ms_value | html %]'</a>
46 <a href="#" title="You searched [% IF ( query_desc ) %] for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]">Search results</a>
51 <a href="#">You did not specify any search criteria</a>
56 [% UNLESS ( total ) %]
57 <div class="container-fluid">
58 <div class="row-fluid">
60 <h2 id="numresults">No results found!</h2>
62 [% IF ( searchdesc ) %]
63 No results found for that in [% LibraryName | html %] catalog.
64 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&format=rss" aria-label="Subscribe to this search" class="btn btn-link rsssearchlink noprint">
65 <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
68 You did not specify any search criteria.
71 [% IF ( ReturnPath ) %]
72 <div class="returntosearch">
73 <p><a href="[% ReturnPath | url %]">Return to the last advanced search</a></p>
76 [% IF ( OPACNoResultsFound ) %]
77 <div id="noresultsfound">
78 [% OPACNoResultsFound | $raw %]
81 </div> <!-- / .span12 -->
82 </div> <!-- / .row-fluid -->
83 </div> <!-- / .container-fluid -->
84 [% END # / UNLESS searchdesc %]
86 <div class="container-fluid">
87 <div class="row-fluid">
88 [% IF ( opacfacets && total ) %]
90 <div id="facetcontainer">
92 [% INCLUDE 'opac-facets.inc' %]
99 [% IF ( opacfacets ) %]
100 <div class="span10 maincontent">
102 <div class="span12 maincontent">
105 [% IF ( opacfacets ) %]
112 [% IF ( searchdesc ) %]
115 Your search returned [% total | html %] results.
116 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&format=rss" class="btn btn-link rsssearchlink noprint" aria-label="Subscribe to this search">
117 <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
121 <p>(related searches:[% FOREACH relate IN related %] [% relate.related_search | html %][% END %]).</p>
123 [% END # / IF total %]
124 [% END # / IF searchdesc %]
126 <div id="userresults">
127 [% IF ( DidYouMean ) %]
128 <div id="didyoumean">Not what you expected? Check for <a href="/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring | uri %]">suggestions</a></div>
131 [% IF ( koha_spsuggest ) %]
133 <ul style="list-style: none;">
134 [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
136 <a href="/cgi-bin/koha/opac-search.pl?q=[% SPELL_SUGGES.spsuggestion | uri %]">[% SPELL_SUGGES.spsuggestion | html %]</a>
140 [% END # / IF koha_spsuggest%]
142 [% IF ( ReturnPath ) %]
143 <div class="returntosearch">
144 <p><a href="[% ReturnPath | url %]">Return to the last advanced search</a></p>
148 [% IF ( query_error ) %]
149 <div class="dialog alert">
151 [% query_error | html %]
155 <!-- Search Results Table -->
158 <div class="searchresults">
159 <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
160 [% IF ( searchdesc ) %]
161 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
162 <input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/>
164 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
165 <input type="hidden" name="[% LIMIT_INPUT.input_name | html %]" value="[% LIMIT_INPUT.input_value | html %]"/>
167 [% END # IF /searchdesc %]
170 <div id="toolbar" class="toolbar clearfix">
171 <div id="top-pages" class="pull-left">[% INCLUDE 'page-numbers.inc' %]</div>
173 <div class="sort_by pull-right">
174 <select id="sort_by" class="resort" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select>
176 [% IF Koha.Preference('OPACnumSearchResultsDropdown') %]
177 <label for="results_per_page">Results per page: </label>
178 <select id="results_per_page" name="count">
179 [% IF Koha.Preference('OPACnumSearchResults') %]
180 [% IF results_per_page == Koha.Preference('OPACnumSearchResults') %]
181 <option value="[% Koha.Preference('OPACnumSearchResults') | html %]" selected="selected">Library default: [% Koha.Preference('OPACnumSearchResults') | html %]</option>
183 <option value="[% Koha.Preference('OPACnumSearchResults') | html %]">Library default: [% Koha.Preference('OPACnumSearchResults') | html %]</option>
186 [% IF results_per_page == '20' %]<option value="20" selected="selected">20</option>[% ELSE %]<option value="20">20</option>[% END %]
187 [% IF results_per_page == '40' %]<option value="40" selected="selected">40</option>[% ELSE %]<option value="40">40</option>[% END %]
188 [% IF results_per_page == '60' %]<option value="60" selected="selected">60</option>[% ELSE %]<option value="60">60</option>[% END %]
189 [% IF results_per_page == '80' %]<option value="80" selected="selected">80</option>[% ELSE %]<option value="80">80</option>[% END %]
190 [% IF results_per_page == '100' %]<option value="100" selected="selected">100</option>[% ELSE %]<option value="100">100</option>[% END %]
194 <input type="submit" class="btn btn-sm clearfix" id="sortsubmit" value="Go" />
197 </div> <!-- / #toolbar -->
199 <div id="selections-toolbar" class="toolbar noprint">
200 [% IF ( OpacHighlightedWords ) %]
201 <div class="highlight_controls noprint">
202 <a href="#" class="btn btn-link highlight_toggle" id="highlight_toggle_off"><i class="fa fa-fw fa-pencil" aria-hidden="true"></i> Unhighlight</a>
203 <a href="#" class="btn btn-link highlight_toggle" id="highlight_toggle_on"><i class="fa fa-fw fa-pencil" aria-hidden="true"></i> Highlight</a>
205 <span class="sep">|</span>
207 <!-- checkall, clearall are now needed for placehold -->
208 <span class="checkall"></span>
209 <span class="clearall"></span> <span class="sep">|</span>
212 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
213 <span class="addto"></span>
215 <span id="placehold"></span>
217 [% IF ( TagsInputEnabled && loggedinusername ) %]
218 <span id="tagsel_span">
219 <button id="tagsel_tag" class="btn btn-link disabled" type="submit" style="display:none"><i class="fa fa-fw fa-tag" aria-hidden="true"></i> Tag</button>
221 <div id="tagsel_form" style="display:none">
222 <label for="tagsel_new">New tag:</label>
223 <input type="text" name="tagsel_new" id="tagsel_new" maxlength="100" />
224 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="Add" type="submit" value="Add" />
225 <a href="#" id="tagsel_cancel">(done)</a>
227 <div id="tagsel_status" class="tagsel_tatus" style="display:none;">
231 </span> <!-- / .links -->
232 </div> <!-- / #selections-toolbar -->
233 </div> <!-- /#floating -->
235 <!-- TABLE RESULTS START -->
236 <table class="table table-striped">
238 <!-- Actual Search Results -->
239 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
241 [% # Cell 1: Checkbox %]
242 [% IF ( SEARCH_RESULT.title ) %]
243 [% check_title = SEARCH_RESULT.title %]
245 [% check_title = SEARCH_RESULT.biblionumber %]
247 <td class="select selectcol">
248 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
249 <input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" aria-label="Select search result: [% check_title | html %]" /> <label for="bib[% SEARCH_RESULT.biblionumber | html %]"></label>
251 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
252 <input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" aria-label="Select search result: [% check_title | html %]"/> <label for="bib[% SEARCH_RESULT.biblionumber | html %]"></label>
254 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
255 [% UNLESS ( SEARCH_RESULT.norequests ) %]
256 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]<input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" aria-label="Select search result: [% check_title | html %]"/> <label for="bib[% SEARCH_RESULT.biblionumber | html %]"></label>
259 [% END # IF RequestOnOpac %]
260 [% END # IF virtualshelves %]
261 [% END # IF opacbookbag%]
263 [% # Cell 2: Show result number if OpacHiddenItems is empty %]
264 <td class="select selectcol">
265 [% UNLESS suppress_result_number %]
266 [% SEARCH_RESULT.result_number | html %].
269 [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) && !Koha.Preference('OpacNoItemTypeImages') %]
270 [% # Cell 3: Show item type image %]
271 <td class="itypecol">
272 [% IF ( SEARCH_RESULT.imageurl ) %]
273 <img src="[% SEARCH_RESULT.imageurl | html %]" title="[% SEARCH_RESULT.description | html %]" alt="[% SEARCH_RESULT.description | html %]" />
275 [% IF ( SEARCH_RESULT.score_avg ) %]
276 <img src="[% themelang | html %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/>
281 [% # Cell 4: Search result details and controls %]
282 <td class="bibliocol">
283 <div class="coverimages itemtype_[% SEARCH_RESULT.itemtype | html %]">
284 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
285 [% IF ( SEARCH_RESULT.title ) %]
286 [% img_title = SEARCH_RESULT.title %]
288 [% img_title = SEARCH_RESULT.biblionumber %]
290 [% IF ( OPACLocalCoverImages ) %]
291 <span title="[% img_title | html %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
294 [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
295 <span title="[% img_title | html %]" id="adlibris-thumbnail[% loop.count | html %]">
296 <img src="[% AdlibrisURL | html %]?isbn=[% SEARCH_RESULT.normalized_isbn | html %]"
297 alt="Adlibris thumbnail for ISBN: [% SEARCH_RESULT.normalized_isbn | html %]" class="adlibris-cover" />
300 [% IF ( OPACAmazonCoverImages ) %]
301 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
302 <span title="[% img_title | html %]" id="amazon-thumbnail[% loop.count | html %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" class="item-thumbnail" /></span>
304 <span class="no-image">No cover image available</span>
308 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
309 [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
310 <span title="[% img_title | html %]" id="syndetics-thumbnail[% loop.count | html %]"><img src="https://secure.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc | html %]&oclc=[% SEARCH_RESULT.normalized_oclc | html %]" alt="" class="item-thumbnail" /></span>
312 <span class="no-image">No cover image available</span>
316 [% IF ( GoogleJackets ) %]
317 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
318 <span title="[% img_title | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></span>
320 <span class="no-image">No cover image available</span>
324 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
325 [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn | html %]
327 <span title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
329 <span class="no-image">No cover image available</span>
333 [% IF OpenLibraryCovers %]
334 [% IF SEARCH_RESULT.normalized_isbn %]
335 <span title="[% img_title | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="openlibrary-thumbnail[% loop.count | html %]"></span>
337 <span class="no-image">No cover image available</span>
341 [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %]
342 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
344 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
346 <span class="no-image">No cover image available</span>
351 [% IF ( BakerTaylorEnabled && BakerTaylorBookstoreURL ) %]
352 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
354 <a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | url %]">
355 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
358 <span class="no-image">No cover image available</span>
362 [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
363 [% IF ( OPACURLOpenInNewWindow ) %]
364 <a class="custom_cover_image" href="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" target="_blank" rel="noreferrer"><img alt="Cover image" src="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" /></a>
366 <a class="custom_cover_image" href="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" /></a>
371 [% IF ( COinSinOPACResults && SEARCH_RESULT.coins ) %]
372 <!-- COinS / Openurl -->
373 <span class="Z3988" title="[% SEARCH_RESULT.coins | html %]"></span>
375 <div id="title_summary_[% SEARCH_RESULT.biblionumber | html %]" class="title_summary">
376 [% IF ( OPACXSLTResultsDisplay ) %]
377 [% SEARCH_RESULT.XSLTResultsRecord | $raw %]
379 [% IF ( BiblioDefaultViewmarc ) %]
380 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | url %]" title="View details for this title">
382 [% IF ( BiblioDefaultViewisbd ) %]
383 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | url %]" title="View details for this title">
385 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | url %]" title="View details for this title">
389 [% INCLUDE 'biblio-title.inc' biblio=SEARCH_RESULT %]
391 [% IF ( SEARCH_RESULT.author ) %]
392 by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% SEARCH_RESULT.author | url %]" title="Search for works by this author" class="author">[% SEARCH_RESULT.author | html %]</a>
397 <span class="results_summary publisher">
398 <span class="label">Publication:</span>
399 [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place | html %] [% END %]
400 [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode | html %][% END %]
401 [% IF ( SEARCH_RESULT.publicationyear ) %]
402 [% SEARCH_RESULT.publicationyear | html %]
404 [% IF ( SEARCH_RESULT.copyrightdate ) %]
405 [% SEARCH_RESULT.copyrightdate | html %]
408 [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages | html %][% END %]
409 [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes | html %][% END %]
410 [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size | html %][% END %]
411 [% IF ( SEARCH_RESULT.timestamp ) %] <em>(modified on [% SEARCH_RESULT.timestamp | html %])</em>[% END %]
414 [% IF ( SEARCH_RESULT.summary ) %]
415 <span class="result_summary">
416 [% SEARCH_RESULT.summary | html %]
420 [% IF ( SEARCH_RESULT.copyrightdate ) %]
421 <span class="results_summary date">
422 <span class="label">Date:</span>
423 [% SEARCH_RESULT.copyrightdate | html %]
427 <span class="results_summary">
428 <span class="label">Availability:</span>
429 [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
430 <span class="available"><strong>Items available:</strong>
431 [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
432 [% IF available_items_loo.this_branch %]
433 <span class="highlight-row-results">
438 [% IF ( singleBranchMode ) %]
439 <span class="shelvingloc">[% available_items_loo.location | html %]</span>
441 [% available_items_loo.branchname | html %]
444 [% IF ( OPACItemsResultsDisplay ) %]
445 [% UNLESS ( singleBranchMode ) %]<span class="shelvingloc">[% available_items_loo.location | html %]</span>[% END %]
446 [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/opac-search.pl?q=callnum:%22[% available_items_loo.itemcallnumber | url %]%22">[% available_items_loo.itemcallnumber | html %]</a>][% END %]
448 ([% available_items_loo.count | html %]),
450 [% END # / FOREACH available_items_loo %]
453 [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS ) %]
454 [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
455 <span id="alternateholdings">[% ALTERNATEHOLDING.holding | html %]</span>,
458 <span class="unavailable">No items available:</span>
460 [% END # / IF SEARCH_RESULT.available_items_loop.size %]
462 <span class="unavailable">
463 [% IF ( SEARCH_RESULT.onloancount ) %] Checked out ([% SEARCH_RESULT.onloancount | html %]), [% END %]
464 [% IF ( SEARCH_RESULT.withdrawncount ) %] Withdrawn ([% SEARCH_RESULT.withdrawncount | html %]), [% END %]
465 [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount | html %]),[% END %][% END %]
466 [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount | html %]),[% END %]
467 [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount | html %]),[% END %]
468 [% IF ( SEARCH_RESULT.onholdcount ) %] On hold ([% SEARCH_RESULT.onholdcount | html %]),[% END %]
469 [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount | html %]),[% END %]
471 </span> <!-- / .results_summary -->
472 [% END # / IF OPACXSLTResultsDisplay %]
474 [% IF ( SEARCH_RESULT.score_avg ) %]
475 <div class="results_summary">
476 [% FOREACH i IN [ 1 2 3 4 5 ] %]
477 [% IF ( SEARCH_RESULT.score_int >= i ) %]
478 <div class="star-rating rater-[% i | html %] star star-rating-applied star-rating-readonly star-rating-on"><a title="[% i | html %]">[% i | html %]</a></div>
480 <div class="star-rating rater-[% i | html %] star star-rating-applied star-rating-readonly"><a title="[% i | html %]">[% i | html %]</a></div>
483 <span id="babeltheque-rating_total_[% SEARCH_RESULT.biblionumber | html %]"> [% SEARCH_RESULT.score_avg | html %] / 5 (on [% SEARCH_RESULT.num_scores | html %] rates)</span>
485 [% IF ( SEARCH_RESULT.num_critics ) %]
486 <span class="social_data">[% SEARCH_RESULT.num_critics | html %] Internet user critics</span>
488 [% IF ( SEARCH_RESULT.num_critics_pro ) %]
489 <span class="social_data">[% SEARCH_RESULT.num_critics_pro | html %] Professional critics</span>
491 [% IF ( SEARCH_RESULT.num_videos ) %]
492 <span class="social_data">[% SEARCH_RESULT.num_videos | html %] Video extracts</span>
494 [% IF ( SEARCH_RESULT.num_quotations ) %]
495 <span class="social_data">[% SEARCH_RESULT.num_quotations | html %] Quotations</span>
497 </div> <!-- / .results_summary -->
498 [% END # / IF SEARCH_RESULT.score_avg %]
500 [% IF ( LibraryThingForLibrariesID ) %]
501 <div class="ltfl_reviews"></div>
504 [% IF ( TagsShowEnabled && SEARCH_RESULT.TagLoop.size ) %]
505 <div class="results_summary tags">
506 <span class="label">Tags:</span>
508 [% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]
510 <a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term | url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
511 <span class="weight">([% TagLoo.weight_total | html %])</span>
518 [% IF Koha.Preference('virtualshelves') AND SEARCH_RESULT.shelves.count %]
519 <div class="results_summary shelves">
520 <span class="label">Lists:</span>
522 [% FOREACH shelf IN SEARCH_RESULT.shelves %]
524 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]">[% shelf.shelfname | html %]</a>
525 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
532 [% IF ( SEARCH_RESULT.searchhighlightblob ) %]
533 <span class="results_summary">
534 <span class="label">Match:</span>
535 [% SEARCH_RESULT.searchhighlightblob | html %]
539 [% IF ( OpacStarRatings == 'all' ) %]
540 <div class="results_summary ratings">
541 [% SET rating_avg = SEARCH_RESULT.ratings.get_avg_rating() %]
542 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
543 <div class="br-wrapper br-theme-fontawesome-stars">
544 <div class="br-widget br-readonly">
545 [% FOREACH i IN [ 1 2 3 4 5 ] %]
546 [% IF rating_avg_int == i %]
547 <a href="#" class="br-selected br-current"></a>
548 [% ELSIF rating_avg_int > i %]
549 <a href="#" class="br-selected"></a>
557 [% IF SEARCH_RESULT.ratings.count > 0 %]
558 <span id="rating_total_[% SEARCH_RESULT.biblionumber | html %]"> ([% SEARCH_RESULT.ratings.count | html %] votes)</span>
562 </div> <!-- / .results_summary -->
563 [% END # / IF OpacStarRatings %]
565 [% INCLUDE 'title-actions-menu.inc' items=SEARCH_RESULT %]
568 [% INCLUDE "openlibrary-readapi.inc" bib = SEARCH_RESULT %]
572 [% END # / FOREACH SEARCH_RESULT %]
574 </form> <!-- / #bookbag_form -->
576 <form id="hold_form" name="hold_form" method="get" action="/cgi-bin/koha/opac-reserve.pl">
577 <!-- The value will be set by holdBiblioNums() in basket.js -->
578 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value=""/>
580 </div> <!-- / .searchresults -->
582 <div id="bottom-pages">[% INCLUDE 'page-numbers.inc' %]</div>
584 [% END # / IF total %]
586 [%# Display "Not finding what you're looking for" for suggestion or ILL %]
587 [% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername ) || ( Koha.Preference( 'ILLModule' ) == 1 && loggedinusername ) %]
588 <div class="suggestion">
589 Not finding what you're looking for?
591 [% IF Koha.Preference( 'suggestion' ) == 1 %]
592 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
593 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
594 [% ELSIF loggedinusername %]
595 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
598 [% IF Koha.Preference( 'ILLModule' ) == 1 && loggedinusername %]
599 <li>Make an <a href="/cgi-bin/koha/opac-illrequests.pl?op=create">Interlibrary loan request</a></li>
604 </div> <!-- / #userresults -->
605 </div> <!-- /.span10/12 -->
606 </div> <!-- / .row-fluid -->
607 </div> <!-- / .container-fluid -->
608 </div><!-- / .main -->
610 [% INCLUDE 'opac-bottom.inc' %]
611 [% BLOCK jsinclude %]
612 [% IF ( LibraryThingForLibrariesID ) %]
613 <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]&systype=koha"></script>
615 [% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %]
616 [% IF ( RecordedBooksEnabled ) %][% Asset.js("js/recordedbooks.js") | $raw %][% END %]
617 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
618 [% Asset.js("js/authtoresults.js") | $raw %]
619 [% Asset.js("lib/hc-sticky.js") | $raw %]
620 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %]
622 [% IF OpenLibraryCovers || OpenLibrarySearch %]
623 [% Asset.js("js/openlibrary.js") | $raw %]
627 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
628 function holdMultiple() {
629 var checkedBiblioNums = ""; // Separated by "/"
630 var checkedCount = 0;
631 if(document.bookbag_form.biblionumber.length > 0) {
632 for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
633 if (document.bookbag_form.biblionumber[i].checked) {
634 checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/");
640 if (checkedCount > 0) {
641 holdBiblioNums(checkedBiblioNums);
643 alert(MSG_NO_RECORD_SELECTED);
647 function holdBiblioNums(numList) {
648 // numList: biblio numbers separated by "/"
649 $("#hold_form_biblios").attr("value", numList);
650 $("#hold_form").submit();
653 [% IF ( TagsInputEnabled && loggedinusername ) %]
654 function tagSelected() {
655 var checkedBoxes = $(".searchresults :checkbox:checked");
656 if ($(checkedBoxes).size() == 0) {
657 alert(MSG_NO_RECORD_SELECTED);
659 $("#tagsel_tag").hide();
661 $("#tagsel_form").show();
665 function tagCanceled() {
666 $("#tagsel_form").hide();
667 $("#tagsel_tag").show();
669 $("#tagsel_new").val("");
670 $("#tagsel_status, .tagstatus").empty().hide();
673 function tagAdded() {
674 var checkedBoxes = $(".searchresults :checkbox:checked");
675 if ($(checkedBoxes).size() == 0) {
676 alert(MSG_NO_RECORD_SELECTED);
680 var tag = $("#tagsel_new").val();
681 if (!tag || (tag == "")) {
682 alert(MSG_NO_TAG_SPECIFIED);
687 for (var i = 0; i < $(checkedBoxes).size(); i++) {
688 var box = $(checkedBoxes).get(i);
689 bibs[i] = $(box).val();
692 KOHA.Tags.add_multitags_button(bibs, tag);
697 function enableCheckboxActions(){
698 // Enable/disable controls if checkboxes are checked
699 var checkedBoxes = $(".checkboxed input:checkbox:checked");
700 var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, #selections-toolbar .links label, #selections-toolbar .links button");
701 if ($(checkedBoxes).size()) {
702 $("#selections").html(_("With selected titles: "));
703 $(controls).removeClass("disabled");
705 $("#selections").html(_("Select titles to: "));
706 $(controls).addClass("disabled");
710 [% IF ( OpacHighlightedWords ) %]
711 var q_array = new Array(); // holds search terms if available
713 function highlightOff() {
714 $("td").removeHighlight();
715 $(".highlight_toggle").toggle();
717 function highlightOn() {
720 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
721 q_array[x] = q_array[x].toLowerCase();
722 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
723 if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
724 $(".title").highlight(q_array[x]);
725 $(".author").highlight(q_array[x]);
726 $(".results_summary").highlight(q_array[x]);
729 $(".highlight_toggle").toggle();
732 $(document).ready(function(){
734 $(".moretoggle").click(function(e){
736 $(this).siblings(".collapsible-facet").toggle();
737 $(this).siblings(".moretoggle").toggle();
741 [% IF ( OpacHighlightedWords ) %]
742 $('a.title').each(function() {
743 $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
747 $(".cb").click(function(){
748 enableCheckboxActions();
750 enableCheckboxActions();
752 $(".br-readonly a").on("click", function(e){
757 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) || loggedinusername ) %]
758 param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>";
761 [% IF Koha.Preference( 'opacbookbag' ) == 1 OR Koha.Preference('virtualshelves') %]
762 param1 += "<select class=\"disabled\" name=\"addto\" id=\"addto\"><option>"+_("Add to...")+"</option>";
764 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
765 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
767 [% IF Koha.Preference('virtualshelves') %]
768 [% IF loggedinusername AND add_to_some_private_shelves.count %]
769 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
770 [% SET number_of_private_shelves = 0 %]
771 [% FOREACH s IN add_to_some_private_shelves %]
772 [% IF shelfnumber != s.shelfnumber %]
773 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
774 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
775 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
778 param1 += "<\/optgroup>";
780 [% IF add_to_some_public_shelves.count %]
781 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
782 [% SET number_of_public_shelves = 0 %]
783 [% FOREACH s IN add_to_some_public_shelves %]
784 [% IF shelfnumber != s.shelfnumber %]
785 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
786 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
787 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
790 param1 += "<\/optgroup>";
792 [% IF ( add_to_some_private_shelves and add_to_some_private_shelves.count > 10 ) or ( add_to_some_public_shelves and add_to_some_public_shelves.count > 10 ) %]
793 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
795 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
797 param1 += "<\/select> <input type=\"submit\" class=\"btn btn-small\" value=\""+_("Save")+"\" />";
800 $('.resort').change(function() {
801 $('#bookbag_form').submit();
804 $('#results_per_page').change(function() {
805 $('#bookbag_form').submit();
808 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
809 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
811 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
812 $("span.addto").html(param1);
814 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
815 $("span.addto").html(param1);
819 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
820 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
821 $("#addto").on("change",function(){
824 $(".addto").find("input:submit").click(function(){
829 $("#addto").on("click",function(){
837 addtoOption = $("#addto").find("option:selected");
838 addtoval = addtoOption.val();
839 if(addtoval == "addtolist"){
840 var shelfnumber = addtoOption.attr("id").replace("s","");
842 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
845 } else if(addtoval == "newlist"){
846 [% IF ( loggedinusername ) %]if (vShelfAdd()) {
847 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
849 alert(_("You must be logged in to create or add to lists"));
852 } else if(addtoval == "morelists"){
853 [% IF ( loggedinusername ) %]
855 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
858 alert(_("You must be logged in to create or add to lists"));
862 if(addtoval == "addtocart" || $("#addto").attr("class") == "addtocart"){
867 $("#CheckAll").click(function(){
868 $("#bookbag_form").checkCheckboxes();
869 enableCheckboxActions();
872 $("#CheckNone").click(function(){
873 $("#bookbag_form").unCheckCheckboxes();
874 enableCheckboxActions();
878 [% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %]
879 $("#placehold").html("<button class=\"btn btn-link hold disabled\" type=\"submit\"><i class=\"fa fa-fw fa-bookmark\" aria-hidden=\"true\"></i>" + _("Place hold") + "</button>");
880 $("#placehold").find("button.hold").click(function(){
886 [% IF ( query_desc ) %]
887 [% IF ( OpacHighlightedWords ) %]
888 q_array = query_desc.split(" ");
889 // ensure that we don't have "" at the end of the array, which can
890 // break the highlighter
891 while (q_array.length > 0 && q_array[q_array.length-1] == "") {
892 q_array = q_array.splice(0,-1);
895 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
896 $("#highlight_toggle_off").show().click(function() {highlightOff();});
898 [% IF ( OverDriveEnabled ) %]
899 var $overdrive_results = $( '<div id="overdrive-results">' + MSG_SEARCHING.format('OverDrive') + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
900 $( '#numresults' ) .append( ' ' )
901 .append( $overdrive_results );
902 KOHA.OverDrive.Search( "[% Koha.Preference('OverDriveLibraryID') | html %]", querystring, 1, 0, function( data ) {
904 $overdrive_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('OverDrive') );
908 if ( data.totalItems ) {
909 $overdrive_results.html( '<a href="/cgi-bin/koha/opac-overdrive-search.pl?q=' + escape( querystring ) + '">' + MSG_RESULTS_FOUND_IN_COLLECTION.format(data.totalItems, 'OverDrive') + '</a>' );
911 $overdrive_results.remove();
915 [% IF ( RecordedBooksEnabled ) %]
916 var $recordedbooks_results = $( '<div id="recordedbooks-results">' + MSG_SEARCHING.format('RecordedBooks') + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
917 $( '#numresults' ) .append( ' ' )
918 .append( $recordedbooks_results );
919 KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" | html %], null, function( data ) {
921 $recordedbooks_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('RecordedBooks') + ': ' + data.error);
925 // data.total can be either 42 or "60+"
926 if ( typeof(data.total) === 'string' && data.total.charAt(0) > 0 || typeof(data.total) === 'number' && data.total > 0 ) {
927 $recordedbooks_results.html( '<a href="/cgi-bin/koha/opac-recordedbooks-search.pl?q=' + escape( querystring ) + '">' + MSG_RESULTS_FOUND_IN_COLLECTION.format(data.total, 'RecordedBooks') + '</a>' );
929 $recordedbooks_results.remove();
933 [% IF ( OpenLibrarySearch ) %]
934 var $openlibrary_results = $( '<div id="openlibrary-results">' + MSG_SEARCHING.format('OpenLibrary' ) + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
935 $( '#numresults' ) .append( ' ' )
936 .append( $openlibrary_results );
937 KOHA.OpenLibrary.search( querystring, null, function( data ) {
939 $openlibrary_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('OpenLibrary') );
943 if ( data.numFound > 0 ) {
944 $openlibrary_results.html( '<a href="' + KOHA.OpenLibrary.searchUrl(querystring) + '" target="openlibrary">' + MSG_RESULTS_FOUND_IN_COLLECTION.format(data.numFound, 'OpenLibrary') + '</a>' );
946 $openlibrary_results.remove();
952 [% IF ( TagsInputEnabled && loggedinusername ) %]
953 $("#tagsel_tag").show().click(function(){
957 $("#tagsel_cancel").click(function(){
961 $("#tagsel_button").click(function(){
966 $(".tag_add").click(function(){
967 var thisid = $(this).attr("id");
968 thisid = thisid.replace("tag_add","");
969 $(this).addClass("hidden");
970 $("#tagform"+thisid).show();
971 $("#newtag"+thisid).focus();
972 $("#newtag"+thisid+"_status").empty().hide();
975 $(".cancel_tag_add").click(function(){
976 var thisid = $(this).attr("id");
977 thisid = thisid.replace("cancel","");
978 $("#tagform"+thisid).hide();
979 $("#tag_add"+thisid).removeClass("hidden");
980 $("#newtag"+thisid).val("");
981 $("#newtag"+thisid+"_status").empty().hide();
984 $(".tagbutton").click(function(){
985 var thisid = $(this).attr("title");
986 var tag = $("#newtag"+thisid).val();
987 if (!tag || (tag == "")) {
988 alert(MSG_NO_TAG_SPECIFIED);
991 KOHA.Tags.add_tag_button(thisid, tag);
996 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
997 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
998 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
999 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1000 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
1003 [% IF ( DidYouMean ) %]
1004 $("#didyoumean").load("/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring |uri %]",
1006 $(this).addClass("dym-loaded");
1010 $("input.newtag").on('keydown', function(e){
1011 if (e.keyCode == 13) { e.preventDefault(); }
1014 Sticky = $("#floating");
1016 stickTo: ".searchresults",
1017 stickyClass: "floating"