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 <nav aria-label="breadcrumb">
35 <ul class="breadcrumb">
36 <li class="breadcrumb-item">
37 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
39 [% IF ( searchdesc ) %]
40 [% IF ( ReturnPath ) %]
41 <li class="breadcrumb-item">
42 <a href="[% ReturnPath | url %]">Advanced search</a>
45 <li class="breadcrumb-item active" aria-current="page">
47 <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>
49 <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>
53 <li class="breadcrumb-item active" aria-current="page">
54 <a href="#">You did not specify any search criteria</a>
60 [% UNLESS ( total ) %]
61 <div class="container-fluid">
64 <h2 id="numresults">No results found!</h2>
66 [% IF ( searchdesc ) %]
67 No results found for that in [% LibraryName | html %] catalog.
68 <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">
69 <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
72 You did not specify any search criteria.
75 [% IF ( ReturnPath ) %]
76 <div class="returntosearch">
77 <p><a href="[% ReturnPath | url %]">Return to the last advanced search</a></p>
80 [% IF ( OPACNoResultsFound ) %]
81 <div id="noresultsfound">
82 [% OPACNoResultsFound | $raw %]
85 </div> <!-- / .col -->
86 </div> <!-- / .row -->
87 </div> <!-- / .container-fluid -->
88 [% END # / UNLESS searchdesc %]
90 <div class="container-fluid">
92 [% IF ( opacfacets && total ) %]
93 <div class="col-lg-2">
94 <div id="facetcontainer">
96 [% INCLUDE 'opac-facets.inc' %]
103 [% IF ( opacfacets ) %]
104 <div class="col-lg-10 order-first order-md-first order-lg-2 maincontent">
106 <div class="col order-first order-md-first order-lg-2 maincontent">
109 [% IF ( opacfacets ) %]
110 <div class="col-lg-10 order-first order-md-first order-lg-2">
112 <div class="col order-first order-md-first order-lg-2">
116 [% IF ( searchdesc ) %]
119 Your search returned [% total | html %] results.
120 <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">
121 <i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this search"></i>
125 <p>(related searches:[% FOREACH relate IN related %] [% relate.related_search | html %][% END %]).</p>
127 [% END # / IF total %]
128 [% END # / IF searchdesc %]
130 <div id="userresults">
131 [% IF ( DidYouMean ) %]
132 <div id="didyoumean">Not what you expected? Check for <a href="/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring | uri %]">suggestions</a></div>
135 [% IF ( koha_spsuggest ) %]
137 <ul style="list-style: none;">
138 [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
140 <a href="/cgi-bin/koha/opac-search.pl?q=[% SPELL_SUGGES.spsuggestion | uri %]">[% SPELL_SUGGES.spsuggestion | html %]</a>
144 [% END # / IF koha_spsuggest%]
146 [% IF ( ReturnPath ) %]
147 <div class="returntosearch">
148 <p><a href="[% ReturnPath | url %]">Return to the last advanced search</a></p>
152 [% IF ( query_error ) %]
153 <div class="dialog alert">
155 [% query_error | html %]
159 <!-- Search Results Table -->
162 <div class="searchresults">
163 <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
164 [% IF ( searchdesc ) %]
165 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
166 <input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/>
168 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
169 <input type="hidden" name="[% LIMIT_INPUT.input_name | html %]" value="[% LIMIT_INPUT.input_value | html %]"/>
171 [% END # IF /searchdesc %]
174 <div id="toolbar" class="toolbar row align-items-center">
175 <div id="top-pages" class="col">
176 [% INCLUDE 'page-numbers.inc' %]
179 <div class="sort_by col-sm-auto">
180 <div class="text-right">
181 <select id="sort_by" class="resort form-control form-control-sm" name="sort_by">
182 [% INCLUDE 'resort_form.inc' %]
185 [% IF Koha.Preference('OPACnumSearchResultsDropdown') %]
186 <label for="results_per_page">Results per page: </label>
187 <select id="results_per_page" name="count">
188 [% IF Koha.Preference('OPACnumSearchResults') %]
189 [% IF results_per_page == Koha.Preference('OPACnumSearchResults') %]
190 <option value="[% Koha.Preference('OPACnumSearchResults') | html %]" selected="selected">Library default: [% Koha.Preference('OPACnumSearchResults') | html %]</option>
192 <option value="[% Koha.Preference('OPACnumSearchResults') | html %]">Library default: [% Koha.Preference('OPACnumSearchResults') | html %]</option>
195 [% IF results_per_page == '20' %]<option value="20" selected="selected">20</option>[% ELSE %]<option value="20">20</option>[% END %]
196 [% IF results_per_page == '40' %]<option value="40" selected="selected">40</option>[% ELSE %]<option value="40">40</option>[% END %]
197 [% IF results_per_page == '60' %]<option value="60" selected="selected">60</option>[% ELSE %]<option value="60">60</option>[% END %]
198 [% IF results_per_page == '80' %]<option value="80" selected="selected">80</option>[% ELSE %]<option value="80">80</option>[% END %]
199 [% IF results_per_page == '100' %]<option value="100" selected="selected">100</option>[% ELSE %]<option value="100">100</option>[% END %]
201 [% END # IF Koha.Preference('OPACnumSearchResultsDropdown') %]
203 <input type="submit" class="btn btn-sm clearfix" id="sortsubmit" value="Go" />
205 </div> <!-- /.sort_by -->
206 [% END # /UNLESS tag %]
207 </div> <!-- / #toolbar -->
209 <div id="selections-toolbar" class="toolbar noprint">
210 [% IF ( OpacHighlightedWords ) %]
211 <div class="highlight_controls noprint">
212 <a href="#" class="btn btn-link btn-sm highlight_toggle" id="highlight_toggle_off"><i class="fa fa-fw fa-pencil" aria-hidden="true"></i> Unhighlight</a>
213 <a href="#" class="btn btn-link btn-sm highlight_toggle" id="highlight_toggle_on"><i class="fa fa-fw fa-pencil" aria-hidden="true"></i> Highlight</a>
215 <span class="sep">|</span>
217 <!-- checkall, clearall are now needed for placehold -->
218 <span class="checkall"></span>
219 <span class="clearall"></span> <span class="sep">|</span>
222 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
223 <span class="addto"></span>
225 <span id="placehold"></span>
227 [% IF ( TagsInputEnabled && loggedinusername ) %]
228 <span id="tagsel_span">
229 <button id="tagsel_tag" class="btn btn-link btn-sm disabled" type="submit" style="display:none"><i class="fa fa-fw fa-tag" aria-hidden="true"></i> Tag</button>
231 <div id="tagsel_form" style="display:none">
232 <label for="tagsel_new">New tag:</label>
233 <input type="text" name="tagsel_new" id="tagsel_new" maxlength="100" />
234 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-sm btn-primary" title="Add" type="submit" value="Add" />
235 <a href="#" id="tagsel_cancel">(done)</a>
237 <div id="tagsel_status" class="tagsel_tatus" style="display:none;">
241 </span> <!-- / .links -->
242 </div> <!-- / #selections-toolbar -->
243 </div> <!-- /#floating -->
245 <!-- TABLE RESULTS START -->
246 <table class="table table-striped">
248 <!-- Actual Search Results -->
249 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
251 [% # Cell 1: Checkbox %]
252 [% IF ( SEARCH_RESULT.title ) %]
253 [% check_title = SEARCH_RESULT.title %]
255 [% check_title = SEARCH_RESULT.biblionumber %]
257 <td class="select selectcol">
258 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
259 <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>
261 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
262 <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>
264 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
265 [% UNLESS ( SEARCH_RESULT.norequests ) %]
266 [% 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>
269 [% END # IF RequestOnOpac %]
270 [% END # IF virtualshelves %]
271 [% END # IF opacbookbag%]
274 [% # Cell 2: Show result number if OpacHiddenItems is empty %]
275 <td class="select selectcol">
276 [% UNLESS suppress_result_number %]
277 [% SEARCH_RESULT.result_number | html %].
281 [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) && !Koha.Preference('OpacNoItemTypeImages') %]
282 [% # Cell 3: Show item type image %]
283 <td class="itypecol">
284 [% IF ( SEARCH_RESULT.imageurl ) %]
285 <img src="[% SEARCH_RESULT.imageurl | html %]" title="[% SEARCH_RESULT.description | html %]" alt="[% SEARCH_RESULT.description | html %]" />
287 [% IF ( SEARCH_RESULT.score_avg ) %]
288 <img src="[% themelang | html %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/>
293 [% # Cell 4: Search result details and controls %]
294 <td class="bibliocol">
295 <div class="coverimages itemtype_[% SEARCH_RESULT.itemtype | html %]">
296 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
297 [% IF ( SEARCH_RESULT.title ) %]
298 [% img_title = SEARCH_RESULT.title %]
300 [% img_title = SEARCH_RESULT.biblionumber %]
302 [% IF ( OPACLocalCoverImages ) %]
303 <span title="[% img_title | html %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
306 [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
307 <span title="[% img_title | html %]" id="adlibris-thumbnail[% loop.count | html %]">
308 <img src="[% AdlibrisURL | html %]?isbn=[% SEARCH_RESULT.normalized_isbn | html %]"
309 alt="Adlibris thumbnail for ISBN: [% SEARCH_RESULT.normalized_isbn | html %]" class="adlibris-cover" />
312 [% IF ( OPACAmazonCoverImages ) %]
313 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
314 <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>
316 <span class="no-image">No cover image available</span>
320 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
321 [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
322 <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>
324 <span class="no-image">No cover image available</span>
328 [% IF ( GoogleJackets ) %]
329 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
330 <span title="[% img_title | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></span>
332 <span class="no-image">No cover image available</span>
336 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
337 [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn | html %]
339 <span title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
341 <span class="no-image">No cover image available</span>
345 [% IF OpenLibraryCovers %]
346 [% IF SEARCH_RESULT.normalized_isbn %]
347 <span title="[% img_title | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="openlibrary-thumbnail[% loop.count | html %]"></span>
349 <span class="no-image">No cover image available</span>
353 [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %]
354 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
356 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
358 <span class="no-image">No cover image available</span>
363 [% IF ( BakerTaylorEnabled && BakerTaylorBookstoreURL ) %]
364 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
366 <a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | url %]">
367 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
370 <span class="no-image">No cover image available</span>
374 [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
375 [% IF ( OPACURLOpenInNewWindow ) %]
376 <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>
378 <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>
383 [% IF ( COinSinOPACResults && SEARCH_RESULT.coins ) %]
384 <!-- COinS / Openurl -->
385 <span class="Z3988" title="[% SEARCH_RESULT.coins | html %]"></span>
387 <div id="title_summary_[% SEARCH_RESULT.biblionumber | html %]" class="title_summary">
388 [% IF ( OPACXSLTResultsDisplay ) %]
389 [% SEARCH_RESULT.XSLTResultsRecord | $raw %]
391 [% IF ( BiblioDefaultViewmarc ) %]
392 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | url %]" title="View details for this title">
394 [% IF ( BiblioDefaultViewisbd ) %]
395 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | url %]" title="View details for this title">
397 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | url %]" title="View details for this title">
401 [% INCLUDE 'biblio-title.inc' biblio=SEARCH_RESULT %]
403 [% IF ( SEARCH_RESULT.author ) %]
404 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>
409 <span class="results_summary publisher">
410 <span class="label">Publication:</span>
411 [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place | html %] [% END %]
412 [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode | html %][% END %]
413 [% IF ( SEARCH_RESULT.publicationyear ) %]
414 [% SEARCH_RESULT.publicationyear | html %]
416 [% IF ( SEARCH_RESULT.copyrightdate ) %]
417 [% SEARCH_RESULT.copyrightdate | html %]
420 [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages | html %][% END %]
421 [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes | html %][% END %]
422 [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size | html %][% END %]
423 [% IF ( SEARCH_RESULT.timestamp ) %] <em>(modified on [% SEARCH_RESULT.timestamp | html %])</em>[% END %]
426 [% IF ( SEARCH_RESULT.summary ) %]
427 <span class="result_summary">
428 [% SEARCH_RESULT.summary | html %]
432 [% IF ( SEARCH_RESULT.copyrightdate ) %]
433 <span class="results_summary date">
434 <span class="label">Date:</span>
435 [% SEARCH_RESULT.copyrightdate | html %]
439 <span class="results_summary">
440 <span class="label">Availability:</span>
441 [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
442 <span class="available"><strong>Items available:</strong>
443 [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
444 [% IF available_items_loo.this_branch %]
445 <span class="highlight-row-results">
450 [% IF ( singleBranchMode ) %]
451 <span class="shelvingloc">[% available_items_loo.location | html %]</span>
453 [% available_items_loo.branchname | html %]
456 [% IF ( OPACItemsResultsDisplay ) %]
457 [% UNLESS ( singleBranchMode ) %]<span class="shelvingloc">[% available_items_loo.location | html %]</span>[% END %]
458 [% 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 %]
460 ([% available_items_loo.count | html %]),
462 [% END # / FOREACH available_items_loo %]
465 [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS ) %]
466 [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
467 <span id="alternateholdings">[% ALTERNATEHOLDING.holding | html %]</span>,
470 <span class="unavailable">No items available:</span>
472 [% END # / IF SEARCH_RESULT.available_items_loop.size %]
474 <span class="unavailable">
475 [% IF ( SEARCH_RESULT.onloancount ) %] Checked out ([% SEARCH_RESULT.onloancount | html %]), [% END %]
476 [% IF ( SEARCH_RESULT.withdrawncount ) %] Withdrawn ([% SEARCH_RESULT.withdrawncount | html %]), [% END %]
477 [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount | html %]),[% END %][% END %]
478 [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount | html %]),[% END %]
479 [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount | html %]),[% END %]
480 [% IF ( SEARCH_RESULT.onholdcount ) %] On hold ([% SEARCH_RESULT.onholdcount | html %]),[% END %]
481 [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount | html %]),[% END %]
483 </span> <!-- / .results_summary -->
484 [% END # / IF OPACXSLTResultsDisplay %]
486 [% IF ( SEARCH_RESULT.score_avg ) %]
487 <div class="results_summary">
488 [% FOREACH i IN [ 1 2 3 4 5 ] %]
489 [% IF ( SEARCH_RESULT.score_int >= i ) %]
490 <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>
492 <div class="star-rating rater-[% i | html %] star star-rating-applied star-rating-readonly"><a title="[% i | html %]">[% i | html %]</a></div>
495 <span id="babeltheque-rating_total_[% SEARCH_RESULT.biblionumber | html %]"> [% SEARCH_RESULT.score_avg | html %] / 5 (on [% SEARCH_RESULT.num_scores | html %] rates)</span>
497 [% IF ( SEARCH_RESULT.num_critics ) %]
498 <span class="social_data">[% SEARCH_RESULT.num_critics | html %] Internet user critics</span>
500 [% IF ( SEARCH_RESULT.num_critics_pro ) %]
501 <span class="social_data">[% SEARCH_RESULT.num_critics_pro | html %] Professional critics</span>
503 [% IF ( SEARCH_RESULT.num_videos ) %]
504 <span class="social_data">[% SEARCH_RESULT.num_videos | html %] Video extracts</span>
506 [% IF ( SEARCH_RESULT.num_quotations ) %]
507 <span class="social_data">[% SEARCH_RESULT.num_quotations | html %] Quotations</span>
509 </div> <!-- / .results_summary -->
510 [% END # / IF SEARCH_RESULT.score_avg %]
512 [% IF ( LibraryThingForLibrariesID ) %]
513 <div class="ltfl_reviews"></div>
516 [% IF ( TagsShowEnabled && SEARCH_RESULT.TagLoop.size ) %]
517 <div class="results_summary tags">
518 <span class="label">Tags:</span>
520 [% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]
522 <a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term | url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
523 <span class="weight">([% TagLoo.weight_total | html %])</span>
530 [% IF Koha.Preference('virtualshelves') AND SEARCH_RESULT.shelves.count %]
531 <div class="results_summary shelves">
532 <span class="label">Lists:</span>
534 [% FOREACH shelf IN SEARCH_RESULT.shelves %]
536 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]">[% shelf.shelfname | html %]</a>
537 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
544 [% IF ( SEARCH_RESULT.searchhighlightblob ) %]
545 <span class="results_summary">
546 <span class="label">Match:</span>
547 [% SEARCH_RESULT.searchhighlightblob | html %]
551 [% IF ( OpacStarRatings == 'all' ) %]
552 <div class="results_summary ratings">
553 [% SET rating_avg = SEARCH_RESULT.ratings.get_avg_rating() %]
554 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
555 <div class="br-wrapper br-theme-fontawesome-stars">
556 <div class="br-widget br-readonly">
557 [% FOREACH i IN [ 1 2 3 4 5 ] %]
558 [% IF rating_avg_int == i %]
559 <a href="#" class="br-selected br-current"></a>
560 [% ELSIF rating_avg_int > i %]
561 <a href="#" class="br-selected"></a>
569 [% IF SEARCH_RESULT.ratings.count > 0 %]
570 <span id="rating_total_[% SEARCH_RESULT.biblionumber | html %]"> ([% SEARCH_RESULT.ratings.count | html %] votes)</span>
574 </div> <!-- / .results_summary -->
575 [% END # / IF OpacStarRatings %]
577 [% INCLUDE 'title-actions-menu.inc' items=SEARCH_RESULT %]
580 [% INCLUDE "openlibrary-readapi.inc" bib = SEARCH_RESULT %]
584 [% END # / FOREACH SEARCH_RESULT %]
586 </form> <!-- / #bookbag_form -->
588 <form id="hold_form" name="hold_form" method="get" action="/cgi-bin/koha/opac-reserve.pl">
589 <!-- The value will be set by holdBiblioNums() in basket.js -->
590 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value=""/>
592 </div> <!-- / .searchresults -->
594 <div id="bottom-pages">[% INCLUDE 'page-numbers.inc' %]</div>
596 [% END # / IF total %]
598 [%# Display "Not finding what you're looking for" for suggestion or ILL %]
599 [% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername ) || ( Koha.Preference( 'ILLModule' ) == 1 && loggedinusername ) %]
600 <div class="suggestion">
601 Not finding what you're looking for?
603 [% IF Koha.Preference( 'suggestion' ) == 1 %]
604 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
605 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
606 [% ELSIF loggedinusername %]
607 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
610 [% IF Koha.Preference( 'ILLModule' ) == 1 && loggedinusername %]
611 <li>Make an <a href="/cgi-bin/koha/opac-illrequests.pl?op=create">Interlibrary loan request</a></li>
616 </div> <!-- / #userresults -->
617 </div> <!-- /.span10/12 -->
618 </div> <!-- / .row -->
619 </div> <!-- / .container-fluid -->
620 </div><!-- / .main -->
622 [% INCLUDE 'opac-bottom.inc' %]
623 [% BLOCK jsinclude %]
624 [% IF ( LibraryThingForLibrariesID ) %]
625 <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]&systype=koha"></script>
627 [% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %]
628 [% IF ( RecordedBooksEnabled ) %][% Asset.js("js/recordedbooks.js") | $raw %][% END %]
629 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
630 [% Asset.js("js/authtoresults.js") | $raw %]
631 [% Asset.js("lib/hc-sticky.js") | $raw %]
632 [% IF ( OpacHighlightedWords ) %]
633 [% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %]
635 [% IF OpenLibraryCovers || OpenLibrarySearch %]
636 [% Asset.js("js/openlibrary.js") | $raw %]
640 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
641 function holdMultiple() {
642 var checkedBiblioNums = ""; // Separated by "/"
643 var checkedCount = 0;
644 if(document.bookbag_form.biblionumber.length > 0) {
645 for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
646 if (document.bookbag_form.biblionumber[i].checked) {
647 checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/");
653 if (checkedCount > 0) {
654 holdBiblioNums(checkedBiblioNums);
656 alert(MSG_NO_RECORD_SELECTED);
660 function holdBiblioNums(numList) {
661 // numList: biblio numbers separated by "/"
662 $("#hold_form_biblios").attr("value", numList);
663 $("#hold_form").submit();
665 [% END # /IF opacuserlogin && RequestOnOpac %]
667 [% IF ( TagsInputEnabled && loggedinusername ) %]
668 function tagSelected() {
669 var checkedBoxes = $(".searchresults :checkbox:checked");
670 if ($(checkedBoxes).size() == 0) {
671 alert(MSG_NO_RECORD_SELECTED);
673 $("#tagsel_tag").hide();
675 $("#tagsel_form").show();
679 function tagCanceled() {
680 $("#tagsel_form").hide();
681 $("#tagsel_tag").show();
683 $("#tagsel_new").val("");
684 $("#tagsel_status, .tagstatus").empty().hide();
687 function tagAdded() {
688 var checkedBoxes = $(".searchresults :checkbox:checked");
689 if ($(checkedBoxes).size() == 0) {
690 alert(MSG_NO_RECORD_SELECTED);
694 var tag = $("#tagsel_new").val();
695 if (!tag || (tag == "")) {
696 alert(MSG_NO_TAG_SPECIFIED);
701 for (var i = 0; i < $(checkedBoxes).size(); i++) {
702 var box = $(checkedBoxes).get(i);
703 bibs[i] = $(box).val();
706 KOHA.Tags.add_multitags_button(bibs, tag);
709 [% END # /IF TagsInputEnabled && loggedinusername %]
712 function enableCheckboxActions(){
713 // Enable/disable controls if checkboxes are checked
714 var checkedBoxes = $(".checkboxed input:checkbox:checked");
715 var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, #selections-toolbar .links label, #selections-toolbar .links button");
716 if ($(checkedBoxes).size()) {
717 $("#selections").html(_("With selected titles: "));
718 $(controls).removeClass("disabled");
720 $("#selections").html(_("Select titles to: "));
721 $(controls).addClass("disabled");
725 [% IF ( OpacHighlightedWords ) %]
726 var q_array = new Array(); // holds search terms if available
728 function highlightOff() {
729 $("td").removeHighlight();
730 $(".highlight_toggle").toggle();
732 function highlightOn() {
735 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
736 q_array[x] = q_array[x].toLowerCase();
737 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
738 if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
739 $(".title").highlight(q_array[x]);
740 $(".author").highlight(q_array[x]);
741 $(".results_summary").highlight(q_array[x]);
744 $(".highlight_toggle").toggle();
746 [% END # /IF OpacHighlightedWords %]
748 $(document).ready(function(){
750 $(".moretoggle").click(function(e){
752 $(this).siblings(".collapsible-facet").toggle();
753 $(this).siblings(".moretoggle").toggle();
757 [% IF ( OpacHighlightedWords ) %]
758 $('a.title').each(function() {
759 $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
763 $(".cb").click(function(){
764 enableCheckboxActions();
766 enableCheckboxActions();
768 $(".br-readonly a").on("click", function(e){
773 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) || loggedinusername ) %]
774 param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>";
777 [% IF Koha.Preference( 'opacbookbag' ) == 1 OR Koha.Preference('virtualshelves') %]
778 param1 += "<select class=\"disabled\" name=\"addto\" id=\"addto\"><option>"+_("Add to...")+"</option>";
780 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
781 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
783 [% IF Koha.Preference('virtualshelves') %]
784 [% IF loggedinusername AND add_to_some_private_shelves.count %]
785 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
786 [% SET number_of_private_shelves = 0 %]
787 [% FOREACH s IN add_to_some_private_shelves %]
788 [% IF shelfnumber != s.shelfnumber %]
789 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
790 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
791 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
794 param1 += "<\/optgroup>";
796 [% IF add_to_some_public_shelves.count %]
797 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
798 [% SET number_of_public_shelves = 0 %]
799 [% FOREACH s IN add_to_some_public_shelves %]
800 [% IF shelfnumber != s.shelfnumber %]
801 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
802 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
803 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
806 param1 += "<\/optgroup>";
808 [% 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 ) %]
809 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
811 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
812 [% END # /IF virtualshelves %]
813 param1 += "<\/select> <input type=\"submit\" class=\"btn btn-sm btn-primary\" value=\""+_("Save")+"\" />";
814 [% END # /IF opacbookbag || virtualshelves %]
816 $('.resort').change(function() {
817 $('#bookbag_form').submit();
820 $('#results_per_page').change(function() {
821 $('#bookbag_form').submit();
824 $("span.clearall").html("<a id=\"CheckNone\" class=\"btn btn-link btn-sm \" href=\"#\">"+_("Clear all")+"<\/a>");
825 $("span.checkall").html("<a id=\"CheckAll\" class=\"btn btn-link btn-sm \" href=\"#\">"+_("Select all")+"<\/a>");
827 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
828 $("span.addto").html(param1);
830 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
831 $("span.addto").html(param1);
835 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
836 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
837 $("#addto").on("change",function(){
840 $(".addto").find("input:submit").click(function(){
845 $("#addto").on("click",function(){
853 addtoOption = $("#addto").find("option:selected");
854 addtoval = addtoOption.val();
855 if(addtoval == "addtolist"){
856 var shelfnumber = addtoOption.attr("id").replace("s","");
858 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
861 } else if(addtoval == "newlist"){
862 [% IF ( loggedinusername ) %]if (vShelfAdd()) {
863 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
865 alert(_("You must be logged in to create or add to lists"));
868 } else if(addtoval == "morelists"){
869 [% IF ( loggedinusername ) %]
871 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
874 alert(_("You must be logged in to create or add to lists"));
878 if(addtoval == "addtocart" || $("#addto").attr("class") == "addtocart"){
883 $("#CheckAll").click(function(){
884 $("#bookbag_form").checkCheckboxes();
885 enableCheckboxActions();
888 $("#CheckNone").click(function(){
889 $("#bookbag_form").unCheckCheckboxes();
890 enableCheckboxActions();
894 [% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %]
895 $("#placehold").html("<button class=\"btn btn-link btn-sm hold disabled\" type=\"submit\"><i class=\"fa fa-fw fa-bookmark\" aria-hidden=\"true\"></i>" + _("Place hold") + "</button>");
896 $("#placehold").find("button.hold").click(function(){
902 [% IF ( query_desc ) %]
903 [% IF ( OpacHighlightedWords ) %]
904 q_array = query_desc.split(" ");
905 // ensure that we don't have "" at the end of the array, which can
906 // break the highlighter
907 while (q_array.length > 0 && q_array[q_array.length-1] == "") {
908 q_array = q_array.splice(0,-1);
911 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
912 $("#highlight_toggle_off").show().click(function() {highlightOff();});
913 [% END # /IF OpacHighlightedWords %]
914 [% IF ( OverDriveEnabled ) %]
915 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>' );
916 $( '#numresults' ) .append( ' ' )
917 .append( $overdrive_results );
918 KOHA.OverDrive.Search( "[% Koha.Preference('OverDriveLibraryID') | html %]", querystring, 1, 0, function( data ) {
920 $overdrive_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('OverDrive') );
924 if ( data.totalItems ) {
925 $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>' );
927 $overdrive_results.remove();
930 [% END # /IF OverDriveEnabled %]
931 [% IF ( RecordedBooksEnabled ) %]
932 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>' );
933 $( '#numresults' ) .append( ' ' )
934 .append( $recordedbooks_results );
935 KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" | html %], null, function( data ) {
937 $recordedbooks_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('RecordedBooks') + ': ' + data.error);
941 // data.total can be either 42 or "60+"
942 if ( typeof(data.total) === 'string' && data.total.charAt(0) > 0 || typeof(data.total) === 'number' && data.total > 0 ) {
943 $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>' );
945 $recordedbooks_results.remove();
948 [% END # /IF RecordedBooksEnabled %]
949 [% IF ( OpenLibrarySearch ) %]
950 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>' );
951 $( '#numresults' ) .append( ' ' )
952 .append( $openlibrary_results );
953 KOHA.OpenLibrary.search( querystring, null, function( data ) {
955 $openlibrary_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('OpenLibrary') );
959 if ( data.numFound > 0 ) {
960 $openlibrary_results.html( '<a href="' + KOHA.OpenLibrary.searchUrl(querystring) + '" target="openlibrary">' + MSG_RESULTS_FOUND_IN_COLLECTION.format(data.numFound, 'OpenLibrary') + '</a>' );
962 $openlibrary_results.remove();
965 [% END # /IF OpenLibrarySearch %]
966 [% END # /IF query_desc %]
968 [% IF ( TagsInputEnabled && loggedinusername ) %]
969 $("#tagsel_tag").show().click(function(){
973 $("#tagsel_cancel").click(function(){
977 $("#tagsel_button").click(function(){
982 $(".tag_add").click(function(){
983 var thisid = $(this).attr("id");
984 thisid = thisid.replace("tag_add","");
985 $(this).addClass("hidden");
986 $("#tagform"+thisid).show();
987 $("#newtag"+thisid).focus();
988 $("#newtag"+thisid+"_status").empty().hide();
991 $(".cancel_tag_add").click(function(){
992 var thisid = $(this).attr("id");
993 thisid = thisid.replace("cancel","");
994 $("#tagform"+thisid).hide();
995 $("#tag_add"+thisid).removeClass("hidden");
996 $("#newtag"+thisid).val("");
997 $("#newtag"+thisid+"_status").empty().hide();
1000 $(".tagbutton").click(function(){
1001 var thisid = $(this).attr("title");
1002 var tag = $("#newtag"+thisid).val();
1003 if (!tag || (tag == "")) {
1004 alert(MSG_NO_TAG_SPECIFIED);
1007 KOHA.Tags.add_tag_button(thisid, tag);
1010 [% END # /IF TagsInputEnabled && loggedinusername %]
1012 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
1013 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
1014 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
1015 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1016 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
1019 [% IF ( DidYouMean ) %]
1020 $("#didyoumean").load("/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring |uri %]",
1022 $(this).addClass("dym-loaded");
1026 $("input.newtag").on('keydown', function(e){
1027 if (e.keyCode == 13) { e.preventDefault(); }
1030 Sticky = $("#floating");
1032 stickTo: ".searchresults",
1033 stickyClass: "floating"