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 ) %]
13 Results of search for '[% ms_value | html %]'
18 You did not specify any search criteria.
20 [% INCLUDE 'doc-head-close.inc' %]
22 <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" />
24 [% BLOCK cssinclude %][% END %]
25 [% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %]
26 [% INCLUDE 'masthead.inc' %]
29 <ul class="breadcrumb">
30 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
31 [% IF ( searchdesc ) %]
32 [% IF ( ReturnPath ) %]
34 <a href="[% ReturnPath | url %]">Advanced search</a> <span class="divider">›</span>
39 <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>
41 <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>
46 <a href="#">You did not specify any search criteria</a>
51 [% UNLESS ( total ) %]
52 <div class="container-fluid maincontent">
53 <div class="row-fluid">
55 <strong>No results found!</strong>
57 [% IF ( searchdesc ) %]
58 No results found for that in [% LibraryName | html %] catalog. <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&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>
60 You did not specify any search criteria.
63 [% IF ( ReturnPath ) %]
64 <div class="returntosearch">
65 <p><a href="[% ReturnPath | url %]">Return to the last advanced search</a></p>
68 [% IF ( OPACNoResultsFound ) %]
69 <div id="noresultsfound">
70 [% OPACNoResultsFound | $raw %]
73 </div> <!-- / .span12 -->
74 </div> <!-- / .row-fluid -->
75 </div> <!-- / .container-fluid -->
76 [% END # / UNLESS searchdesc %]
78 <div id="maincontent" class="container-fluid">
79 <div class="row-fluid">
80 [% IF ( opacfacets && total ) %]
82 <div id="facetcontainer">
84 [% INCLUDE 'opac-facets.inc' %]
90 [% IF ( opacfacets && total ) %]<div class="span10 maincontent">[% ELSE %]<div class="span12 maincontent">[% END %]
92 [% IF ( searchdesc ) %]
94 [% IF ( total ) %]<strong>Your search returned [% total | html %] results.</strong>
97 [% FOREACH relate IN related %]
98 [% relate.related_search | html %]
102 <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&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>
103 [% END # / IF total %]
105 [% END # / IF searchdesc %]
107 <div id="userresults">
108 [% IF ( DidYouMean ) %]
109 <div id="didyoumean">Not what you expected? Check for <a href="/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring |uri %]">suggestions</a></div>
112 <div id="top-pages">[% INCLUDE 'page-numbers.inc' %]</div>
114 [% IF ( koha_spsuggest ) %]
116 <ul style="list-style: none;">
117 [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
119 <a href="/cgi-bin/koha/opac-search.pl?q=[% SPELL_SUGGES.spsuggestion | uri %]">[% SPELL_SUGGES.spsuggestion | html %]</a>
123 [% END # / IF koha_spsuggest%]
125 [% IF ( ReturnPath ) %]
126 <div class="returntosearch">
127 <p><a href="[% ReturnPath | url %]">Return to the last advanced search</a></p>
131 [% IF ( query_error ) %]
132 <div class="dialog alert">
134 [% query_error | html %]
138 <!-- Search Results Table -->
141 <div class="searchresults">
142 <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
143 [% IF ( searchdesc ) %]
144 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
145 <input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/>
147 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
148 <input type="hidden" name="[% LIMIT_INPUT.input_name | html %]" value="[% LIMIT_INPUT.input_value | html %]"/>
150 [% END # IF /searchdesc %]
152 <div id="toolbar" class="toolbar clearfix">
153 [% IF ( OpacHighlightedWords ) %]
154 <div class="highlight_controls noprint">
155 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
156 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
160 <div class="sort_by pull-right">
161 <select id="sort_by" class="resort" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select>
162 <input type="submit" class="btn btn-small clearfix" id="sortsubmit" value="Go" />
165 </div> <!-- / #toolbar -->
167 <div id="selections-toolbar" class="toolbar noprint">
168 <!-- checkall, clearall are now needed for placehold -->
169 <span class="checkall"></span>
170 <span class="clearall"></span> <span class="sep">|</span>
173 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
174 <span class="addto"></span>
176 <span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span>
178 [% IF ( TagsInputEnabled && loggedinusername ) %]
179 <span id="tagsel_span">
180 <input id="tagsel_tag" class="disabled" type="submit" value="Tag"/>
182 <div id="tagsel_form" style="display:none">
183 <label for="tagsel_new">New tag:</label>
184 <input type="text" name="tagsel_new" id="tagsel_new" maxlength="100" />
185 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="Add" type="submit" value="Add" />
186 <a href="#" id="tagsel_cancel">(done)</a>
188 <div id="tagsel_status" class="tagsel_tatus" style="display:none;">
192 </span> <!-- / .links -->
193 </div> <!-- / #selections-toolbar -->
195 <!-- TABLE RESULTS START -->
196 <table class="table table-striped">
198 <!-- Actual Search Results -->
199 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
201 [% # Cell 1: Checkbox %]
202 <td class="select selectcol">
203 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
204 <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>
206 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
207 <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>
209 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
210 [% UNLESS ( SEARCH_RESULT.norequests ) %]
211 [% 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>
214 [% END # IF RequestOnOpac %]
215 [% END # IF virtualshelves %]
216 [% END # IF opacbookbag%]
218 [% # Cell 2: Show result number if OpacHiddenItems is empty %]
219 <td class="select selectcol">
220 [% UNLESS suppress_result_number %]
221 [% SEARCH_RESULT.result_number | html %].
225 [% IF ( !item_level_itypes && !noItemTypeImages ) %]
226 [% # Cell 3: Show item type image %]
227 <td class="itypecol">
228 [% IF ( SEARCH_RESULT.imageurl ) %]
229 <img src="[% SEARCH_RESULT.imageurl | html %]" title="[% SEARCH_RESULT.description | html %]" alt="[% SEARCH_RESULT.description | html %]" />
231 [% IF ( SEARCH_RESULT.score_avg ) %]
232 <img src="[% themelang | html %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/>
237 [% # Cell 4: Search result details and controls %]
238 <td class="bibliocol">
239 <div class="coverimages itemtype_[% SEARCH_RESULT.itemtype | html %]">
240 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">
241 [% IF ( OPACLocalCoverImages ) %]
242 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
245 [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
246 <span title="[% SEARCH_RESULT.biblionumber | html %]" id="adlibris-thumbnail[% loop.count | html %]">
247 <img src="[% AdlibrisURL | html %]?isbn=[% SEARCH_RESULT.normalized_isbn | html %]"
248 alt="Adlibris thumbnail for ISBN: [% SEARCH_RESULT.normalized_isbn | html %]" class="adlibris-cover" />
251 [% IF ( OPACAmazonCoverImages ) %]
252 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
253 <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>
255 <span class="no-image">No cover image available</span>
259 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
260 [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
261 <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>
263 <span class="no-image">No cover image available</span>
267 [% IF ( GoogleJackets ) %]
268 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
269 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></span>
271 <span class="no-image">No cover image available</span>
275 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
276 [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
278 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
280 <span class="no-image">No cover image available</span>
284 [% IF OpenLibraryCovers %]
285 [% IF SEARCH_RESULT.normalized_isbn %]
286 <span title="[% SEARCH_RESULT.biblionumber | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="openlibrary-thumbnail[% loop.count | html %]"></span>
288 <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 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
297 <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 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]">
306 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
309 <span class="no-image">No cover image available</span>
313 [% IF ( IDreamBooksResults && SEARCH_RESULT.normalized_isbn ) %]
314 <div class="idbresult" style="display: none;">
315 [% IF ( IDreamBooksReviews ) %]
316 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]#idb_critic_reviews">
318 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
320 [% SEARCH_RESULT.normalized_isbn | html %]</a>
324 [% IF ( COinSinOPACResults && SEARCH_RESULT.coins ) %]
325 <!-- COinS / Openurl -->
326 <span class="Z3988" title="[% SEARCH_RESULT.coins | html %]"></span>
329 [% IF ( OPACXSLTResultsDisplay ) %]
330 [% SEARCH_RESULT.XSLTResultsRecord | $raw %]
332 [% IF ( BiblioDefaultViewmarc ) %]
333 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
335 [% IF ( BiblioDefaultViewisbd ) %]
336 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
338 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
342 [% IF ( SEARCH_RESULT.title ) %]
343 [% SEARCH_RESULT.title | html %]
348 [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
349 , [% subtitl.subfield | html %]
352 [% IF ( SEARCH_RESULT.author ) %]
353 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>
358 <span class="results_summary publisher">
359 <span class="label">Publication:</span>
360 [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place | html %] [% END %]
361 [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode | html %][% END %]
362 [% IF ( SEARCH_RESULT.publicationyear ) %]
363 [% SEARCH_RESULT.publicationyear | html %]
365 [% IF ( SEARCH_RESULT.copyrightdate ) %]
366 [% SEARCH_RESULT.copyrightdate | html %]
369 [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages | html %][% END %]
370 [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes | html %][% END %]
371 [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size | html %][% END %]
372 [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp | html %])</i>[% END %]
375 [% IF ( SEARCH_RESULT.summary ) %]
376 <span class="result_summary">
377 [% SEARCH_RESULT.summary | html %]
381 [% IF ( SEARCH_RESULT.copyrightdate ) %]
382 <span class="results_summary date">
383 <span class="label">Date:</span>
384 [% SEARCH_RESULT.copyrightdate | html %]
388 <span class="results_summary">
389 <span class="label">Availability:</span>
390 [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
391 <span class="available"><strong>Items available:</strong>
392 [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
393 [% IF available_items_loo.this_branch %]
394 <span class="highlight-row-results">
399 [% IF ( singleBranchMode ) %]
400 [% available_items_loo.location | html %]
402 [% available_items_loo.branchname | html %]
405 [% IF ( OPACItemsResultsDisplay ) %]
406 [% UNLESS ( singleBranchMode ) %][% available_items_loo.location | html %][% END %]
407 [% 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 %]
409 ([% available_items_loo.count | html %]),
411 [% END # / FOREACH available_items_loo %]
414 [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS ) %]
415 [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
416 <span id="alternateholdings">[% ALTERNATEHOLDING.holding | html %]</span>,
419 <span class="unavailable">No items available:</span>
421 [% END # / IF SEARCH_RESULT.available_items_loop.size %]
423 <span class="unavailable">
424 [% IF ( SEARCH_RESULT.onloancount ) %] Checked out ([% SEARCH_RESULT.onloancount | html %]), [% END %]
425 [% IF ( SEARCH_RESULT.withdrawncount ) %] Withdrawn ([% SEARCH_RESULT.withdrawncount | html %]), [% END %]
426 [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount | html %]),[% END %][% END %]
427 [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount | html %]),[% END %]
428 [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount | html %]),[% END %]
429 [% IF ( SEARCH_RESULT.onholdcount ) %] On hold ([% SEARCH_RESULT.onholdcount | html %]),[% END %]
430 [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount | html %]),[% END %]
432 </span> <!-- / .results_summary -->
433 [% END # / IF OPACXSLTResultsDisplay %]
435 [% IF ( SEARCH_RESULT.score_avg ) %]
436 <div class="results_summary">
437 [% FOREACH i IN [ 1 2 3 4 5 ] %]
438 [% IF ( SEARCH_RESULT.score_int >= i ) %]
439 <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>
441 <div class="star-rating rater-[% i | html %] star star-rating-applied star-rating-readonly"><a title="[% i | html %]">[% i | html %]</a></div>
444 <span id="babeltheque-rating_total_[% SEARCH_RESULT.biblionumber | html %]"> [% SEARCH_RESULT.score_avg | html %] / 5 (on [% SEARCH_RESULT.num_scores | html %] rates)</span>
446 [% IF ( SEARCH_RESULT.num_critics ) %]
447 <span class="social_data">[% SEARCH_RESULT.num_critics | html %] Internet user critics</span>
449 [% IF ( SEARCH_RESULT.num_critics_pro ) %]
450 <span class="social_data">[% SEARCH_RESULT.num_critics_pro | html %] Professional critics</span>
452 [% IF ( SEARCH_RESULT.num_videos ) %]
453 <span class="social_data">[% SEARCH_RESULT.num_videos | html %] Video extracts</span>
455 [% IF ( SEARCH_RESULT.num_quotations ) %]
456 <span class="social_data">[% SEARCH_RESULT.num_quotations | html %] Quotations</span>
458 </div> <!-- / .results_summary -->
459 [% END # / IF SEARCH_RESULT.score_avg %]
461 [% IF ( LibraryThingForLibrariesID ) %]
462 <div class="ltfl_reviews"></div>
465 [% IF ( TagsShowEnabled && SEARCH_RESULT.TagLoop.size ) %]
466 <div class="results_summary tags">
467 <span class="label">Tags:</span>
469 [% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]
471 <a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
472 <span class="weight">([% TagLoo.weight_total | html %])</span>
479 [% IF Koha.Preference('virtualshelves') AND SEARCH_RESULT.shelves.count %]
480 <div class="results_summary shelves">
481 <span class="label">Lists:</span>
483 [% FOREACH shelf IN SEARCH_RESULT.shelves %]
484 <li><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]">[% shelf.shelfname | html %]</a></li>
485 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
492 [% IF ( SEARCH_RESULT.searchhighlightblob ) %]
493 <span class="results_summary">
494 <span class="label">Match:</span>
495 [% SEARCH_RESULT.searchhighlightblob | html %]
499 [% IF ( OpacStarRatings == 'all' ) %]
500 <div class="results_summary ratings">
501 [% SET rating_avg = SEARCH_RESULT.ratings.get_avg_rating() %]
502 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
503 <div class="br-wrapper br-theme-fontawesome-stars">
504 <div class="br-widget br-readonly">
505 [% FOREACH i IN [ 1 2 3 4 5 ] %]
506 [% IF rating_avg_int == i %]
507 <a href="#" class="br-selected br-current"></a>
508 [% ELSIF rating_avg_int > i %]
509 <a href="#" class="br-selected"></a>
517 [% IF SEARCH_RESULT.ratings.count > 0 %]
518 <span id="rating_total_[% SEARCH_RESULT.biblionumber | html %]"> ([% SEARCH_RESULT.ratings.count | html %] votes)</span>
522 </div> <!-- / .results_summary -->
523 [% END # / IF OpacStarRatings %]
525 <div class="actions-menu noprint">
526 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
527 [% UNLESS ( SEARCH_RESULT.norequests ) %]
528 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
529 <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-->
530 [% END # / IF opacuserlogin && holdable %]
531 [% END # UNLESS SEARCH_RESULT.norequests %]
532 [% END # IF RequestOnOpac %]
534 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
535 [% IF SEARCH_RESULT.artreqpossible %]
536 <span class="actions"><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Request article</a></span>
540 [% IF ( TagsInputEnabled ) %]
541 [% IF ( loggedinusername ) %]
542 <span class="actions"><a class="tag_add" id="tag_add[% SEARCH_RESULT.biblionumber | html %]" href="#">Add tag</a></span>
543 <div id="tagform[% SEARCH_RESULT.biblionumber | html %]" class="tag_results_input" style="display:none;">
544 <label for="newtag[% SEARCH_RESULT.biblionumber | html %]">New tag(s), separated by a comma:</label>
545 <input type="text" name="newtag[% SEARCH_RESULT.biblionumber | html %]" id="newtag[% SEARCH_RESULT.biblionumber | html %]" class="newtag" maxlength="100" />
546 <input name="tagbutton" class="btn btn-small tagbutton" title="[% SEARCH_RESULT.biblionumber | html %]" type="submit" value="Add" />
547 <a class="cancel_tag_add" id="cancel[% SEARCH_RESULT.biblionumber | html %]" href="#">(done)</a>
549 <span id="newtag[% SEARCH_RESULT.biblionumber | html %]_status" class="tagstatus" style="display:none;">
552 [% ELSIF ( loop.first ) %]
553 <span class="actions"><span id="login4tags">Log in to add tags.</span></span>
554 [% END # IF loggedinusername %]
555 [% END # if TagsInputEnabled %]
557 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
558 <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>
561 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
562 [% IF ( SEARCH_RESULT.incart ) %]
563 <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>
565 <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>
567 [% END # / IF opacbookbag %]
570 [% INCLUDE "openlibrary-readapi.inc" bib = SEARCH_RESULT %]
574 [% END # / FOREACH SEARCH_RESULT %]
576 </form> <!-- / #bookbag_form -->
578 <form id="hold_form" name="hold_form" method="get" action="/cgi-bin/koha/opac-reserve.pl">
579 <!-- The value will be set by holdBiblioNums() in basket.js -->
580 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value=""/>
582 </div> <!-- / .searchresults -->
584 <div id="bottom-pages">[% INCLUDE 'page-numbers.inc' %]</div>
586 [% END # / IF total %]
588 [% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername || Koha.Preference( 'ILLModule' ) == 1 ) %]
589 <div class="suggestion">
590 Not finding what you're looking for?
592 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
593 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
595 [% IF ( loggedinusername ) %]
596 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
599 [% IF Koha.Preference( 'ILLModule' ) == 1 && loggedinusername %]
600 <li>Make an <a href="/cgi-bin/koha/opac-illrequests.pl?op=create">Interlibrary loan request</a></li>
605 </div> <!-- / #userresults -->
606 </div> <!-- /.span10/12 -->
607 </div> <!-- / .row-fluid -->
608 </div> <!-- / .container-fluid -->
609 </div><!-- / .main -->
611 [% INCLUDE 'opac-bottom.inc' %]
612 [% BLOCK jsinclude %]
613 [% IF ( LibraryThingForLibrariesID ) %]
614 <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]&systype=koha"></script>
616 [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") | $raw %][% END %]
617 [% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %]
618 [% IF ( RecordedBooksEnabled ) %][% Asset.js("js/recordedbooks.js") | $raw %][% END %]
619 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
620 [% Asset.js("js/authtoresults.js") | $raw %]
621 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %]
624 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
625 function holdMultiple() {
626 var checkedBiblioNums = ""; // Separated by "/"
627 var checkedCount = 0;
628 if(document.bookbag_form.biblionumber.length > 0) {
629 for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
630 if (document.bookbag_form.biblionumber[i].checked) {
631 checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/");
637 if (checkedCount > 0) {
638 holdBiblioNums(checkedBiblioNums);
640 alert(MSG_NO_RECORD_SELECTED);
644 function holdBiblioNums(numList) {
645 // numList: biblio numbers separated by "/"
646 $("#hold_form_biblios").attr("value", numList);
647 $("#hold_form").submit();
650 [% IF ( TagsInputEnabled && loggedinusername ) %]
651 function tagSelected() {
652 var checkedBoxes = $(".searchresults :checkbox:checked");
653 if ($(checkedBoxes).size() == 0) {
654 alert(MSG_NO_RECORD_SELECTED);
656 $("#tagsel_tag").hide();
658 $("#tagsel_form").show();
662 function tagCanceled() {
663 $("#tagsel_form").hide();
664 $("#tagsel_tag").show();
666 $("#tagsel_new").val("");
667 $("#tagsel_status, .tagstatus").empty().hide();
670 function tagAdded() {
671 var checkedBoxes = $(".searchresults :checkbox:checked");
672 if ($(checkedBoxes).size() == 0) {
673 alert(MSG_NO_RECORD_SELECTED);
677 var tag = $("#tagsel_new").val();
678 if (!tag || (tag == "")) {
679 alert(MSG_NO_TAG_SPECIFIED);
684 for (var i = 0; i < $(checkedBoxes).size(); i++) {
685 var box = $(checkedBoxes).get(i);
686 bibs[i] = $(box).val();
689 KOHA.Tags.add_multitags_button(bibs, tag);
694 function enableCheckboxActions(){
695 // Enable/disable controls if checkboxes are checked
696 var checkedBoxes = $(".checkboxed input:checkbox:checked");
697 var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, , #selections-toolbar .links label")
698 if ($(checkedBoxes).size()) {
699 $("#selections").html(_("With selected titles: "));
700 $(controls).removeClass("disabled");
702 $("#selections").html(_("Select titles to: "));
703 $(controls).addClass("disabled");
707 [% IF ( OpacHighlightedWords ) %]
708 var q_array = new Array(); // holds search terms if available
710 function highlightOff() {
711 $("td").removeHighlight();
712 $(".highlight_toggle").toggle();
714 function highlightOn() {
717 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
718 q_array[x] = q_array[x].toLowerCase();
719 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
720 if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
721 $(".title").highlight(q_array[x]);
722 $(".author").highlight(q_array[x]);
723 $(".results_summary").highlight(q_array[x]);
726 $(".highlight_toggle").toggle();
729 $(document).ready(function(){
730 [% IF ( OpacHighlightedWords ) %]
731 $('a.title').each(function() {
732 $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
736 $(".cb").click(function(){
737 enableCheckboxActions();
739 enableCheckboxActions();
741 [% IF ( IDreamBooksResults ) %]
742 $('.idbresult').each(function() {
743 var isbn = $(this).children('a').text().replace(/\s*/,'');
746 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
747 // Use Microsoft XDR for IE version 8 or above
748 var xdr = new XDomainRequest();
749 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
750 xdr.onload = function() {
751 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
752 eval(json); // json is now a regular JSON object
753 if(json.total_results > 0 && json.book.rating > 0){
754 $(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+"%");
762 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
763 if(json.total_results > 0 && json.book.rating > 0){
764 $(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 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) || loggedinusername ) %]
776 param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>";
779 [% IF Koha.Preference( 'opacbookbag' ) == 1 OR Koha.Preference('virtualshelves') %]
780 param1 += "<select class=\"disabled\" name=\"addto\" id=\"addto\"><option>"+_("Add to...")+"</option>";
782 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
783 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
785 [% IF Koha.Preference('virtualshelves') %]
786 [% IF loggedinusername AND add_to_some_private_shelves.count %]
787 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
788 [% SET number_of_private_shelves = 0 %]
789 [% FOREACH s IN add_to_some_private_shelves %]
790 [% IF shelfnumber != s.shelfnumber %]
791 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
792 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
793 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
796 param1 += "<\/optgroup>";
798 [% IF add_to_some_public_shelves.count %]
799 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
800 [% SET number_of_public_shelves = 0 %]
801 [% FOREACH s IN add_to_some_public_shelves %]
802 [% IF shelfnumber != s.shelfnumber %]
803 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
804 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
805 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
808 param1 += "<\/optgroup>";
810 [% 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 ) %]
811 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
813 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
815 param1 += "<\/select> <input type=\"submit\" class=\"btn btn-small\" value=\""+_("Save")+"\" />";
818 $('#sortsubmit').hide();
819 $('.resort').change(function() {
820 $('#bookbag_form').submit();
822 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
823 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
825 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
826 $("span.addto").html(param1);
828 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
829 $("span.addto").html(param1);
833 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
834 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
835 $("#addto").on("change",function(){
838 $(".addto").find("input:submit").click(function(){
843 $("#addto").on("click",function(){
851 addtoOption = $("#addto").find("option:selected");
852 addtoval = addtoOption.val();
853 if(addtoval == "addtolist"){
854 var shelfnumber = addtoOption.attr("id").replace("s","");
856 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
859 } else if(addtoval == "newlist"){
860 [% IF ( loggedinusername ) %]if (vShelfAdd()) {
861 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
863 alert(_("You must be logged in to create or add to lists"));
866 } else if(addtoval == "morelists"){
867 [% IF ( loggedinusername ) %]
869 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
872 alert(_("You must be logged in to create or add to lists"));
876 if(addtoval == "addtocart" || $("#addto").attr("class") == "addtocart"){
881 $("#CheckAll").click(function(){
882 $("#bookbag_form").checkCheckboxes();
883 enableCheckboxActions();
886 $("#CheckNone").click(function(){
887 $("#bookbag_form").unCheckCheckboxes();
888 enableCheckboxActions();
892 [% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %]
893 $("#placehold").html("<input class=\"hold disabled\" type=\"submit\" value=\""+_("Place hold")+"\"/>");
894 $("#placehold").find("input:submit").click(function(){
900 [% IF ( query_desc ) %]
901 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
902 var querystring = "[% querystring |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
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();});
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( "[% 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();
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();
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();
968 [% IF ( TagsInputEnabled && loggedinusername ) %]
969 $("#tagsel_tag").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);
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('Coce') && 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(); }