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') %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog ›
11 [% IF ( searchdesc ) %]
12 Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]
14 You did not specify any search criteria.
16 [% INCLUDE 'doc-head-close.inc' %]
17 [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %]
18 [% BLOCK cssinclude %]
19 [% Asset.css("css/jquery.rating.css") | $raw %]
23 <link rel="alternate" type="application/rss+xml" title="[% LibraryName | html %] Search RSS feed" href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi |url %]&count=[% countrss |uri %]&sort_by=acqdate_dsc&format=rss2" />
26 [% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %]
27 [% INCLUDE 'masthead.inc' %]
30 <ul class="breadcrumb">
31 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
33 [% IF ( searchdesc ) %]
34 <a href="#">Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]</a>
36 <a href="#">You did not specify any search criteria</a>
41 [% UNLESS ( total ) %]
42 <div class="container-fluid maincontent">
43 <div class="row-fluid">
45 <strong>No results found!</strong>
47 [% IF ( searchdesc ) %]
48 No results found for that in [% LibraryName | html %] catalog. <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi | url %]&format=rss2" class="rsssearchlink noprint"><img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a>
50 You did not specify any search criteria.
53 [% IF ( ReturnPath ) %]
54 <div class="returntosearch">
55 <p><a href="[% ReturnPath | url %]">Return to the last advanced search</a></p>
58 [% IF ( OPACNoResultsFound ) %]
59 <div id="noresultsfound">
60 [% OPACNoResultsFound | $raw %]
63 </div> <!-- / .span12 -->
64 </div> <!-- / .row-fluid -->
65 </div> <!-- / .container-fluid -->
66 [% END # / UNLESS searchdesc %]
68 <div id="maincontent" class="container-fluid">
69 <div class="row-fluid">
70 [% IF ( opacfacets && total ) %]
72 <div id="facetcontainer">
74 [% INCLUDE 'opac-facets.inc' %]
80 [% IF ( opacfacets && total ) %]<div class="span10 maincontent">[% ELSE %]<div class="span12 maincontent">[% END %]
82 [% IF ( searchdesc ) %]
84 [% IF ( total ) %]<strong>Your search returned [% total | html %] results.</strong>
87 [% FOREACH relate IN related %]
88 [% relate.related_search | html %]
92 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi | url %]&count=[% countrss | uri %]&sort_by=acqdate_dsc&format=rss2" class="rsssearchlink noprint"><img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" class="rsssearchicon"/></a>
93 [% END # / IF total %]
95 [% END # / IF searchdesc %]
97 <div id="userresults">
98 [% IF ( DidYouMean ) %]
99 <div id="didyoumean">Not what you expected? Check for <a href="/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring |uri %]">suggestions</a></div>
102 <div id="top-pages">[% INCLUDE 'page-numbers.inc' %]</div>
104 [% IF ( koha_spsuggest ) %]
106 <ul style="list-style: none;">
107 [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
109 <a href="/cgi-bin/koha/opac-search.pl?q=[% SPELL_SUGGES.spsuggestion | uri %]">[% SPELL_SUGGES.spsuggestion | html %]</a>
113 [% END # / IF koha_spsuggest%]
115 [% IF ( ReturnPath ) %]
116 <div class="returntosearch">
117 <p><a href="[% ReturnPath | uri %]">Return to the last advanced search</a></p>
121 [% IF ( query_error ) %]
122 <div class="dialog alert">
124 [% query_error | html %]
128 <!-- Search Results Table -->
131 <div class="searchresults">
132 <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
133 [% IF ( searchdesc ) %]
134 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
135 <input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/>
137 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
138 <input type="hidden" name="[% LIMIT_INPUT.input_name | html %]" value="[% LIMIT_INPUT.input_value | html %]"/>
140 [% END # IF /searchdesc %]
142 <div id="toolbar" class="toolbar clearfix">
143 [% IF ( OpacHighlightedWords ) %]
144 <div class="highlight_controls noprint">
145 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
146 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
150 <div class="sort_by pull-right">
151 <select id="sort_by" class="resort" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select>
152 <input type="submit" class="btn btn-small clearfix" id="sortsubmit" value="Go" />
155 </div> <!-- / #toolbar -->
157 <div id="selections-toolbar" class="toolbar noprint">
158 <!-- checkall, clearall are now needed for placehold -->
159 <span class="checkall"></span>
160 <span class="clearall"></span> <span class="sep">|</span>
163 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
164 <span class="addto"></span>
166 <span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span>
168 [% IF ( TagsInputEnabled && loggedinusername ) %]
169 <span id="tagsel_span">
170 <input id="tagsel_tag" class="disabled" type="submit" value="Tag"/>
172 <div id="tagsel_form" style="display:none">
173 <label for="tagsel_new">New tag:</label>
174 <input type="text" name="tagsel_new" id="tagsel_new" maxlength="100" />
175 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="Add" type="submit" value="Add" />
176 <a href="#" id="tagsel_cancel">(done)</a>
178 <div id="tagsel_status" class="tagsel_tatus" style="display:none;">
182 </span> <!-- / .links -->
183 </div> <!-- / #selections-toolbar -->
185 <!-- TABLE RESULTS START -->
186 <table class="table table-striped">
188 <!-- Actual Search Results -->
189 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
191 [% # Cell 1: Checkbox %]
192 <td class="select selectcol">
193 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
194 <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>
196 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
197 <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>
199 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
200 [% UNLESS ( SEARCH_RESULT.norequests ) %]
201 [% 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>
204 [% END # IF RequestOnOpac %]
205 [% END # IF virtualshelves %]
206 [% END # IF opacbookbag%]
208 [% # Cell 2: Show result number if OpacHiddenItems is empty %]
209 <td class="select selectcol">
210 [% UNLESS suppress_result_number %]
211 [% SEARCH_RESULT.result_number | html %].
215 [% IF ( !item_level_itypes && !noItemTypeImages ) %]
216 [% # Cell 3: Show item type image %]
217 <td class="itypecol">
218 [% IF ( SEARCH_RESULT.imageurl ) %]
219 <img src="[% SEARCH_RESULT.imageurl | html %]" title="[% SEARCH_RESULT.description | html %]" alt="[% SEARCH_RESULT.description | html %]" />
221 [% IF ( SEARCH_RESULT.score_avg ) %]
222 <img src="[% themelang | html %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/>
227 [% # Cell 4: Search result details and controls %]
228 <td class="bibliocol">
229 <div class="coverimages itemtype_[% SEARCH_RESULT.itemtype | html %]">
230 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">
231 [% IF ( OPACLocalCoverImages ) %]
232 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
235 [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
236 <span title="[% SEARCH_RESULT.biblionumber | html %]" id="adlibris-thumbnail[% loop.count | html %]">
237 <img src="[% AdlibrisURL | html %]?isbn=[% SEARCH_RESULT.normalized_isbn | html %]"
238 alt="Adlibris thumbnail for ISBN: [% SEARCH_RESULT.normalized_isbn | html %]" class="adlibris-cover" />
241 [% IF ( OPACAmazonCoverImages ) %]
242 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
243 <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>
245 <span class="no-image">No cover image available</span>
249 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
250 [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
251 <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>
253 <span class="no-image">No cover image available</span>
257 [% IF ( GoogleJackets ) %]
258 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
259 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></span>
261 <span class="no-image">No cover image available</span>
265 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
266 [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
268 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
270 <span class="no-image">No cover image available</span>
274 [% IF OpenLibraryCovers %]
275 [% IF SEARCH_RESULT.normalized_isbn %]
276 <span title="[% SEARCH_RESULT.biblionumber | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="openlibrary-thumbnail[% loop.count | html %]"></span>
278 <span class="no-image">No cover image available</span>
282 [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %]
283 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
285 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
287 <span class="no-image">No cover image available</span>
292 [% IF ( BakerTaylorEnabled && BakerTaylorBookstoreURL ) %]
293 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
295 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]">
296 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
299 <span class="no-image">No cover image available</span>
303 [% IF ( IDreamBooksResults && SEARCH_RESULT.normalized_isbn ) %]
304 <div class="idbresult" style="display: none;">
305 [% IF ( IDreamBooksReviews ) %]
306 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]#idb_critic_reviews">
308 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
310 [% SEARCH_RESULT.normalized_isbn | html %]</a>
314 [% IF ( COinSinOPACResults && SEARCH_RESULT.coins ) %]
315 <!-- COinS / Openurl -->
316 <span class="Z3988" title="[% SEARCH_RESULT.coins | html %]"></span>
319 [% IF ( OPACXSLTResultsDisplay ) %]
320 [% SEARCH_RESULT.XSLTResultsRecord | $raw %]
322 [% IF ( BiblioDefaultViewmarc ) %]
323 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
325 [% IF ( BiblioDefaultViewisbd ) %]
326 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
328 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
332 [% IF ( SEARCH_RESULT.title ) %]
333 [% SEARCH_RESULT.title | html %]
338 [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
339 , [% subtitl.subfield | html %]
342 [% IF ( SEARCH_RESULT.author ) %]
343 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>
348 <span class="results_summary publisher">
349 <span class="label">Publication:</span>
350 [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place | html %] [% END %]
351 [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode | html %][% END %]
352 [% IF ( SEARCH_RESULT.publicationyear ) %]
353 [% SEARCH_RESULT.publicationyear | html %]
355 [% IF ( SEARCH_RESULT.copyrightdate ) %]
356 [% SEARCH_RESULT.copyrightdate | html %]
359 [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages | html %][% END %]
360 [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes | html %][% END %]
361 [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size | html %][% END %]
362 [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp | html %])</i>[% END %]
365 [% IF ( SEARCH_RESULT.summary ) %]
366 <span class="result_summary">
367 [% SEARCH_RESULT.summary | html %]
371 [% IF ( SEARCH_RESULT.copyrightdate ) %]
372 <span class="results_summary date">
373 <span class="label">Date:</span>
374 [% SEARCH_RESULT.copyrightdate | html %]
378 <span class="results_summary">
379 <span class="label">Availability:</span>
380 [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
381 <span class="available"><strong>Items available:</strong>
382 [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
383 [% IF available_items_loo.this_branch %]
384 <span class="highlight-row-results">
389 [% IF ( singleBranchMode ) %]
390 [% available_items_loo.location | html %]
392 [% available_items_loo.branchname | html %]
395 [% IF ( OPACItemsResultsDisplay ) %]
396 [% UNLESS ( singleBranchMode ) %][% available_items_loo.location | html %][% END %]
397 [% 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 %]
399 ([% available_items_loo.count | html %]),
401 [% END # / FOREACH available_items_loo %]
404 [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS ) %]
405 [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
406 <span id="alternateholdings">[% ALTERNATEHOLDING.holding | html %]</span>,
409 <span class="unavailable">No items available:</span>
411 [% END # / IF SEARCH_RESULT.available_items_loop.size %]
413 <span class="unavailable">
414 [% IF ( SEARCH_RESULT.onloancount ) %] Checked out ([% SEARCH_RESULT.onloancount | html %]), [% END %]
415 [% IF ( SEARCH_RESULT.withdrawncount ) %] Withdrawn ([% SEARCH_RESULT.withdrawncount | html %]), [% END %]
416 [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount | html %]),[% END %][% END %]
417 [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount | html %]),[% END %]
418 [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount | html %]),[% END %]
419 [% IF ( SEARCH_RESULT.onholdcount ) %] On hold ([% SEARCH_RESULT.onholdcount | html %]),[% END %]
420 [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount | html %]),[% END %]
422 </span> <!-- / .results_summary -->
423 [% END # / IF OPACXSLTResultsDisplay %]
425 [% IF ( SEARCH_RESULT.score_avg ) %]
426 <div class="results_summary">
427 [% FOREACH i IN [ 1 2 3 4 5 ] %]
428 [% IF ( SEARCH_RESULT.score_int >= i ) %]
429 <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>
431 <div class="star-rating rater-[% i | html %] star star-rating-applied star-rating-readonly"><a title="[% i | html %]">[% i | html %]</a></div>
434 <span id="babeltheque-rating_total_[% SEARCH_RESULT.biblionumber | html %]"> [% SEARCH_RESULT.score_avg | html %] / 5 (on [% SEARCH_RESULT.num_scores | html %] rates)</span>
436 [% IF ( SEARCH_RESULT.num_critics ) %]
437 <span class="social_data">[% SEARCH_RESULT.num_critics | html %] Internet user critics</span>
439 [% IF ( SEARCH_RESULT.num_critics_pro ) %]
440 <span class="social_data">[% SEARCH_RESULT.num_critics_pro | html %] Professional critics</span>
442 [% IF ( SEARCH_RESULT.num_videos ) %]
443 <span class="social_data">[% SEARCH_RESULT.num_videos | html %] Video extracts</span>
445 [% IF ( SEARCH_RESULT.num_quotations ) %]
446 <span class="social_data">[% SEARCH_RESULT.num_quotations | html %] Quotations</span>
448 </div> <!-- / .results_summary -->
449 [% END # / IF SEARCH_RESULT.score_avg %]
451 [% IF ( LibraryThingForLibrariesID ) %]
452 <div class="ltfl_reviews"></div>
455 [% IF ( TagsShowEnabled && SEARCH_RESULT.TagLoop.size ) %]
456 <div class="results_summary tags">
457 <span class="label">Tags:</span>
459 [% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]
461 <a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
462 <span class="weight">([% TagLoo.weight_total | html %])</span>
469 [% IF Koha.Preference('virtualshelves') AND SEARCH_RESULT.shelves.count %]
470 <div class="results_summary shelves">
471 <span class="label">Lists:</span>
473 [% FOREACH shelf IN SEARCH_RESULT.shelves %]
474 <li><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]">[% shelf.shelfname | html %]</a></li>
475 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
482 [% IF ( SEARCH_RESULT.searchhighlightblob ) %]
483 <span class="results_summary">
484 <span class="label">Match:</span>
485 [% SEARCH_RESULT.searchhighlightblob | html %]
489 [% IF ( OpacStarRatings == 'all' ) %]
490 <div class="results_summary ratings">
491 [% SET rating_avg = SEARCH_RESULT.ratings.get_avg_rating() %]
492 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
493 [% FOREACH i IN [ 1 2 3 4 5 ] %]
494 [% IF rating_avg_int == i %]
495 <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber | html %]" value="[% i | html %]" checked="checked" disabled="disabled" />
497 <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber | html %]" value="[% i | html %]" disabled="disabled" />
501 [% IF SEARCH_RESULT.ratings.count > 0 %]
502 <span id="rating_total_[% SEARCH_RESULT.biblionumber | html %]"> ([% SEARCH_RESULT.ratings.count | html %] votes)</span>
506 </div> <!-- / .results_summary -->
507 [% END # / IF OpacStarRatings %]
509 <div class="actions-menu noprint">
510 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
511 [% UNLESS ( SEARCH_RESULT.norequests ) %]
512 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
513 <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-->
514 [% END # / IF opacuserlogin && holdable %]
515 [% END # UNLESS SEARCH_RESULT.norequests %]
516 [% END # IF RequestOnOpac %]
518 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
519 [% IF SEARCH_RESULT.artreqpossible %]
520 <span class="actions"><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Request article</a></span>
524 [% IF ( TagsInputEnabled ) %]
525 [% IF ( loggedinusername ) %]
526 <span class="actions"><a class="tag_add" id="tag_add[% SEARCH_RESULT.biblionumber | html %]" href="#">Add tag</a></span>
527 <div id="tagform[% SEARCH_RESULT.biblionumber | html %]" class="tag_results_input" style="display:none;">
528 <label for="newtag[% SEARCH_RESULT.biblionumber | html %]">New tag(s), separated by a comma:</label>
529 <input type="text" name="newtag[% SEARCH_RESULT.biblionumber | html %]" id="newtag[% SEARCH_RESULT.biblionumber | html %]" class="newtag" maxlength="100" />
530 <input name="tagbutton" class="btn btn-small tagbutton" title="[% SEARCH_RESULT.biblionumber | html %]" type="submit" value="Add" />
531 <a class="cancel_tag_add" id="cancel[% SEARCH_RESULT.biblionumber | html %]" href="#">(done)</a>
533 <span id="newtag[% SEARCH_RESULT.biblionumber | html %]_status" class="tagstatus" style="display:none;">
536 [% ELSIF ( loop.first ) %]
537 <span class="actions"><span id="login4tags">Log in to add tags.</span></span>
538 [% END # IF loggedinusername %]
539 [% END # if TagsInputEnabled %]
541 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
542 <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>
545 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
546 [% IF ( SEARCH_RESULT.incart ) %]
547 <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>
549 <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>
551 [% END # / IF opacbookbag %]
554 [% INCLUDE "openlibrary-readapi.inc" bib = SEARCH_RESULT %]
558 [% END # / FOREACH SEARCH_RESULT %]
560 </form> <!-- / #bookbag_form -->
562 <form id="hold_form" name="hold_form" method="get" action="/cgi-bin/koha/opac-reserve.pl">
563 <!-- The value will be set by holdBiblioNums() in basket.js -->
564 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value=""/>
566 </div> <!-- / .searchresults -->
568 <div id="bottom-pages">[% INCLUDE 'page-numbers.inc' %]</div>
570 [% END # / IF total %]
572 [% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername || Koha.Preference( 'ILLModule' ) == 1 ) %]
573 <div class="suggestion">
574 Not finding what you're looking for?
576 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
577 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
579 [% IF ( loggedinusername ) %]
580 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
583 [% IF Koha.Preference( 'ILLModule' ) == 1 && loggedinusername %]
584 <li>Make an <a href="/cgi-bin/koha/opac-illrequests.pl?op=create">Interlibrary loan request</a></li>
589 </div> <!-- / #userresults -->
590 </div> <!-- /.span10/12 -->
591 </div> <!-- / .row-fluid -->
592 </div> <!-- / .container-fluid -->
593 </div><!-- / .main -->
595 [% INCLUDE 'opac-bottom.inc' %]
596 [% BLOCK jsinclude %]
597 [% IF ( LibraryThingForLibrariesID ) %]
598 <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]&systype=koha"></script>
600 [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") | $raw %][% END %]
601 [% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %]
602 [% IF ( RecordedBooksEnabled ) %][% Asset.js("js/recordedbooks.js") | $raw %][% END %]
603 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
604 [% Asset.js("js/authtoresults.js") | $raw %]
605 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %]
608 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
609 function holdMultiple() {
610 var checkedBiblioNums = ""; // Separated by "/"
611 var checkedCount = 0;
612 if(document.bookbag_form.biblionumber.length > 0) {
613 for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
614 if (document.bookbag_form.biblionumber[i].checked) {
615 checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/");
621 if (checkedCount > 0) {
622 holdBiblioNums(checkedBiblioNums);
624 alert(MSG_NO_RECORD_SELECTED);
628 function holdBiblioNums(numList) {
629 // numList: biblio numbers separated by "/"
630 $("#hold_form_biblios").attr("value", numList);
631 $("#hold_form").submit();
634 [% IF ( TagsInputEnabled && loggedinusername ) %]
635 function tagSelected() {
636 var checkedBoxes = $(".searchresults :checkbox:checked");
637 if ($(checkedBoxes).size() == 0) {
638 alert(MSG_NO_RECORD_SELECTED);
640 $("#tagsel_tag").hide();
642 $("#tagsel_form").show();
646 function tagCanceled() {
647 $("#tagsel_form").hide();
648 $("#tagsel_tag").show();
650 $("#tagsel_new").val("");
651 $("#tagsel_status, .tagstatus").empty().hide();
654 function tagAdded() {
655 var checkedBoxes = $(".searchresults :checkbox:checked");
656 if ($(checkedBoxes).size() == 0) {
657 alert(MSG_NO_RECORD_SELECTED);
661 var tag = $("#tagsel_new").val();
662 if (!tag || (tag == "")) {
663 alert(MSG_NO_TAG_SPECIFIED);
668 for (var i = 0; i < $(checkedBoxes).size(); i++) {
669 var box = $(checkedBoxes).get(i);
670 bibs[i] = $(box).val();
673 KOHA.Tags.add_multitags_button(bibs, tag);
678 function enableCheckboxActions(){
679 // Enable/disable controls if checkboxes are checked
680 var checkedBoxes = $(".checkboxed input:checkbox:checked");
681 var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, , #selections-toolbar .links label")
682 if ($(checkedBoxes).size()) {
683 $("#selections").html(_("With selected titles: "));
684 $(controls).removeClass("disabled");
686 $("#selections").html(_("Select titles to: "));
687 $(controls).addClass("disabled");
691 [% IF ( OpacHighlightedWords ) %]
692 var q_array = new Array(); // holds search terms if available
694 function highlightOff() {
695 $("td").removeHighlight();
696 $(".highlight_toggle").toggle();
698 function highlightOn() {
701 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
702 q_array[x] = q_array[x].toLowerCase();
703 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
704 if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
705 $(".title").highlight(q_array[x]);
706 $(".author").highlight(q_array[x]);
707 $(".results_summary").highlight(q_array[x]);
710 $(".highlight_toggle").toggle();
713 $(document).ready(function(){
714 [% IF ( OpacHighlightedWords ) %]
715 $('a.title').each(function() {
716 $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
720 $(".cb").click(function(){
721 enableCheckboxActions();
723 enableCheckboxActions();
725 [% IF ( IDreamBooksResults ) %]
726 $('.idbresult').each(function() {
727 var isbn = $(this).children('a').text().replace(/\s*/,'');
730 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
731 // Use Microsoft XDR for IE version 8 or above
732 var xdr = new XDomainRequest();
733 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
734 xdr.onload = function() {
735 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
736 eval(json); // json is now a regular JSON object
737 if(json.total_results > 0 && json.book.rating > 0){
738 $(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+"%");
746 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
747 if(json.total_results > 0 && json.book.rating > 0){
748 $(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+"%");
759 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) || loggedinusername ) %]
760 param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>";
763 [% IF Koha.Preference( 'opacbookbag' ) == 1 OR Koha.Preference('virtualshelves') %]
764 param1 += "<select class=\"disabled\" name=\"addto\" id=\"addto\"><option>"+_("Add to...")+"</option>";
766 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
767 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
769 [% IF Koha.Preference('virtualshelves') %]
770 [% IF loggedinusername AND add_to_some_private_shelves.count %]
771 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
772 [% SET number_of_private_shelves = 0 %]
773 [% FOREACH s IN add_to_some_private_shelves %]
774 [% IF shelfnumber != s.shelfnumber %]
775 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
776 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
777 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
780 param1 += "<\/optgroup>";
782 [% IF add_to_some_public_shelves.count %]
783 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
784 [% SET number_of_public_shelves = 0 %]
785 [% FOREACH s IN add_to_some_public_shelves %]
786 [% IF shelfnumber != s.shelfnumber %]
787 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
788 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
789 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
792 param1 += "<\/optgroup>";
794 [% 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 ) %]
795 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
797 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
799 param1 += "<\/select> <input type=\"submit\" class=\"btn btn-small\" value=\""+_("Save")+"\" />";
802 $('#sortsubmit').hide();
803 $('.resort').change(function() {
804 $('#bookbag_form').submit();
806 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
807 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
809 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
810 $("span.addto").html(param1);
812 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
813 $("span.addto").html(param1);
817 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
818 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
819 $("#addto").on("change",function(){
822 $(".addto").find("input:submit").click(function(){
827 $("#addto").on("click",function(){
835 addtoOption = $("#addto").find("option:selected");
836 addtoval = addtoOption.val();
837 if(addtoval == "addtolist"){
838 var shelfnumber = addtoOption.attr("id").replace("s","");
840 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
843 } else if(addtoval == "newlist"){
844 [% IF ( loggedinusername ) %]if (vShelfAdd()) {
845 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
847 alert(_("You must be logged in to create or add to lists"));
850 } else if(addtoval == "morelists"){
851 [% IF ( loggedinusername ) %]
853 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
856 alert(_("You must be logged in to create or add to lists"));
860 if(addtoval == "addtocart" || $("#addto").attr("class") == "addtocart"){
865 $("#CheckAll").click(function(){
866 $("#bookbag_form").checkCheckboxes();
867 enableCheckboxActions();
870 $("#CheckNone").click(function(){
871 $("#bookbag_form").unCheckCheckboxes();
872 enableCheckboxActions();
876 [% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %]
877 $("#placehold").html("<input class=\"hold disabled\" type=\"submit\" value=\""+_("Place hold")+"\"/>");
878 $("#placehold").find("input:submit").click(function(){
884 [% IF ( query_desc ) %]
885 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
886 var querystring = "[% querystring |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
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( "[% 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").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('Coce') && 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(); }