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('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=rss2" />
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 maincontent">
58 <div class="row-fluid">
60 <strong>No results found!</strong>
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=rss2" class="rsssearchlink noprint">
65 <i class="fa fa-rss rsssearchicon" 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 id="maincontent" class="container-fluid">
87 <div class="row-fluid">
88 [% IF ( opacfacets && total ) %]
90 <div id="facetcontainer">
92 [% INCLUDE 'opac-facets.inc' %]
98 [% IF ( opacfacets && total ) %]<div class="span10 maincontent">[% ELSE %]<div class="span12 maincontent">[% END %]
100 [% IF ( searchdesc ) %]
102 [% IF ( total ) %]<strong>Your search returned [% total | html %] results.</strong>
105 [% FOREACH relate IN related %]
106 [% relate.related_search | html %]
110 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&format=rss2" class="rsssearchlink noprint">
111 <i class="fa fa-rss rsssearchicon" title="Subscribe to this search"></i>
113 [% END # / IF total %]
115 [% END # / IF searchdesc %]
117 <div id="userresults">
118 [% IF ( DidYouMean ) %]
119 <div id="didyoumean">Not what you expected? Check for <a href="/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring |uri %]">suggestions</a></div>
122 <div id="top-pages">[% INCLUDE 'page-numbers.inc' %]</div>
124 [% IF ( koha_spsuggest ) %]
126 <ul style="list-style: none;">
127 [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
129 <a href="/cgi-bin/koha/opac-search.pl?q=[% SPELL_SUGGES.spsuggestion | uri %]">[% SPELL_SUGGES.spsuggestion | html %]</a>
133 [% END # / IF koha_spsuggest%]
135 [% IF ( ReturnPath ) %]
136 <div class="returntosearch">
137 <p><a href="[% ReturnPath | url %]">Return to the last advanced search</a></p>
141 [% IF ( query_error ) %]
142 <div class="dialog alert">
144 [% query_error | html %]
148 <!-- Search Results Table -->
151 <div class="searchresults">
152 <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
153 [% IF ( searchdesc ) %]
154 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
155 <input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/>
157 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
158 <input type="hidden" name="[% LIMIT_INPUT.input_name | html %]" value="[% LIMIT_INPUT.input_value | html %]"/>
160 [% END # IF /searchdesc %]
162 <div id="toolbar" class="toolbar clearfix">
163 [% IF ( OpacHighlightedWords ) %]
164 <div class="highlight_controls noprint">
165 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
166 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
170 <div class="sort_by pull-right">
171 <select id="sort_by" class="resort" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select>
172 <input type="submit" class="btn btn-small clearfix" id="sortsubmit" value="Go" />
175 </div> <!-- / #toolbar -->
177 <div id="selections-toolbar" class="toolbar noprint">
178 <!-- checkall, clearall are now needed for placehold -->
179 <span class="checkall"></span>
180 <span class="clearall"></span> <span class="sep">|</span>
183 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
184 <span class="addto"></span>
186 <span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span>
188 [% IF ( TagsInputEnabled && loggedinusername ) %]
189 <span id="tagsel_span">
190 <input id="tagsel_tag" class="disabled" type="submit" value="Tag"/>
192 <div id="tagsel_form" style="display:none">
193 <label for="tagsel_new">New tag:</label>
194 <input type="text" name="tagsel_new" id="tagsel_new" maxlength="100" />
195 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="Add" type="submit" value="Add" />
196 <a href="#" id="tagsel_cancel">(done)</a>
198 <div id="tagsel_status" class="tagsel_tatus" style="display:none;">
202 </span> <!-- / .links -->
203 </div> <!-- / #selections-toolbar -->
205 <!-- TABLE RESULTS START -->
206 <table class="table table-striped">
208 <!-- Actual Search Results -->
209 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
211 [% # Cell 1: Checkbox %]
212 <td class="select selectcol">
213 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
214 <input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" /> <label for="bib[% SEARCH_RESULT.biblionumber | html %]"></label>
216 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
217 <input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" /> <label for="bib[% SEARCH_RESULT.biblionumber | html %]"></label>
219 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
220 [% UNLESS ( SEARCH_RESULT.norequests ) %]
221 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]<input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" /> <label for="bib[% SEARCH_RESULT.biblionumber | html %]"></label>
224 [% END # IF RequestOnOpac %]
225 [% END # IF virtualshelves %]
226 [% END # IF opacbookbag%]
228 [% # Cell 2: Show result number if OpacHiddenItems is empty %]
229 <td class="select selectcol">
230 [% UNLESS suppress_result_number %]
231 [% SEARCH_RESULT.result_number | html %].
235 [% IF ( !item_level_itypes && !noItemTypeImages ) %]
236 [% # Cell 3: Show item type image %]
237 <td class="itypecol">
238 [% IF ( SEARCH_RESULT.imageurl ) %]
239 <img src="[% SEARCH_RESULT.imageurl | html %]" title="[% SEARCH_RESULT.description | html %]" alt="[% SEARCH_RESULT.description | html %]" />
241 [% IF ( SEARCH_RESULT.score_avg ) %]
242 <img src="[% themelang | html %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/>
247 [% # Cell 4: Search result details and controls %]
248 <td class="bibliocol">
249 <div class="coverimages itemtype_[% SEARCH_RESULT.itemtype | html %]">
250 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">
251 [% IF ( OPACLocalCoverImages ) %]
252 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
255 [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
256 <span title="[% SEARCH_RESULT.biblionumber | html %]" id="adlibris-thumbnail[% loop.count | html %]">
257 <img src="[% AdlibrisURL | html %]?isbn=[% SEARCH_RESULT.normalized_isbn | html %]"
258 alt="Adlibris thumbnail for ISBN: [% SEARCH_RESULT.normalized_isbn | html %]" class="adlibris-cover" />
261 [% IF ( OPACAmazonCoverImages ) %]
262 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
263 <span title="[% SEARCH_RESULT.biblionumber | 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>
265 <span class="no-image">No cover image available</span>
269 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
270 [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
271 <span title="[% SEARCH_RESULT.biblionumber | 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>
273 <span class="no-image">No cover image available</span>
277 [% IF ( GoogleJackets ) %]
278 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
279 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></span>
281 <span class="no-image">No cover image available</span>
285 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
286 [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
288 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
290 <span class="no-image">No cover image available</span>
294 [% IF OpenLibraryCovers %]
295 [% IF SEARCH_RESULT.normalized_isbn %]
296 <span title="[% SEARCH_RESULT.biblionumber | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="openlibrary-thumbnail[% loop.count | html %]"></span>
298 <span class="no-image">No cover image available</span>
302 [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %]
303 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
305 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
307 <span class="no-image">No cover image available</span>
312 [% IF ( BakerTaylorEnabled && BakerTaylorBookstoreURL ) %]
313 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
315 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]">
316 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
319 <span class="no-image">No cover image available</span>
323 [% IF ( IDreamBooksResults && SEARCH_RESULT.normalized_isbn ) %]
324 <div class="idbresult" style="display: none;">
325 [% IF ( IDreamBooksReviews ) %]
326 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]#idb_critic_reviews">
328 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
330 [% SEARCH_RESULT.normalized_isbn | html %]</a>
334 [% IF ( COinSinOPACResults && SEARCH_RESULT.coins ) %]
335 <!-- COinS / Openurl -->
336 <span class="Z3988" title="[% SEARCH_RESULT.coins | html %]"></span>
339 [% IF ( OPACXSLTResultsDisplay ) %]
340 [% SEARCH_RESULT.XSLTResultsRecord | $raw %]
342 [% IF ( BiblioDefaultViewmarc ) %]
343 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
345 [% IF ( BiblioDefaultViewisbd ) %]
346 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
348 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
352 [% IF ( SEARCH_RESULT.title ) %]
353 [% SEARCH_RESULT.title | html %]
358 [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
359 , [% subtitl.subfield | html %]
362 [% IF ( SEARCH_RESULT.author ) %]
363 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>
368 <span class="results_summary publisher">
369 <span class="label">Publication:</span>
370 [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place | html %] [% END %]
371 [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode | html %][% END %]
372 [% IF ( SEARCH_RESULT.publicationyear ) %]
373 [% SEARCH_RESULT.publicationyear | html %]
375 [% IF ( SEARCH_RESULT.copyrightdate ) %]
376 [% SEARCH_RESULT.copyrightdate | html %]
379 [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages | html %][% END %]
380 [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes | html %][% END %]
381 [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size | html %][% END %]
382 [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp | html %])</i>[% END %]
385 [% IF ( SEARCH_RESULT.summary ) %]
386 <span class="result_summary">
387 [% SEARCH_RESULT.summary | html %]
391 [% IF ( SEARCH_RESULT.copyrightdate ) %]
392 <span class="results_summary date">
393 <span class="label">Date:</span>
394 [% SEARCH_RESULT.copyrightdate | html %]
398 <span class="results_summary">
399 <span class="label">Availability:</span>
400 [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
401 <span class="available"><strong>Items available:</strong>
402 [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
403 [% IF available_items_loo.this_branch %]
404 <span class="highlight-row-results">
409 [% IF ( singleBranchMode ) %]
410 <span class="shelvingloc">[% available_items_loo.location | html %]</span>
412 [% available_items_loo.branchname | html %]
415 [% IF ( OPACItemsResultsDisplay ) %]
416 [% UNLESS ( singleBranchMode ) %]<span class="shelvingloc">[% available_items_loo.location | html %]</span>[% END %]
417 [% 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 %]
419 ([% available_items_loo.count | html %]),
421 [% END # / FOREACH available_items_loo %]
424 [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS ) %]
425 [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
426 <span id="alternateholdings">[% ALTERNATEHOLDING.holding | html %]</span>,
429 <span class="unavailable">No items available:</span>
431 [% END # / IF SEARCH_RESULT.available_items_loop.size %]
433 <span class="unavailable">
434 [% IF ( SEARCH_RESULT.onloancount ) %] Checked out ([% SEARCH_RESULT.onloancount | html %]), [% END %]
435 [% IF ( SEARCH_RESULT.withdrawncount ) %] Withdrawn ([% SEARCH_RESULT.withdrawncount | html %]), [% END %]
436 [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount | html %]),[% END %][% END %]
437 [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount | html %]),[% END %]
438 [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount | html %]),[% END %]
439 [% IF ( SEARCH_RESULT.onholdcount ) %] On hold ([% SEARCH_RESULT.onholdcount | html %]),[% END %]
440 [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount | html %]),[% END %]
442 </span> <!-- / .results_summary -->
443 [% END # / IF OPACXSLTResultsDisplay %]
445 [% IF ( SEARCH_RESULT.score_avg ) %]
446 <div class="results_summary">
447 [% FOREACH i IN [ 1 2 3 4 5 ] %]
448 [% IF ( SEARCH_RESULT.score_int >= i ) %]
449 <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>
451 <div class="star-rating rater-[% i | html %] star star-rating-applied star-rating-readonly"><a title="[% i | html %]">[% i | html %]</a></div>
454 <span id="babeltheque-rating_total_[% SEARCH_RESULT.biblionumber | html %]"> [% SEARCH_RESULT.score_avg | html %] / 5 (on [% SEARCH_RESULT.num_scores | html %] rates)</span>
456 [% IF ( SEARCH_RESULT.num_critics ) %]
457 <span class="social_data">[% SEARCH_RESULT.num_critics | html %] Internet user critics</span>
459 [% IF ( SEARCH_RESULT.num_critics_pro ) %]
460 <span class="social_data">[% SEARCH_RESULT.num_critics_pro | html %] Professional critics</span>
462 [% IF ( SEARCH_RESULT.num_videos ) %]
463 <span class="social_data">[% SEARCH_RESULT.num_videos | html %] Video extracts</span>
465 [% IF ( SEARCH_RESULT.num_quotations ) %]
466 <span class="social_data">[% SEARCH_RESULT.num_quotations | html %] Quotations</span>
468 </div> <!-- / .results_summary -->
469 [% END # / IF SEARCH_RESULT.score_avg %]
471 [% IF ( LibraryThingForLibrariesID ) %]
472 <div class="ltfl_reviews"></div>
475 [% IF ( TagsShowEnabled && SEARCH_RESULT.TagLoop.size ) %]
476 <div class="results_summary tags">
477 <span class="label">Tags:</span>
479 [% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]
481 <a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
482 <span class="weight">([% TagLoo.weight_total | html %])</span>
489 [% IF Koha.Preference('virtualshelves') AND SEARCH_RESULT.shelves.count %]
490 <div class="results_summary shelves">
491 <span class="label">Lists:</span>
493 [% FOREACH shelf IN SEARCH_RESULT.shelves %]
494 <li><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]">[% shelf.shelfname | html %]</a></li>
495 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
502 [% IF ( SEARCH_RESULT.searchhighlightblob ) %]
503 <span class="results_summary">
504 <span class="label">Match:</span>
505 [% SEARCH_RESULT.searchhighlightblob | html %]
509 [% IF ( OpacStarRatings == 'all' ) %]
510 <div class="results_summary ratings">
511 [% SET rating_avg = SEARCH_RESULT.ratings.get_avg_rating() %]
512 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
513 <div class="br-wrapper br-theme-fontawesome-stars">
514 <div class="br-widget br-readonly">
515 [% FOREACH i IN [ 1 2 3 4 5 ] %]
516 [% IF rating_avg_int == i %]
517 <a href="#" class="br-selected br-current"></a>
518 [% ELSIF rating_avg_int > i %]
519 <a href="#" class="br-selected"></a>
527 [% IF SEARCH_RESULT.ratings.count > 0 %]
528 <span id="rating_total_[% SEARCH_RESULT.biblionumber | html %]"> ([% SEARCH_RESULT.ratings.count | html %] votes)</span>
532 </div> <!-- / .results_summary -->
533 [% END # / IF OpacStarRatings %]
535 <div class="actions-menu noprint">
536 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
537 [% UNLESS ( SEARCH_RESULT.norequests ) %]
538 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
539 <span class="actions"><a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Place hold</a></span><!-- add back when available 0 holds in queue-->
540 [% END # / IF opacuserlogin && holdable %]
541 [% END # UNLESS SEARCH_RESULT.norequests %]
542 [% END # IF RequestOnOpac %]
544 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
545 [% IF SEARCH_RESULT.artreqpossible %]
546 <span class="actions"><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Request article</a></span>
550 [% IF ( TagsInputEnabled ) %]
551 [% IF ( loggedinusername ) %]
552 <span class="actions"><a class="tag_add" id="tag_add[% SEARCH_RESULT.biblionumber | html %]" href="#">Add tag</a></span>
553 <div id="tagform[% SEARCH_RESULT.biblionumber | html %]" class="tag_results_input" style="display:none;">
554 <label for="newtag[% SEARCH_RESULT.biblionumber | html %]">New tag(s), separated by a comma:</label>
555 <input type="text" name="newtag[% SEARCH_RESULT.biblionumber | html %]" id="newtag[% SEARCH_RESULT.biblionumber | html %]" class="newtag" maxlength="100" />
556 <input name="tagbutton" class="btn btn-small tagbutton" title="[% SEARCH_RESULT.biblionumber | html %]" type="submit" value="Add" />
557 <a class="cancel_tag_add" id="cancel[% SEARCH_RESULT.biblionumber | html %]" href="#">(done)</a>
559 <span id="newtag[% SEARCH_RESULT.biblionumber | html %]_status" class="tagstatus" style="display:none;">
562 [% ELSIF ( loop.first ) %]
563 <span class="actions"><span id="login4tags">Log in to add tags.</span></span>
564 [% END # IF loggedinusername %]
565 [% END # if TagsInputEnabled %]
567 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
568 <span class="actions"><a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]'); return false;">Save to lists</a></span>
571 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
572 [% IF ( SEARCH_RESULT.incart ) %]
573 <span class="actions"><a data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="addtocart cart[% SEARCH_RESULT.biblionumber | html %]" href="#">In your cart</a> <a data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="cartRemove cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a></span>
575 <span class="actions"><a data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="addtocart cart[% SEARCH_RESULT.biblionumber | html %]" href="#">Add to your cart</a> <a style="display:none;" data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" class="cartRemove cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a></span>
577 [% END # / IF opacbookbag %]
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 [% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername || Koha.Preference( 'ILLModule' ) == 1 ) %]
599 <div class="suggestion">
600 Not finding what you're looking for?
602 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
603 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
605 [% IF ( loggedinusername ) %]
606 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
609 [% IF Koha.Preference( 'ILLModule' ) == 1 && loggedinusername %]
610 <li>Make an <a href="/cgi-bin/koha/opac-illrequests.pl?op=create">Interlibrary loan request</a></li>
615 </div> <!-- / #userresults -->
616 </div> <!-- /.span10/12 -->
617 </div> <!-- / .row-fluid -->
618 </div> <!-- / .container-fluid -->
619 </div><!-- / .main -->
621 [% INCLUDE 'opac-bottom.inc' %]
622 [% BLOCK jsinclude %]
623 [% IF ( LibraryThingForLibrariesID ) %]
624 <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]&systype=koha"></script>
626 [% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %]
627 [% IF ( RecordedBooksEnabled ) %][% Asset.js("js/recordedbooks.js") | $raw %][% END %]
628 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
629 [% Asset.js("js/authtoresults.js") | $raw %]
630 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %]
633 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
634 function holdMultiple() {
635 var checkedBiblioNums = ""; // Separated by "/"
636 var checkedCount = 0;
637 if(document.bookbag_form.biblionumber.length > 0) {
638 for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
639 if (document.bookbag_form.biblionumber[i].checked) {
640 checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/");
646 if (checkedCount > 0) {
647 holdBiblioNums(checkedBiblioNums);
649 alert(MSG_NO_RECORD_SELECTED);
653 function holdBiblioNums(numList) {
654 // numList: biblio numbers separated by "/"
655 $("#hold_form_biblios").attr("value", numList);
656 $("#hold_form").submit();
659 [% IF ( TagsInputEnabled && loggedinusername ) %]
660 function tagSelected() {
661 var checkedBoxes = $(".searchresults :checkbox:checked");
662 if ($(checkedBoxes).size() == 0) {
663 alert(MSG_NO_RECORD_SELECTED);
665 $("#tagsel_tag").hide();
667 $("#tagsel_form").show();
671 function tagCanceled() {
672 $("#tagsel_form").hide();
673 $("#tagsel_tag").show();
675 $("#tagsel_new").val("");
676 $("#tagsel_status, .tagstatus").empty().hide();
679 function tagAdded() {
680 var checkedBoxes = $(".searchresults :checkbox:checked");
681 if ($(checkedBoxes).size() == 0) {
682 alert(MSG_NO_RECORD_SELECTED);
686 var tag = $("#tagsel_new").val();
687 if (!tag || (tag == "")) {
688 alert(MSG_NO_TAG_SPECIFIED);
693 for (var i = 0; i < $(checkedBoxes).size(); i++) {
694 var box = $(checkedBoxes).get(i);
695 bibs[i] = $(box).val();
698 KOHA.Tags.add_multitags_button(bibs, tag);
703 function enableCheckboxActions(){
704 // Enable/disable controls if checkboxes are checked
705 var checkedBoxes = $(".checkboxed input:checkbox:checked");
706 var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, , #selections-toolbar .links label")
707 if ($(checkedBoxes).size()) {
708 $("#selections").html(_("With selected titles: "));
709 $(controls).removeClass("disabled");
711 $("#selections").html(_("Select titles to: "));
712 $(controls).addClass("disabled");
716 [% IF ( OpacHighlightedWords ) %]
717 var q_array = new Array(); // holds search terms if available
719 function highlightOff() {
720 $("td").removeHighlight();
721 $(".highlight_toggle").toggle();
723 function highlightOn() {
726 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
727 q_array[x] = q_array[x].toLowerCase();
728 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
729 if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
730 $(".title").highlight(q_array[x]);
731 $(".author").highlight(q_array[x]);
732 $(".results_summary").highlight(q_array[x]);
735 $(".highlight_toggle").toggle();
738 $(document).ready(function(){
739 [% IF ( OpacHighlightedWords ) %]
740 $('a.title').each(function() {
741 $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
745 $(".cb").click(function(){
746 enableCheckboxActions();
748 enableCheckboxActions();
750 $(".br-readonly a").on("click", function(e){
754 [% IF ( IDreamBooksResults ) %]
755 $('.idbresult').each(function() {
756 var isbn = $(this).children('a').text().replace(/\s*/,'');
759 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
760 // Use Microsoft XDR for IE version 8 or above
761 var xdr = new XDomainRequest();
762 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
763 xdr.onload = function() {
764 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
765 eval(json); // json is now a regular JSON object
766 if(json.total_results > 0 && json.book.rating > 0){
767 $(element).children('a').html("<img src='"+json.book.to_read_or_not_small+"' alt='"+json.book.title+_(" by ")+json.book.author+"' title='"+_("Rating based on reviews of ")+json.book.title+"'>"+json.book.rating+"%");
775 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
776 if(json.total_results > 0 && json.book.rating > 0){
777 $(element).children('a').html("<img src='"+json.book.to_read_or_not_small+"' alt='"+json.book.title+_(" by ")+json.book.author+"' title='"+_("Rating based on reviews of ")+json.book.title+"'>"+json.book.rating+"%");
788 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) || loggedinusername ) %]
789 param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>";
792 [% IF Koha.Preference( 'opacbookbag' ) == 1 OR Koha.Preference('virtualshelves') %]
793 param1 += "<select class=\"disabled\" name=\"addto\" id=\"addto\"><option>"+_("Add to...")+"</option>";
795 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
796 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
798 [% IF Koha.Preference('virtualshelves') %]
799 [% IF loggedinusername AND add_to_some_private_shelves.count %]
800 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
801 [% SET number_of_private_shelves = 0 %]
802 [% FOREACH s IN add_to_some_private_shelves %]
803 [% IF shelfnumber != s.shelfnumber %]
804 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
805 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
806 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
809 param1 += "<\/optgroup>";
811 [% IF add_to_some_public_shelves.count %]
812 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
813 [% SET number_of_public_shelves = 0 %]
814 [% FOREACH s IN add_to_some_public_shelves %]
815 [% IF shelfnumber != s.shelfnumber %]
816 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
817 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
818 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
821 param1 += "<\/optgroup>";
823 [% 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 ) %]
824 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
826 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
828 param1 += "<\/select> <input type=\"submit\" class=\"btn btn-small\" value=\""+_("Save")+"\" />";
831 $('#sortsubmit').hide();
832 $('.resort').change(function() {
833 $('#bookbag_form').submit();
835 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
836 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
838 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
839 $("span.addto").html(param1);
841 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
842 $("span.addto").html(param1);
846 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
847 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
848 $("#addto").on("change",function(){
851 $(".addto").find("input:submit").click(function(){
856 $("#addto").on("click",function(){
864 addtoOption = $("#addto").find("option:selected");
865 addtoval = addtoOption.val();
866 if(addtoval == "addtolist"){
867 var shelfnumber = addtoOption.attr("id").replace("s","");
869 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
872 } else if(addtoval == "newlist"){
873 [% IF ( loggedinusername ) %]if (vShelfAdd()) {
874 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
876 alert(_("You must be logged in to create or add to lists"));
879 } else if(addtoval == "morelists"){
880 [% IF ( loggedinusername ) %]
882 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
885 alert(_("You must be logged in to create or add to lists"));
889 if(addtoval == "addtocart" || $("#addto").attr("class") == "addtocart"){
894 $("#CheckAll").click(function(){
895 $("#bookbag_form").checkCheckboxes();
896 enableCheckboxActions();
899 $("#CheckNone").click(function(){
900 $("#bookbag_form").unCheckCheckboxes();
901 enableCheckboxActions();
905 [% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %]
906 $("#placehold").html("<input class=\"hold disabled\" type=\"submit\" value=\""+_("Place hold")+"\"/>");
907 $("#placehold").find("input:submit").click(function(){
913 [% IF ( query_desc ) %]
914 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
915 var querystring = "[% querystring |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
916 [% IF ( OpacHighlightedWords ) %]
917 q_array = query_desc.split(" ");
918 // ensure that we don't have "" at the end of the array, which can
919 // break the highlighter
920 while (q_array.length > 0 && q_array[q_array.length-1] == "") {
921 q_array = q_array.splice(0,-1);
924 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
925 $("#highlight_toggle_off").show().click(function() {highlightOff();});
927 [% IF ( OverDriveEnabled ) %]
928 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>' );
929 $( '#numresults' ) .append( ' ' )
930 .append( $overdrive_results );
931 KOHA.OverDrive.Search( "[% Koha.Preference('OverDriveLibraryID') | html %]", querystring, 1, 0, function( data ) {
933 $overdrive_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('OverDrive') );
937 if ( data.totalItems ) {
938 $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>' );
940 $overdrive_results.remove();
944 [% IF ( RecordedBooksEnabled ) %]
945 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>' );
946 $( '#numresults' ) .append( ' ' )
947 .append( $recordedbooks_results );
948 KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" | html %], null, function( data ) {
950 $recordedbooks_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('RecordedBooks') + ': ' + data.error);
954 // data.total can be either 42 or "60+"
955 if ( typeof(data.total) === 'string' && data.total.charAt(0) > 0 || typeof(data.total) === 'number' && data.total > 0 ) {
956 $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>' );
958 $recordedbooks_results.remove();
962 [% IF ( OpenLibrarySearch ) %]
963 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>' );
964 $( '#numresults' ) .append( ' ' )
965 .append( $openlibrary_results );
966 KOHA.OpenLibrary.search( querystring, null, function( data ) {
968 $openlibrary_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('OpenLibrary') );
972 if ( data.numFound > 0 ) {
973 $openlibrary_results.html( '<a href="' + KOHA.OpenLibrary.searchUrl(querystring) + '" target="openlibrary">' + MSG_RESULTS_FOUND_IN_COLLECTION.format(data.numFound, 'OpenLibrary') + '</a>' );
975 $openlibrary_results.remove();
981 [% IF ( TagsInputEnabled && loggedinusername ) %]
982 $("#tagsel_tag").click(function(){
986 $("#tagsel_cancel").click(function(){
990 $("#tagsel_button").click(function(){
995 $(".tag_add").click(function(){
996 var thisid = $(this).attr("id");
997 thisid = thisid.replace("tag_add","");
998 $(this).addClass("hidden");
999 $("#tagform"+thisid).show();
1000 $("#newtag"+thisid).focus();
1001 $("#newtag"+thisid+"_status").empty().hide();
1004 $(".cancel_tag_add").click(function(){
1005 var thisid = $(this).attr("id");
1006 thisid = thisid.replace("cancel","");
1007 $("#tagform"+thisid).hide();
1008 $("#tag_add"+thisid).removeClass("hidden");
1009 $("#newtag"+thisid).val("");
1010 $("#newtag"+thisid+"_status").empty().hide();
1013 $(".tagbutton").click(function(){
1014 var thisid = $(this).attr("title");
1015 var tag = $("#newtag"+thisid).val();
1016 if (!tag || (tag == "")) {
1017 alert(MSG_NO_TAG_SPECIFIED);
1020 KOHA.Tags.add_tag_button(thisid, tag);
1025 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
1026 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
1027 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
1028 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1029 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
1032 [% IF ( DidYouMean ) %]
1033 $("#didyoumean").load("/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring |uri %]",
1035 $(this).addClass("dym-loaded");
1039 $("input.newtag").on('keydown', function(e){
1040 if (e.keyCode == 13) { e.preventDefault(); }