4 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %]
5 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog ›
9 [% IF ( searchdesc ) %]
10 Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]
12 You did not specify any search criteria.
14 [% INCLUDE 'doc-head-close.inc' %]
15 [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %]
16 [% BLOCK cssinclude %]
17 [% Asset.css("css/jquery.rating.css") | $raw %]
21 <link rel="alternate" type="application/rss+xml" title="[% LibraryName | html %] Search RSS feed" href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi |uri %]&count=[% countrss |uri %]&sort_by=acqdate_dsc&format=rss2" />
24 [% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %]
25 [% INCLUDE 'masthead.inc' %]
28 <ul class="breadcrumb">
29 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
31 [% IF ( searchdesc ) %]
32 <a href="#">Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]</a>
34 <a href="#">You did not specify any search criteria</a>
39 [% UNLESS ( total ) %]
40 <div class="container-fluid maincontent">
41 <div class="row-fluid">
43 <strong>No results found!</strong>
45 [% IF ( searchdesc ) %]
46 No results found for that in [% LibraryName | html %] catalog. <a href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi | html | 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>
48 You did not specify any search criteria.
51 [% IF ( ReturnPath ) %]
52 <div class="returntosearch">
53 <p><a href="[% ReturnPath | html %]">Return to the last advanced search</a></p>
56 [% IF ( OPACNoResultsFound ) %]
57 <div id="noresultsfound">
58 [% OPACNoResultsFound | $raw %]
61 </div> <!-- / .span12 -->
62 </div> <!-- / .row-fluid -->
63 </div> <!-- / .container-fluid -->
64 [% END # / UNLESS searchdesc %]
66 <div id="maincontent" class="container-fluid">
67 <div class="row-fluid">
68 [% IF ( opacfacets && total ) %]
70 <div id="facetcontainer">
72 [% INCLUDE 'opac-facets.inc' %]
78 [% IF ( opacfacets && total ) %]<div class="span10 maincontent">[% ELSE %]<div class="span12 maincontent">[% END %]
80 [% IF ( searchdesc ) %]
82 [% IF ( total ) %]<strong>Your search returned [% total | html %] results.</strong>
85 [% FOREACH relate IN related %]
86 [% relate.related_search | html %]
90 <a href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi |html | url %]&count=[% countrss | html %]&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>
91 [% END # / IF total %]
93 [% END # / IF searchdesc %]
95 <div id="userresults">
96 [% IF ( DidYouMean ) %]
97 <div id="didyoumean">Not what you expected? Check for <a href="/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring |uri %]">suggestions</a></div>
100 <div id="top-pages">[% INCLUDE 'page-numbers.inc' %]</div>
102 [% IF ( koha_spsuggest ) %]
104 <ul style="list-style: none;">
105 [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
107 <a href="/cgi-bin/koha/opac-search.pl?q=[% SPELL_SUGGES.spsuggestion | html %]">[% SPELL_SUGGES.spsuggestion | html %]</a>
111 [% END # / IF koha_spsuggest%]
113 [% IF ( ReturnPath ) %]
114 <div class="returntosearch">
115 <p><a href="[% ReturnPath | html %]">Return to the last advanced search</a></p>
119 [% IF ( query_error ) %]
120 <div class="dialog alert">
122 [% query_error | html %]
126 <!-- Search Results Table -->
129 <div class="searchresults">
130 <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
131 [% IF ( searchdesc ) %]
132 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
133 <input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/>
135 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
136 <input type="hidden" name="[% LIMIT_INPUT.input_name | html %]" value="[% LIMIT_INPUT.input_value | html %]"/>
138 [% END # IF /searchdesc %]
140 <div id="toolbar" class="toolbar clearfix">
141 [% IF ( OpacHighlightedWords ) %]
142 <div class="highlight_controls noprint">
143 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
144 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
148 <div class="sort_by pull-right">
149 <select id="sort_by" class="resort" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select>
150 <input type="submit" class="btn btn-small clearfix" id="sortsubmit" value="Go" />
153 </div> <!-- / #toolbar -->
155 <div id="selections-toolbar" class="toolbar noprint">
156 <!-- checkall, clearall are now needed for placehold -->
157 <span class="checkall"></span>
158 <span class="clearall"></span> <span class="sep">|</span>
161 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
162 <span class="addto"></span>
164 <span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span>
166 [% IF ( TagsInputEnabled && loggedinusername ) %]
167 <span id="tagsel_span">
168 <input id="tagsel_tag" class="disabled" type="submit" value="Tag"/>
170 <div id="tagsel_form" style="display:none">
171 <label for="tagsel_new">New tag:</label>
172 <input name="tagsel_new" id="tagsel_new" maxlength="100" />
173 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="Add" type="submit" value="Add" />
174 <a href="#" id="tagsel_cancel">(done)</a>
176 <div id="tagsel_status" class="tagsel_tatus" style="display:none;">
180 </span> <!-- / .links -->
181 </div> <!-- / #selections-toolbar -->
183 <!-- TABLE RESULTS START -->
184 <table class="table table-striped">
186 <!-- Actual Search Results -->
187 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
189 [% # Cell 1: Checkbox %]
190 <td class="select selectcol">
191 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
192 <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>
194 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
195 <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>
197 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
198 [% UNLESS ( SEARCH_RESULT.norequests ) %]
199 [% 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>
202 [% END # IF RequestOnOpac %]
203 [% END # IF virtualshelves %]
204 [% END # IF opacbookbag%]
206 [% # Cell 2: Show result number if OpacHiddenItems is empty %]
207 <td class="select selectcol">
208 [% UNLESS suppress_result_number %]
209 [% SEARCH_RESULT.result_number | html %].
213 [% IF ( !item_level_itypes && !noItemTypeImages ) %]
214 [% # Cell 3: Show item type image %]
215 <td class="itypecol">
216 [% IF ( SEARCH_RESULT.imageurl ) %]
217 <img src="[% SEARCH_RESULT.imageurl | html %]" title="[% SEARCH_RESULT.description | html %]" alt="[% SEARCH_RESULT.description | html %]" />
219 [% IF ( SEARCH_RESULT.score_avg ) %]
220 <img src="[% themelang | html %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/>
225 [% # Cell 4: Search result details and controls %]
226 <td class="bibliocol">
227 <div class="coverimages itemtype_[% SEARCH_RESULT.itemtype | html %]">
228 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">
229 [% IF ( OPACLocalCoverImages ) %]
230 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
232 [% IF ( OPACAmazonCoverImages ) %]
233 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
234 <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>
236 <span class="no-image">No cover image available</span>
240 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
241 [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
242 <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>
244 <span class="no-image">No cover image available</span>
248 [% IF ( GoogleJackets ) %]
249 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
250 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></span>
252 <span class="no-image">No cover image available</span>
256 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
257 [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn | html %]
259 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
261 <span class="no-image">No cover image available</span>
265 [% IF OpenLibraryCovers %]
266 [% IF SEARCH_RESULT.normalized_isbn %]
267 <span title="[% SEARCH_RESULT.biblionumber | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="openlibrary-thumbnail[% loop.count | html %]"></span>
269 <span class="no-image">No cover image available</span>
273 [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %]
274 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) | html %]
276 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
278 <span class="no-image">No cover image available</span>
283 [% IF ( BakerTaylorEnabled && BakerTaylorBookstoreURL ) %]
284 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) | html %]
286 <a href="https://[% BakerTaylorBookstoreURL | html %][% bt_id | html %]">
287 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
290 <span class="no-image">No cover image available</span>
294 [% IF ( IDreamBooksResults && SEARCH_RESULT.normalized_isbn ) %]
295 <div class="idbresult" style="display: none;">
296 [% IF ( IDreamBooksReviews ) %]
297 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]#idb_critic_reviews">
299 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">
301 [% SEARCH_RESULT.normalized_isbn | html %]</a>
305 [% IF ( COinSinOPACResults && SEARCH_RESULT.coins ) %]
306 <!-- COinS / Openurl -->
307 <span class="Z3988" title="[% SEARCH_RESULT.coins | html %]"></span>
310 [% IF ( OPACXSLTResultsDisplay ) %]
311 [% SEARCH_RESULT.XSLTResultsRecord | $raw %]
313 [% IF ( BiblioDefaultViewmarc ) %]
314 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
316 [% IF ( BiblioDefaultViewisbd ) %]
317 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
319 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
323 [% IF ( SEARCH_RESULT.title ) %]
324 [% SEARCH_RESULT.title | html %]
329 [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
330 , [% subtitl.subfield | html %]
333 [% IF ( SEARCH_RESULT.author ) %]
334 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>
339 <span class="results_summary publisher">
340 <span class="label">Publication:</span>
341 [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place | html %] [% END %]
342 [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode | html %][% END %]
343 [% IF ( SEARCH_RESULT.publicationyear ) %]
344 [% SEARCH_RESULT.publicationyear | html %]
346 [% IF ( SEARCH_RESULT.copyrightdate ) %]
347 [% SEARCH_RESULT.copyrightdate | html %]
350 [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages | html %][% END %]
351 [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes | html %][% END %]
352 [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size | html %][% END %]
353 [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp | html %])</i>[% END %]
356 [% IF ( SEARCH_RESULT.summary ) %]
357 <span class="result_summary">
358 [% SEARCH_RESULT.summary | html %]
362 [% IF ( SEARCH_RESULT.copyrightdate ) %]
363 <span class="results_summary date">
364 <span class="label">Date:</span>
365 [% SEARCH_RESULT.copyrightdate | html %]
369 <span class="results_summary">
370 <span class="label">Availability:</span>
371 [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
372 <span class="available"><strong>Items available:</strong>
373 [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
374 [% IF available_items_loo.this_branch %]
375 <span class="highlight-row-results">
380 [% IF ( singleBranchMode ) %]
381 [% available_items_loo.location | html %]
383 [% available_items_loo.branchname | html %]
386 [% IF ( OPACItemsResultsDisplay ) %]
387 [% UNLESS ( singleBranchMode ) %][% available_items_loo.location | html %][% END %]
388 [% 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 %]
390 ([% available_items_loo.count | html %]),
392 [% END # / FOREACH available_items_loo %]
395 [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS ) %]
396 [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
397 <span id="alternateholdings">[% ALTERNATEHOLDING.holding | html %]</span>,
400 <span class="unavailable">No items available:</span>
402 [% END # / IF SEARCH_RESULT.available_items_loop.size %]
404 <span class="unavailable">
405 [% IF ( SEARCH_RESULT.onloancount ) %] Checked out ([% SEARCH_RESULT.onloancount | html %]), [% END %]
406 [% IF ( SEARCH_RESULT.withdrawncount ) %] Withdrawn ([% SEARCH_RESULT.withdrawncount | html %]), [% END %]
407 [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount | html %]),[% END %][% END %]
408 [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount | html %]),[% END %]
409 [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount | html %]),[% END %]
410 [% IF ( SEARCH_RESULT.onholdcount ) %] On hold ([% SEARCH_RESULT.onholdcount | html %]),[% END %]
411 [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount | html %]),[% END %]
413 </span> <!-- / .results_summary -->
414 [% END # / IF OPACXSLTResultsDisplay %]
416 [% IF ( SEARCH_RESULT.score_avg ) %]
417 <div class="results_summary">
418 [% FOREACH i IN [ 1 2 3 4 5 ] %]
419 [% IF ( SEARCH_RESULT.score_int >= i ) %]
420 <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>
422 <div class="star-rating rater-[% i | html %] star star-rating-applied star-rating-readonly"><a title="[% i | html %]">[% i | html %]</a></div>
425 <span id="babeltheque-rating_total_[% SEARCH_RESULT.biblionumber | html %]"> [% SEARCH_RESULT.score_avg | html %] / 5 (on [% SEARCH_RESULT.num_scores | html %] rates)</span>
427 [% IF ( SEARCH_RESULT.num_critics ) %]
428 <span class="social_data">[% SEARCH_RESULT.num_critics | html %] Internet user critics</span>
430 [% IF ( SEARCH_RESULT.num_critics_pro ) %]
431 <span class="social_data">[% SEARCH_RESULT.num_critics_pro | html %] Professional critics</span>
433 [% IF ( SEARCH_RESULT.num_videos ) %]
434 <span class="social_data">[% SEARCH_RESULT.num_videos | html %] Video extracts</span>
436 [% IF ( SEARCH_RESULT.num_quotations ) %]
437 <span class="social_data">[% SEARCH_RESULT.num_quotations | html %] Quotations</span>
439 </div> <!-- / .results_summary -->
440 [% END # / IF SEARCH_RESULT.score_avg %]
442 [% IF ( LibraryThingForLibrariesID ) %]
443 <div class="ltfl_reviews"></div>
446 [% IF ( TagsShowEnabled && SEARCH_RESULT.TagLoop.size ) %]
447 <div class="results_summary tags">
448 <span class="label">Tags:</span>
450 [% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]
452 <a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
453 <span class="weight">([% TagLoo.weight_total | html %])</span>
460 [% IF Koha.Preference('virtualshelves') AND SEARCH_RESULT.shelves.count %]
461 <div class="results_summary shelves">
462 <span class="label">Lists:</span>
464 [% FOREACH shelf IN SEARCH_RESULT.shelves %]
465 <li><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | html %]">[% shelf.shelfname | html %]</a></li>
466 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
473 [% IF ( SEARCH_RESULT.searchhighlightblob ) %]
474 <span class="results_summary">
475 <span class="label">Match:</span>
476 [% SEARCH_RESULT.searchhighlightblob | html %]
480 [% IF ( OpacStarRatings == 'all' ) %]
481 <div class="results_summary ratings">
482 [% SET rating_avg = SEARCH_RESULT.ratings.get_avg_rating() %]
483 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
484 [% FOREACH i IN [ 1 2 3 4 5 ] %]
485 [% IF rating_avg_int == i %]
486 <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber | html %]" value="[% i | html %]" checked="checked" disabled="disabled" />
488 <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber | html %]" value="[% i | html %]" disabled="disabled" />
492 [% IF SEARCH_RESULT.ratings.count > 0 %]
493 <span id="rating_total_[% SEARCH_RESULT.biblionumber | html %]"> ([% SEARCH_RESULT.ratings.count | html %] votes)</span>
497 </div> <!-- / .results_summary -->
498 [% END # / IF OpacStarRatings %]
500 <div class="actions-menu noprint">
501 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
502 [% UNLESS ( SEARCH_RESULT.norequests ) %]
503 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
504 <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-->
505 [% END # / IF opacuserlogin && holdable %]
506 [% END # UNLESS SEARCH_RESULT.norequests %]
507 [% END # IF RequestOnOpac %]
509 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
510 [% IF Koha.Preference('ArticleRequests') %]
511 <span class="actions"><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Request article</a></span>
515 [% IF ( TagsInputEnabled ) %]
516 [% IF ( loggedinusername ) %]
517 <span class="actions"><a class="tag_add" id="tag_add[% SEARCH_RESULT.biblionumber | html %]" href="#">Add tag</a></span>
518 <div id="tagform[% SEARCH_RESULT.biblionumber | html %]" class="tag_results_input" style="display:none;">
519 <label for="newtag[% SEARCH_RESULT.biblionumber | html %]">New tag(s), separated by a comma:</label>
520 <input type="text" name="newtag[% SEARCH_RESULT.biblionumber | html %]" id="newtag[% SEARCH_RESULT.biblionumber | html %]" class="newtag" maxlength="100" />
521 <input name="tagbutton" class="btn btn-small tagbutton" title="[% SEARCH_RESULT.biblionumber | html %]" type="submit" value="Add" />
522 <a class="cancel_tag_add" id="cancel[% SEARCH_RESULT.biblionumber | html %]" href="#">(done)</a>
524 <span id="newtag[% SEARCH_RESULT.biblionumber | html %]_status" class="tagstatus" style="display:none;">
527 [% ELSIF ( loop.first ) %]
528 <span class="actions"><span id="login4tags">Log in to add tags.</span></span>
529 [% END # IF loggedinusername %]
530 [% END # if TagsInputEnabled %]
532 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
533 <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>
536 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
537 [% IF ( SEARCH_RESULT.incart ) %]
538 <span class="actions"><a class="addtocart cart[% SEARCH_RESULT.biblionumber | html %]" href="#" onclick="addRecord('[% SEARCH_RESULT.biblionumber | html %]'); return false;">In your cart</a> <a class="cartRemove cartR[% SEARCH_RESULT.biblionumber | html %]" href="#" onclick="delSingleRecord('[% SEARCH_RESULT.biblionumber | html %]'); return false;">(remove)</a></span>
540 <span class="actions"><a class="addtocart cart[% SEARCH_RESULT.biblionumber | html %]" href="#" onclick="addRecord('[% SEARCH_RESULT.biblionumber | html %]'); return false;">Add to cart</a> <a style="display:none;" class="cartRemove cartR[% SEARCH_RESULT.biblionumber | html %]" href="#" onclick="delSingleRecord('[% SEARCH_RESULT.biblionumber | html %]'); return false;">(remove)</a></span>
542 [% END # / IF opacbookbag %]
545 [% INCLUDE "openlibrary-readapi.inc" bib = SEARCH_RESULT %]
549 [% END # / FOREACH SEARCH_RESULT %]
551 </form> <!-- / #bookbag_form -->
553 <form id="hold_form" name="hold_form" method="get" action="/cgi-bin/koha/opac-reserve.pl">
554 <!-- The value will be set by holdBiblioNums() in basket.js -->
555 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value=""/>
557 </div> <!-- / .searchresults -->
559 <div id="bottom-pages">[% INCLUDE 'page-numbers.inc' %]</div>
561 [% END # / IF total %]
563 [% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername || Koha.Preference( 'ILLModule' ) == 1 ) %]
564 <div class="suggestion">
565 Not finding what you're looking for?
567 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
568 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
570 [% IF ( loggedinusername ) %]
571 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
574 [% IF Koha.Preference( 'ILLModule' ) == 1 && loggedinusername %]
575 <li>Make an <a href="/cgi-bin/koha/opac-illrequests.pl?op=create">Interlibrary loan request</a></li>
580 </div> <!-- / #userresults -->
581 </div> <!-- /.span10/12 -->
582 </div> <!-- / .row-fluid -->
583 </div> <!-- / .container-fluid -->
584 </div><!-- / .main -->
586 [% INCLUDE 'opac-bottom.inc' %]
587 [% BLOCK jsinclude %]
588 [% IF ( LibraryThingForLibrariesID ) %]
589 <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]&systype=koha"></script>
591 [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") | $raw %][% END %]
592 [% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %]
593 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
594 [% Asset.js("js/authtoresults.js") | $raw %]
595 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %]
598 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
599 function holdMultiple() {
600 var checkedBiblioNums = ""; // Separated by "/"
601 var checkedCount = 0;
602 if(document.bookbag_form.biblionumber.length > 0) {
603 for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
604 if (document.bookbag_form.biblionumber[i].checked) {
605 checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/");
611 if (checkedCount > 0) {
612 holdBiblioNums(checkedBiblioNums);
614 alert(MSG_NO_RECORD_SELECTED);
618 function holdBiblioNums(numList) {
619 // numList: biblio numbers separated by "/"
620 $("#hold_form_biblios").attr("value", numList);
621 $("#hold_form").submit();
624 [% IF ( TagsInputEnabled && loggedinusername ) %]
625 function tagSelected() {
626 var checkedBoxes = $(".searchresults :checkbox:checked");
627 if ($(checkedBoxes).size() == 0) {
628 alert(MSG_NO_RECORD_SELECTED);
630 $("#tagsel_tag").hide();
632 $("#tagsel_form").show();
636 function tagCanceled() {
637 $("#tagsel_form").hide();
638 $("#tagsel_tag").show();
640 $("#tagsel_new").val("");
641 $("#tagsel_status, .tagstatus").empty().hide();
644 function tagAdded() {
645 var checkedBoxes = $(".searchresults :checkbox:checked");
646 if ($(checkedBoxes).size() == 0) {
647 alert(MSG_NO_RECORD_SELECTED);
651 var tag = $("#tagsel_new").val();
652 if (!tag || (tag == "")) {
653 alert(MSG_NO_TAG_SPECIFIED);
658 for (var i = 0; i < $(checkedBoxes).size(); i++) {
659 var box = $(checkedBoxes).get(i);
660 bibs[i] = $(box).val();
663 KOHA.Tags.add_multitags_button(bibs, tag);
668 function enableCheckboxActions(){
669 // Enable/disable controls if checkboxes are checked
670 var checkedBoxes = $(".checkboxed input:checkbox:checked");
671 var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, , #selections-toolbar .links label")
672 if ($(checkedBoxes).size()) {
673 $("#selections").html(_("With selected titles: "));
674 $(controls).removeClass("disabled");
676 $("#selections").html(_("Select titles to: "));
677 $(controls).addClass("disabled");
681 [% IF ( OpacHighlightedWords ) %]
682 var q_array = new Array(); // holds search terms if available
684 function highlightOff() {
685 $("td").removeHighlight();
686 $(".highlight_toggle").toggle();
688 function highlightOn() {
691 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
692 q_array[x] = q_array[x].toLowerCase();
693 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
694 if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
695 $(".title").highlight(q_array[x]);
696 $(".author").highlight(q_array[x]);
697 $(".results_summary").highlight(q_array[x]);
700 $(".highlight_toggle").toggle();
703 $(document).ready(function(){
704 [% IF ( OpacHighlightedWords ) %]
705 $('a.title').each(function() {
706 $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
710 $(".cb").click(function(){
711 enableCheckboxActions();
713 enableCheckboxActions();
715 [% IF ( IDreamBooksResults ) %]
716 $('.idbresult').each(function() {
717 var isbn = $(this).children('a').text().replace(/\s*/,'');
720 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
721 // Use Microsoft XDR for IE version 8 or above
722 var xdr = new XDomainRequest();
723 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
724 xdr.onload = function() {
725 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
726 eval(json); // json is now a regular JSON object
727 if(json.total_results > 0 && json.book.rating > 0){
728 $(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+"%");
736 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
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+"%");
749 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) || loggedinusername ) %]
750 param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>";
753 [% IF Koha.Preference( 'opacbookbag' ) == 1 OR Koha.Preference('virtualshelves') %]
754 param1 += "<select class=\"disabled\" name=\"addto\" id=\"addto\"><option>"+_("Add to...")+"</option>";
756 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
757 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
759 [% IF Koha.Preference('virtualshelves') %]
760 [% IF loggedinusername AND add_to_some_private_shelves.count %]
761 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
762 [% SET number_of_private_shelves = 0 %]
763 [% FOREACH s IN add_to_some_private_shelves %]
764 [% IF shelfnumber != s.shelfnumber %]
765 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
766 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
767 [% IF number_of_private_shelves == 10 %][% LAST | html %][% END %]
770 param1 += "<\/optgroup>";
772 [% IF add_to_some_public_shelves.count %]
773 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
774 [% SET number_of_public_shelves = 0 %]
775 [% FOREACH s IN add_to_some_public_shelves %]
776 [% IF shelfnumber != s.shelfnumber %]
777 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
778 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
779 [% IF number_of_public_shelves == 10 %][% LAST | html %][% END %]
782 param1 += "<\/optgroup>";
784 [% 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 ) %]
785 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
787 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
789 param1 += "<\/select> <input type=\"submit\" class=\"btn btn-small\" value=\""+_("Save")+"\" />";
792 $('#sortsubmit').hide();
793 $('.resort').change(function() {
794 $('#bookbag_form').submit();
796 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
797 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
799 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
800 $("span.addto").html(param1);
802 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
803 $("span.addto").html(param1);
807 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
808 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
809 $("#addto").on("change",function(){
812 $(".addto").find("input:submit").click(function(){
817 $("#addto").on("click",function(){
825 addtoOption = $("#addto").find("option:selected");
826 addtoval = addtoOption.val();
827 if(addtoval == "addtolist"){
828 var shelfnumber = addtoOption.attr("id").replace("s","");
830 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
833 } else if(addtoval == "newlist"){
834 [% IF ( loggedinusername ) %]if (vShelfAdd()) {
835 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
837 alert(_("You must be logged in to create or add to lists"));
840 } else if(addtoval == "morelists"){
841 [% IF ( loggedinusername ) %]
843 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
846 alert(_("You must be logged in to create or add to lists"));
850 if(addtoval == "addtocart" || $("#addto").attr("class") == "addtocart"){
855 $("#CheckAll").click(function(){
856 $("#bookbag_form").checkCheckboxes();
857 enableCheckboxActions();
860 $("#CheckNone").click(function(){
861 $("#bookbag_form").unCheckCheckboxes();
862 enableCheckboxActions();
866 [% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %]
867 $("#placehold").html("<input class=\"hold disabled\" type=\"submit\" value=\""+_("Place hold")+"\"/>");
868 $("#placehold").find("input:submit").click(function(){
874 [% IF ( query_desc ) %]
875 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
876 var querystring = "[% querystring |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
877 [% IF ( OpacHighlightedWords ) %]
878 q_array = query_desc.split(" ");
879 // ensure that we don't have "" at the end of the array, which can
880 // break the highlighter
881 while (q_array.length > 0 && q_array[q_array.length-1] == "") {
882 q_array = q_array.splice(0,-1);
885 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
886 $("#highlight_toggle_off").show().click(function() {highlightOff();});
888 [% IF ( OverDriveEnabled ) %]
889 var $overdrive_results = $( '<div id="overdrive-results">' + _( 'Searching OverDrive...' ) + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
890 $( '#numresults' ) .append( ' ' )
891 .append( $overdrive_results );
892 KOHA.OverDrive.Search( "[% OverDriveLibraryID | html %]", querystring, 1, 0, function( data ) {
894 $overdrive_results.html( _( 'Error searching OverDrive collection' ) );
898 if ( data.totalItems ) {
899 $overdrive_results.html( _( 'Found' ) + ' <a href="/cgi-bin/koha/opac-overdrive-search.pl?q=' + escape( querystring ) + '">' + data.totalItems + ' ' + _( 'results' ) + '</a> ' + _( 'in OverDrive collection' ) );
901 $overdrive_results.remove();
905 [% IF ( OpenLibrarySearch ) %]
906 var $openlibrary_results = $( '<div id="openlibrary-results">' + _( 'Searching Open Library...' ) + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
907 $( '#numresults' ) .append( ' ' )
908 .append( $openlibrary_results );
909 KOHA.OpenLibrary.search( querystring, null, function( data ) {
911 $openlibrary_results.html( _( 'Error searching OpenLibrary collection' ) );
915 if ( data.numFound > 0 ) {
916 $openlibrary_results.html( _( 'Found' ) + ' <a href="' + KOHA.OpenLibrary.searchUrl(querystring) + '" target="openlibrary">' + data.numFound + ' ' + _( 'results' ) + '</a> ' + _( 'in OpenLibrary collection' ) );
918 $openlibrary_results.remove();
924 [% IF ( TagsInputEnabled && loggedinusername ) %]
925 $("#tagsel_tag").click(function(){
929 $("#tagsel_cancel").click(function(){
933 $("#tagsel_button").click(function(){
938 $(".tag_add").click(function(){
939 var thisid = $(this).attr("id");
940 thisid = thisid.replace("tag_add","");
941 $(this).addClass("hidden");
942 $("#tagform"+thisid).show();
943 $("#newtag"+thisid).focus();
944 $("#newtag"+thisid+"_status").empty().hide();
947 $(".cancel_tag_add").click(function(){
948 var thisid = $(this).attr("id");
949 thisid = thisid.replace("cancel","");
950 $("#tagform"+thisid).hide();
951 $("#tag_add"+thisid).removeClass("hidden");
952 $("#newtag"+thisid).val("");
953 $("#newtag"+thisid+"_status").empty().hide();
956 $(".tagbutton").click(function(){
957 var thisid = $(this).attr("title");
958 var tag = $("#newtag"+thisid).val();
959 if (!tag || (tag == "")) {
960 alert(MSG_NO_TAG_SPECIFIED);
963 KOHA.Tags.add_tag_button(thisid, tag);
968 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
969 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
970 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
971 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
972 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
975 [% IF ( DidYouMean ) %]
976 $("#didyoumean").load("/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring |uri %]",
978 $(this).addClass("dym-loaded");
982 $("input.newtag").on('keydown', function(e){
983 if (e.keyCode == 13) { e.preventDefault(); }