3 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %]
4 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog ›
8 [% IF ( searchdesc ) %]
9 Results of search [% IF ( query_desc ) %]for '[% query_desc | html%]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]
11 You did not specify any search criteria.
13 [% INCLUDE 'doc-head-close.inc' %]
14 [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %]
15 [% BLOCK cssinclude %]
16 [% Asset.css("css/jquery.rating.css") %]
20 <link rel="alternate" type="application/rss+xml" title="[% LibraryName |html %] Search RSS feed" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi |uri %]&count=[% countrss |uri %]&sort_by=acqdate_dsc&format=rss2" />
23 [% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %]
24 [% INCLUDE 'masthead.inc' %]
27 <ul class="breadcrumb">
28 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
30 [% IF ( searchdesc ) %]
31 <a href="#">Results of search [% IF ( query_desc ) %]for '[% query_desc | html%]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]</a>
33 <a href="#">You did not specify any search criteria</a>
38 [% UNLESS ( total ) %]
39 <div class="container-fluid maincontent">
40 <div class="row-fluid">
42 <strong>No results found!</strong>
44 [% IF ( searchdesc ) %]
45 No results found for that in [% LibraryName %] catalog. <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi | url %][% limit_cgi | html | url %]&format=rss2" class="rsssearchlink noprint"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a>
47 You did not specify any search criteria.
50 [% IF ( ReturnPath ) %]
51 <div class="returntosearch">
52 <p><a href="[% ReturnPath %]">Return to the last advanced search</a></p>
55 [% IF ( OPACNoResultsFound ) %]
56 <div id="noresultsfound">
57 [% OPACNoResultsFound %]
60 </div> <!-- / .span12 -->
61 </div> <!-- / .row-fluid -->
62 </div> <!-- / .container-fluid -->
63 [% END # / UNLESS searchdesc %]
65 <div id="maincontent" class="container-fluid">
66 <div class="row-fluid">
67 [% IF ( opacfacets && total ) %]
69 <div id="facetcontainer">
71 [% INCLUDE 'opac-facets.inc' %]
77 [% IF ( opacfacets && total ) %]<div class="span10 maincontent">[% ELSE %]<div class="span12 maincontent">[% END %]
79 [% IF ( searchdesc ) %]
81 [% IF ( total ) %]<strong>Your search returned [% total |html %] results.</strong>
84 [% FOREACH relate IN related %]
85 [% relate.related_search %]
89 <a href="[% OPACBaseURL %]/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 %]/[% theme %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" class="rsssearchicon"/></a>
90 [% END # / IF total %]
92 [% END # / IF searchdesc %]
94 <div id="userresults">
95 [% IF ( DidYouMean ) %]
96 <div id="didyoumean">Not what you expected? Check for <a href="/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring |uri %]">suggestions</a></div>
99 <div id="top-pages">[% INCLUDE 'page-numbers.inc' %]</div>
101 [% IF ( koha_spsuggest ) %]
103 <ul style="list-style: none;">
104 [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
106 <a href="/cgi-bin/koha/opac-search.pl?q=[% SPELL_SUGGES.spsuggestion %]">[% SPELL_SUGGES.spsuggestion %]</a>
110 [% END # / IF koha_spsuggest%]
112 [% IF ( ReturnPath ) %]
113 <div class="returntosearch">
114 <p><a href="[% ReturnPath %]">Return to the last advanced search</a></p>
118 [% IF ( query_error ) %]
119 <div class="dialog alert">
125 <!-- Search Results Table -->
128 <div class="searchresults">
129 <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
130 [% IF ( searchdesc ) %]
131 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
132 <input type="hidden" name="[% QUERY_INPUT.input_name |html %]" value="[% QUERY_INPUT.input_value |html %]"/>
134 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
135 <input type="hidden" name="[% LIMIT_INPUT.input_name |html %]" value="[% LIMIT_INPUT.input_value |html %]"/>
137 [% END # IF /searchdesc %]
139 <div id="toolbar" class="toolbar clearfix">
140 [% IF ( OpacHighlightedWords ) %]
141 <div class="highlight_controls noprint">
142 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
143 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
147 <div class="sort_by pull-right">
148 <select id="sort_by" class="resort" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select>
149 <input type="submit" class="btn btn-small clearfix" id="sortsubmit" value="Go" />
152 </div> <!-- / #toolbar -->
154 <div id="selections-toolbar" class="toolbar noprint">
155 <!-- checkall, clearall are now needed for placehold -->
156 <span class="checkall"></span>
157 <span class="clearall"></span> <span class="sep">|</span>
160 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
161 <span class="addto"></span>
163 <span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span>
165 [% IF ( TagsInputEnabled && loggedinusername ) %]
166 <span id="tagsel_span">
167 <input id="tagsel_tag" class="disabled" type="submit" value="Tag"/>
169 <div id="tagsel_form" style="display:none">
170 <label for="tagsel_new">New tag:</label>
171 <input name="tagsel_new" id="tagsel_new" maxlength="100" />
172 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="Add" type="submit" value="Add" />
173 <a href="#" id="tagsel_cancel">(done)</a>
175 <div id="tagsel_status" class="tagsel_tatus" style="display:none;">
179 </span> <!-- / .links -->
180 </div> <!-- / #selections-toolbar -->
182 <!-- TABLE RESULTS START -->
183 <table class="table table-striped">
185 <!-- Actual Search Results -->
186 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
188 [% # Cell 1: Checkbox %]
189 <td class="select selectcol">
190 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
191 <input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>
193 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
194 <input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>
196 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
197 [% UNLESS ( SEARCH_RESULT.norequests ) %]
198 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]<input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>
201 [% END # IF RequestOnOpac %]
202 [% END # IF virtualshelves %]
203 [% END # IF opacbookbag%]
205 [% # Cell 2: Show result number if OpacHiddenItems is empty %]
206 <td class="select selectcol">
207 [% UNLESS suppress_result_number %]
208 [% SEARCH_RESULT.result_number %].
212 [% IF ( !item_level_itypes && !noItemTypeImages ) %]
213 [% # Cell 3: Show item type image %]
214 <td class="itypecol">
215 [% IF ( SEARCH_RESULT.imageurl ) %]
216 <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" alt="[% SEARCH_RESULT.description %]" />
218 [% IF ( SEARCH_RESULT.score_avg ) %]
219 <img src="[% themelang %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/>
224 [% # Cell 4: Search result details and controls %]
225 <td class="bibliocol">
226 <div class="coverimages itemtype_[% SEARCH_RESULT.itemtype %]">
227 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">
228 [% IF ( OPACLocalCoverImages ) %]
229 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>
231 [% IF ( OPACAmazonCoverImages ) %]
232 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
233 <span title="[% SEARCH_RESULT.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="item-thumbnail" /></span>
235 <span class="no-image">No cover image available</span>
239 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
240 [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
241 <span title="[% SEARCH_RESULT.biblionumber %]" id="syndetics-thumbnail[% loop.count %]"><img src="https://secure.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[% SEARCH_RESULT.normalized_oclc %]" alt="" class="item-thumbnail" /></span>
243 <span class="no-image">No cover image available</span>
247 [% IF ( GoogleJackets ) %]
248 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
249 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></span>
251 <span class="no-image">No cover image available</span>
255 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
256 [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
258 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
260 <span class="no-image">No cover image available</span>
264 [% IF OpenLibraryCovers %]
265 [% IF SEARCH_RESULT.normalized_isbn %]
266 <span title="[% SEARCH_RESULT.biblionumber %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></span>
268 <span class="no-image">No cover image available</span>
272 [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %]
273 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
275 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
277 <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 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]">
286 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
289 <span class="no-image">No cover image available</span>
293 [% IF ( IDreamBooksResults && SEARCH_RESULT.normalized_isbn ) %]
294 <div class="idbresult" style="display: none;">
295 [% IF ( IDreamBooksReviews ) %]
296 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]#idb_critic_reviews">
298 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">
300 [% SEARCH_RESULT.normalized_isbn %]</a>
304 [% IF ( COinSinOPACResults && SEARCH_RESULT.coins ) %]
305 <!-- COinS / Openurl -->
306 <span class="Z3988" title="[% SEARCH_RESULT.coins %]"></span>
309 [% IF ( OPACXSLTResultsDisplay ) %]
310 [% SEARCH_RESULT.XSLTResultsRecord %]
312 [% IF ( BiblioDefaultViewmarc ) %]
313 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
315 [% IF ( BiblioDefaultViewisbd ) %]
316 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
318 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
322 [% IF ( SEARCH_RESULT.title ) %]
323 [% SEARCH_RESULT.title |html %]
328 [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
329 , [% subtitl.subfield|html %]
332 [% IF ( SEARCH_RESULT.author ) %]
333 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 %]</a>
338 <span class="results_summary publisher">
339 <span class="label">Publication:</span>
340 [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place %] [% END %]
341 [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode|html %][% END %]
342 [% IF ( SEARCH_RESULT.publicationyear ) %]
343 [% SEARCH_RESULT.publicationyear %]
345 [% IF ( SEARCH_RESULT.copyrightdate ) %]
346 [% SEARCH_RESULT.copyrightdate %]
349 [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages %][% END %]
350 [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes|html %][% END %]
351 [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size %][% END %]
352 [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp %])</i>[% END %]
355 [% IF ( SEARCH_RESULT.summary ) %]
356 <span class="result_summary">
357 [% SEARCH_RESULT.summary %]
361 [% IF ( SEARCH_RESULT.copyrightdate ) %]
362 <span class="results_summary date">
363 <span class="label">Date:</span>
364 [% SEARCH_RESULT.copyrightdate %]
368 <span class="results_summary">
369 <span class="label">Availability:</span>
370 [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
371 <span class="available"><strong>Items available:</strong>
372 [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
373 [% IF available_items_loo.this_branch %]
374 <span class="highlight-row-results">
379 [% IF ( singleBranchMode ) %]
380 [% available_items_loo.location %]
382 [% available_items_loo.branchname %]
385 [% IF ( OPACItemsResultsDisplay ) %]
386 [% UNLESS ( singleBranchMode ) %][% available_items_loo.location %][% END %]
387 [% 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 %]</a>][% END %]
389 ([% available_items_loo.count %]),
391 [% END # / FOREACH available_items_loo %]
394 [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS ) %]
395 [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
396 <span id="alternateholdings">[% ALTERNATEHOLDING.holding %]</span>,
399 <span class="unavailable">No items available:</span>
401 [% END # / IF SEARCH_RESULT.available_items_loop.size %]
403 <span class="unavailable">
404 [% IF ( SEARCH_RESULT.onloancount ) %] Checked out ([% SEARCH_RESULT.onloancount %]), [% END %]
405 [% IF ( SEARCH_RESULT.withdrawncount ) %] Withdrawn ([% SEARCH_RESULT.withdrawncount %]), [% END %]
406 [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount %]),[% END %][% END %]
407 [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount %]),[% END %]
408 [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount %]),[% END %]
409 [% IF ( SEARCH_RESULT.onholdcount ) %] On hold ([% SEARCH_RESULT.onholdcount %]),[% END %]
410 [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount %]),[% END %]
412 </span> <!-- / .results_summary -->
413 [% END # / IF OPACXSLTResultsDisplay %]
415 [% IF ( SEARCH_RESULT.score_avg ) %]
416 <div class="results_summary">
417 [% FOREACH i IN [ 1 2 3 4 5 ] %]
418 [% IF ( SEARCH_RESULT.score_int >= i ) %]
419 <div class="star-rating rater-[% i %] star star-rating-applied star-rating-readonly star-rating-on"><a title="[% i %]">[% i %]</a></div>
421 <div class="star-rating rater-[% i %] star star-rating-applied star-rating-readonly"><a title="[% i %]">[% i %]</a></div>
424 <span id="babeltheque-rating_total_[% SEARCH_RESULT.biblionumber %]"> [% SEARCH_RESULT.score_avg %] / 5 (on [% SEARCH_RESULT.num_scores %] rates)</span>
426 [% IF ( SEARCH_RESULT.num_critics ) %]
427 <span class="social_data">[% SEARCH_RESULT.num_critics %] Internet user critics</span>
429 [% IF ( SEARCH_RESULT.num_critics_pro ) %]
430 <span class="social_data">[% SEARCH_RESULT.num_critics_pro %] Professional critics</span>
432 [% IF ( SEARCH_RESULT.num_videos ) %]
433 <span class="social_data">[% SEARCH_RESULT.num_videos %] Video extracts</span>
435 [% IF ( SEARCH_RESULT.num_quotations ) %]
436 <span class="social_data">[% SEARCH_RESULT.num_quotations %] Quotations</span>
438 </div> <!-- / .results_summary -->
439 [% END # / IF SEARCH_RESULT.score_avg %]
441 [% IF ( LibraryThingForLibrariesID ) %]
442 <div class="ltfl_reviews"></div>
445 [% IF ( TagsShowEnabled && SEARCH_RESULT.TagLoop.size ) %]
446 <div class="results_summary tags">
447 <span class="label">Tags:</span>
449 [% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]
451 <a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term %]</a>
452 <span class="weight">([% TagLoo.weight_total %])</span>
459 [% IF Koha.Preference('virtualshelves') AND SEARCH_RESULT.shelves.count %]
460 <div class="results_summary shelves">
461 <span class="label">Lists:</span>
463 [% FOREACH shelf IN SEARCH_RESULT.shelves %]
464 <li><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]">[% shelf.shelfname %]</a></li>
465 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
472 [% IF ( SEARCH_RESULT.searchhighlightblob ) %]
473 <span class="results_summary">
474 <span class="label">Match:</span>
475 [% SEARCH_RESULT.searchhighlightblob %]
479 [% IF ( OpacStarRatings == 'all' ) %]
480 <div class="results_summary ratings">
481 [% SET rating_avg = SEARCH_RESULT.ratings.get_avg_rating() %]
482 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
483 [% FOREACH i IN [ 1 2 3 4 5 ] %]
484 [% IF rating_avg_int == i %]
485 <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber %]" value="[% i %]" checked="checked" disabled="disabled" />
487 <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber %]" value="[% i %]" disabled="disabled" />
491 [% IF SEARCH_RESULT.ratings.count > 0 %]
492 <span id="rating_total_[% SEARCH_RESULT.biblionumber %]"> ([% SEARCH_RESULT.ratings.count %] votes)</span>
496 </div> <!-- / .results_summary -->
497 [% END # / IF OpacStarRatings %]
499 <div class="actions-menu noprint">
500 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
501 [% UNLESS ( SEARCH_RESULT.norequests ) %]
502 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
503 <span class="actions"><a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Place hold</a></span><!-- add back when available 0 holds in queue-->
504 [% END # / IF opacuserlogin && holdable %]
505 [% END # UNLESS SEARCH_RESULT.norequests %]
506 [% END # IF RequestOnOpac %]
508 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
509 [% IF Koha.Preference('ArticleRequests') %]
510 <span class="actions"><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Request article</a></span>
514 [% IF ( TagsInputEnabled ) %]
515 [% IF ( loggedinusername ) %]
516 <span class="actions"><a class="tag_add" id="tag_add[% SEARCH_RESULT.biblionumber %]" href="#">Add tag</a></span>
517 <div id="tagform[% SEARCH_RESULT.biblionumber %]" class="tag_results_input" style="display:none;">
518 <label for="newtag[% SEARCH_RESULT.biblionumber %]">New tag(s), separated by a comma:</label>
519 <input type="text" name="newtag[% SEARCH_RESULT.biblionumber %]" id="newtag[% SEARCH_RESULT.biblionumber %]" class="newtag" maxlength="100" />
520 <input name="tagbutton" class="btn btn-small tagbutton" title="[% SEARCH_RESULT.biblionumber %]" type="submit" value="Add" />
521 <a class="cancel_tag_add" id="cancel[% SEARCH_RESULT.biblionumber %]" href="#">(done)</a>
523 <span id="newtag[% SEARCH_RESULT.biblionumber %]_status" class="tagstatus" style="display:none;">
526 [% ELSIF ( loop.first ) %]
527 <span class="actions"><span id="login4tags">Log in to add tags.</span></span>
528 [% END # IF loggedinusername %]
529 [% END # if TagsInputEnabled %]
531 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
532 <span class="actions"><a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]'); return false;">Save to Lists</a></span>
535 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
536 [% IF ( SEARCH_RESULT.incart ) %]
537 <span class="actions"><a class="addtocart cart[% SEARCH_RESULT.biblionumber %]" href="#" onclick="addRecord('[% SEARCH_RESULT.biblionumber %]'); return false;">In your cart</a> <a class="cartRemove cartR[% SEARCH_RESULT.biblionumber %]" href="#" onclick="delSingleRecord('[% SEARCH_RESULT.biblionumber %]'); return false;">(remove)</a></span>
539 <span class="actions"><a class="addtocart cart[% SEARCH_RESULT.biblionumber %]" href="#" onclick="addRecord('[% SEARCH_RESULT.biblionumber %]'); return false;">Add to cart</a> <a style="display:none;" class="cartRemove cartR[% SEARCH_RESULT.biblionumber %]" href="#" onclick="delSingleRecord('[% SEARCH_RESULT.biblionumber %]'); return false;">(remove)</a></span>
541 [% END # / IF opacbookbag %]
544 [% INCLUDE "openlibrary-readapi.inc" bib = SEARCH_RESULT %]
548 [% END # / FOREACH SEARCH_RESULT %]
550 </form> <!-- / #bookbag_form -->
552 <form id="hold_form" name="hold_form" method="get" action="/cgi-bin/koha/opac-reserve.pl">
553 <!-- The value will be set by holdBiblioNums() in basket.js -->
554 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value=""/>
556 </div> <!-- / .searchresults -->
558 <div id="bottom-pages">[% INCLUDE 'page-numbers.inc' %]</div>
560 [% END # / IF total %]
562 [% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername || Koha.Preference( 'ILLModule' ) == 1 ) %]
563 <div class="suggestion">
564 Not finding what you're looking for?
566 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
567 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
569 [% IF ( loggedinusername ) %]
570 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
573 [% IF Koha.Preference( 'ILLModule' ) == 1 && loggedinusername %]
574 <li>Make an <a href="/cgi-bin/koha/opac-illrequests.pl?op=create">Interlibrary loan request</a></li>
579 </div> <!-- / #userresults -->
580 </div> <!-- /.span10/12 -->
581 </div> <!-- / .row-fluid -->
582 </div> <!-- / .container-fluid -->
583 </div><!-- / .main -->
585 [% INCLUDE 'opac-bottom.inc' %]
586 [% BLOCK jsinclude %]
587 [% IF ( LibraryThingForLibrariesID ) %]
588 <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]&systype=koha"></script>
590 [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") %][% END %]
591 [% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") %][% END %]
592 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
593 [% Asset.js("js/authtoresults.js") %]
594 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") %]
597 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
598 function holdMultiple() {
599 var checkedBiblioNums = ""; // Separated by "/"
600 var checkedCount = 0;
601 if(document.bookbag_form.biblionumber.length > 0) {
602 for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
603 if (document.bookbag_form.biblionumber[i].checked) {
604 checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/");
610 if (checkedCount > 0) {
611 holdBiblioNums(checkedBiblioNums);
613 alert(MSG_NO_RECORD_SELECTED);
617 function holdBiblioNums(numList) {
618 // numList: biblio numbers separated by "/"
619 $("#hold_form_biblios").attr("value", numList);
620 $("#hold_form").submit();
623 [% IF ( TagsInputEnabled && loggedinusername ) %]
624 function tagSelected() {
625 var checkedBoxes = $(".searchresults :checkbox:checked");
626 if ($(checkedBoxes).size() == 0) {
627 alert(MSG_NO_RECORD_SELECTED);
629 $("#tagsel_tag").hide();
631 $("#tagsel_form").show();
635 function tagCanceled() {
636 $("#tagsel_form").hide();
637 $("#tagsel_tag").show();
639 $("#tagsel_new").val("");
640 $("#tagsel_status, .tagstatus").empty().hide();
643 function tagAdded() {
644 var checkedBoxes = $(".searchresults :checkbox:checked");
645 if ($(checkedBoxes).size() == 0) {
646 alert(MSG_NO_RECORD_SELECTED);
650 var tag = $("#tagsel_new").val();
651 if (!tag || (tag == "")) {
652 alert(MSG_NO_TAG_SPECIFIED);
657 for (var i = 0; i < $(checkedBoxes).size(); i++) {
658 var box = $(checkedBoxes).get(i);
659 bibs[i] = $(box).val();
662 KOHA.Tags.add_multitags_button(bibs, tag);
667 function enableCheckboxActions(){
668 // Enable/disable controls if checkboxes are checked
669 var checkedBoxes = $(".checkboxed input:checkbox:checked");
670 var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, , #selections-toolbar .links label")
671 if ($(checkedBoxes).size()) {
672 $("#selections").html(_("With selected titles: "));
673 $(controls).removeClass("disabled");
675 $("#selections").html(_("Select titles to: "));
676 $(controls).addClass("disabled");
680 [% IF ( OpacHighlightedWords ) %]
681 var q_array = new Array(); // holds search terms if available
683 function highlightOff() {
684 $("td").removeHighlight();
685 $(".highlight_toggle").toggle();
687 function highlightOn() {
690 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
691 q_array[x] = q_array[x].toLowerCase();
692 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
693 if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
694 $(".title").highlight(q_array[x]);
695 $(".author").highlight(q_array[x]);
696 $(".results_summary").highlight(q_array[x]);
699 $(".highlight_toggle").toggle();
702 $(document).ready(function(){
703 [% IF ( OpacHighlightedWords ) %]
704 $('a.title').each(function() {
705 $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
709 $(".cb").click(function(){
710 enableCheckboxActions();
712 enableCheckboxActions();
714 [% IF ( IDreamBooksResults ) %]
715 $('.idbresult').each(function() {
716 var isbn = $(this).children('a').text().replace(/\s*/,'');
719 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
720 // Use Microsoft XDR for IE version 8 or above
721 var xdr = new XDomainRequest();
722 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
723 xdr.onload = function() {
724 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
725 eval(json); // json is now a regular JSON object
726 if(json.total_results > 0 && json.book.rating > 0){
727 $(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+"%");
735 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
736 if(json.total_results > 0 && json.book.rating > 0){
737 $(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+"%");
748 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) || loggedinusername ) %]
749 param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>";
752 [% IF Koha.Preference( 'opacbookbag' ) == 1 OR Koha.Preference('virtualshelves') %]
753 param1 += "<select class=\"disabled\" name=\"addto\" id=\"addto\"><option>"+_("Add to...")+"</option>";
755 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
756 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
758 [% IF Koha.Preference('virtualshelves') %]
759 [% IF loggedinusername AND add_to_some_private_shelves.count %]
760 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
761 [% SET number_of_private_shelves = 0 %]
762 [% FOREACH s IN add_to_some_private_shelves %]
763 [% IF shelfnumber != s.shelfnumber %]
764 param1 += "<option id=\"s[% s.shelfnumber %]\" value=\"addtolist\">[% s.shelfname |html %]<\/option>";
765 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
766 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
769 param1 += "<\/optgroup>";
771 [% IF add_to_some_public_shelves.count %]
772 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
773 [% SET number_of_public_shelves = 0 %]
774 [% FOREACH s IN add_to_some_public_shelves %]
775 [% IF shelfnumber != s.shelfnumber %]
776 param1 += "<option id=\"s[% s.shelfnumber %]\" value=\"addtolist\">[% s.shelfname |html %]<\/option>";
777 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
778 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
781 param1 += "<\/optgroup>";
783 [% 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 ) %]
784 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
786 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
788 param1 += "<\/select> <input type=\"submit\" class=\"btn btn-small\" value=\""+_("Save")+"\" />";
791 $('#sortsubmit').hide();
792 $('.resort').change(function() {
793 $('#bookbag_form').submit();
795 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
796 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
798 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
799 $("span.addto").html(param1);
801 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
802 $("span.addto").html(param1);
806 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
807 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
808 $("#addto").on("change",function(){
811 $(".addto").find("input:submit").click(function(){
816 $("#addto").on("click",function(){
824 addtoOption = $("#addto").find("option:selected");
825 addtoval = addtoOption.val();
826 if(addtoval == "addtolist"){
827 var shelfnumber = addtoOption.attr("id").replace("s","");
829 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
832 } else if(addtoval == "newlist"){
833 [% IF ( loggedinusername ) %]if (vShelfAdd()) {
834 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
836 alert(_("You must be logged in to create or add to lists"));
839 } else if(addtoval == "morelists"){
840 [% IF ( loggedinusername ) %]
842 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
845 alert(_("You must be logged in to create or add to lists"));
849 if(addtoval == "addtocart" || $("#addto").attr("class") == "addtocart"){
854 $("#CheckAll").click(function(){
855 $("#bookbag_form").checkCheckboxes();
856 enableCheckboxActions();
859 $("#CheckNone").click(function(){
860 $("#bookbag_form").unCheckCheckboxes();
861 enableCheckboxActions();
865 [% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %]
866 $("#placehold").html("<input class=\"hold disabled\" type=\"submit\" value=\""+_("Place hold")+"\"/>");
867 $("#placehold").find("input:submit").click(function(){
873 [% IF ( query_desc ) %]
874 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
875 var querystring = "[% querystring |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
876 [% IF ( OpacHighlightedWords ) %]
877 q_array = query_desc.split(" ");
878 // ensure that we don't have "" at the end of the array, which can
879 // break the highlighter
880 while (q_array.length > 0 && q_array[q_array.length-1] == "") {
881 q_array = q_array.splice(0,-1);
884 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
885 $("#highlight_toggle_off").show().click(function() {highlightOff();});
887 [% IF ( OverDriveEnabled ) %]
888 var $overdrive_results = $( '<div id="overdrive-results">' + _( 'Searching OverDrive...' ) + ' <img class="throbber" src="[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
889 $( '#numresults' ) .append( ' ' )
890 .append( $overdrive_results );
891 KOHA.OverDrive.Search( "[% OverDriveLibraryID %]", querystring, 1, 0, function( data ) {
893 $overdrive_results.html( _( 'Error searching OverDrive collection' ) );
897 if ( data.totalItems ) {
898 $overdrive_results.html( _( 'Found' ) + ' <a href="/cgi-bin/koha/opac-overdrive-search.pl?q=' + escape( querystring ) + '">' + data.totalItems + ' ' + _( 'results' ) + '</a> ' + _( 'in OverDrive collection' ) );
900 $overdrive_results.remove();
904 [% IF ( OpenLibrarySearch ) %]
905 var $openlibrary_results = $( '<div id="openlibrary-results">' + _( 'Searching Open Library...' ) + ' <img class="throbber" src="[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
906 $( '#numresults' ) .append( ' ' )
907 .append( $openlibrary_results );
908 KOHA.OpenLibrary.search( querystring, null, function( data ) {
910 $openlibrary_results.html( _( 'Error searching OpenLibrary collection' ) );
914 if ( data.numFound > 0 ) {
915 $openlibrary_results.html( _( 'Found' ) + ' <a href="' + KOHA.OpenLibrary.searchUrl(querystring) + '" target="openlibrary">' + data.numFound + ' ' + _( 'results' ) + '</a> ' + _( 'in OpenLibrary collection' ) );
917 $openlibrary_results.remove();
923 [% IF ( TagsInputEnabled && loggedinusername ) %]
924 $("#tagsel_tag").click(function(){
928 $("#tagsel_cancel").click(function(){
932 $("#tagsel_button").click(function(){
937 $(".tag_add").click(function(){
938 var thisid = $(this).attr("id");
939 thisid = thisid.replace("tag_add","");
940 $(this).addClass("hidden");
941 $("#tagform"+thisid).show();
942 $("#newtag"+thisid).focus();
943 $("#newtag"+thisid+"_status").empty().hide();
946 $(".cancel_tag_add").click(function(){
947 var thisid = $(this).attr("id");
948 thisid = thisid.replace("cancel","");
949 $("#tagform"+thisid).hide();
950 $("#tag_add"+thisid).removeClass("hidden");
951 $("#newtag"+thisid).val("");
952 $("#newtag"+thisid+"_status").empty().hide();
955 $(".tagbutton").click(function(){
956 var thisid = $(this).attr("title");
957 var tag = $("#newtag"+thisid).val();
958 if (!tag || (tag == "")) {
959 alert(MSG_NO_TAG_SPECIFIED);
962 KOHA.Tags.add_tag_button(thisid, tag);
967 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
968 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
969 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
970 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
971 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]');
974 [% IF ( DidYouMean ) %]
975 $("#didyoumean").load("/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring |uri %]",
977 $(this).addClass("dym-loaded");
981 $("input.newtag").on('keydown', function(e){
982 if (e.keyCode == 13) { e.preventDefault(); }