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' %]
21 [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %]
22 [% BLOCK cssinclude %]
23 [% Asset.css("css/jquery.rating.css") | $raw %]
27 <link rel="alternate" type="application/rss+xml" title="[% LibraryName | html %] Search RSS feed" href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&count=[% countrss |uri %]&sort_by=acqdate_dsc&format=rss2" />
30 [% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %]
31 [% INCLUDE 'masthead.inc' %]
34 <ul class="breadcrumb">
35 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
36 [% IF ( searchdesc ) %]
37 [% IF ( ReturnPath ) %]
39 <a href="[% ReturnPath | url %]">Advanced search</a> <span class="divider">›</span>
44 <a href="#" title="You searched [% IF ( query_desc ) %] for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]">Results of search for '[% ms_value | html %]'</a>
46 <a href="#" title="You searched [% IF ( query_desc ) %] for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]">Search results</a>
51 <a href="#">You did not specify any search criteria</a>
56 [% UNLESS ( total ) %]
57 <div class="container-fluid maincontent">
58 <div class="row-fluid">
60 <strong>No results found!</strong>
62 [% IF ( searchdesc ) %]
63 No results found for that in [% LibraryName | html %] catalog. <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>
65 You did not specify any search criteria.
68 [% IF ( ReturnPath ) %]
69 <div class="returntosearch">
70 <p><a href="[% ReturnPath | url %]">Return to the last advanced search</a></p>
73 [% IF ( OPACNoResultsFound ) %]
74 <div id="noresultsfound">
75 [% OPACNoResultsFound | $raw %]
78 </div> <!-- / .span12 -->
79 </div> <!-- / .row-fluid -->
80 </div> <!-- / .container-fluid -->
81 [% END # / UNLESS searchdesc %]
83 <div id="maincontent" class="container-fluid">
84 <div class="row-fluid">
85 [% IF ( opacfacets && total ) %]
87 <div id="facetcontainer">
89 [% INCLUDE 'opac-facets.inc' %]
95 [% IF ( opacfacets && total ) %]<div class="span10 maincontent">[% ELSE %]<div class="span12 maincontent">[% END %]
97 [% IF ( searchdesc ) %]
99 [% IF ( total ) %]<strong>Your search returned [% total | html %] results.</strong>
102 [% FOREACH relate IN related %]
103 [% relate.related_search | html %]
107 <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>
108 [% END # / IF total %]
110 [% END # / IF searchdesc %]
112 <div id="userresults">
113 [% IF ( DidYouMean ) %]
114 <div id="didyoumean">Not what you expected? Check for <a href="/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring |uri %]">suggestions</a></div>
117 <div id="top-pages">[% INCLUDE 'page-numbers.inc' %]</div>
119 [% IF ( koha_spsuggest ) %]
121 <ul style="list-style: none;">
122 [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
124 <a href="/cgi-bin/koha/opac-search.pl?q=[% SPELL_SUGGES.spsuggestion | uri %]">[% SPELL_SUGGES.spsuggestion | html %]</a>
128 [% END # / IF koha_spsuggest%]
130 [% IF ( ReturnPath ) %]
131 <div class="returntosearch">
132 <p><a href="[% ReturnPath | url %]">Return to the last advanced search</a></p>
136 [% IF ( query_error ) %]
137 <div class="dialog alert">
139 [% query_error | html %]
143 <!-- Search Results Table -->
146 <div class="searchresults">
147 <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
148 [% IF ( searchdesc ) %]
149 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
150 <input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/>
152 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
153 <input type="hidden" name="[% LIMIT_INPUT.input_name | html %]" value="[% LIMIT_INPUT.input_value | html %]"/>
155 [% END # IF /searchdesc %]
157 <div id="toolbar" class="toolbar clearfix">
158 [% IF ( OpacHighlightedWords ) %]
159 <div class="highlight_controls noprint">
160 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
161 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
165 <div class="sort_by pull-right">
166 <select id="sort_by" class="resort" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select>
167 <input type="submit" class="btn btn-small clearfix" id="sortsubmit" value="Go" />
170 </div> <!-- / #toolbar -->
172 <div id="selections-toolbar" class="toolbar noprint">
173 <!-- checkall, clearall are now needed for placehold -->
174 <span class="checkall"></span>
175 <span class="clearall"></span> <span class="sep">|</span>
178 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
179 <span class="addto"></span>
181 <span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span>
183 [% IF ( TagsInputEnabled && loggedinusername ) %]
184 <span id="tagsel_span">
185 <input id="tagsel_tag" class="disabled" type="submit" value="Tag"/>
187 <div id="tagsel_form" style="display:none">
188 <label for="tagsel_new">New tag:</label>
189 <input type="text" name="tagsel_new" id="tagsel_new" maxlength="100" />
190 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="Add" type="submit" value="Add" />
191 <a href="#" id="tagsel_cancel">(done)</a>
193 <div id="tagsel_status" class="tagsel_tatus" style="display:none;">
197 </span> <!-- / .links -->
198 </div> <!-- / #selections-toolbar -->
200 <!-- TABLE RESULTS START -->
201 <table class="table table-striped">
203 <!-- Actual Search Results -->
204 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
206 [% # Cell 1: Checkbox %]
207 <td class="select selectcol">
208 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
209 <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>
211 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
212 <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 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
215 [% UNLESS ( SEARCH_RESULT.norequests ) %]
216 [% 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>
219 [% END # IF RequestOnOpac %]
220 [% END # IF virtualshelves %]
221 [% END # IF opacbookbag%]
223 [% # Cell 2: Show result number if OpacHiddenItems is empty %]
224 <td class="select selectcol">
225 [% UNLESS suppress_result_number %]
226 [% SEARCH_RESULT.result_number | html %].
230 [% IF ( !item_level_itypes && !noItemTypeImages ) %]
231 [% # Cell 3: Show item type image %]
232 <td class="itypecol">
233 [% IF ( SEARCH_RESULT.imageurl ) %]
234 <img src="[% SEARCH_RESULT.imageurl | html %]" title="[% SEARCH_RESULT.description | html %]" alt="[% SEARCH_RESULT.description | html %]" />
236 [% IF ( SEARCH_RESULT.score_avg ) %]
237 <img src="[% themelang | html %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/>
242 [% # Cell 4: Search result details and controls %]
243 <td class="bibliocol">
244 <div class="coverimages itemtype_[% SEARCH_RESULT.itemtype | html %]">
245 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">
246 [% IF ( OPACLocalCoverImages ) %]
247 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
250 [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
251 <span title="[% SEARCH_RESULT.biblionumber | html %]" id="adlibris-thumbnail[% loop.count | html %]">
252 <img src="[% AdlibrisURL | html %]?isbn=[% SEARCH_RESULT.normalized_isbn | html %]"
253 alt="Adlibris thumbnail for ISBN: [% SEARCH_RESULT.normalized_isbn | html %]" class="adlibris-cover" />
256 [% IF ( OPACAmazonCoverImages ) %]
257 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
258 <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>
260 <span class="no-image">No cover image available</span>
264 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
265 [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
266 <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>
268 <span class="no-image">No cover image available</span>
272 [% IF ( GoogleJackets ) %]
273 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
274 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></span>
276 <span class="no-image">No cover image available</span>
280 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
281 [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
283 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
285 <span class="no-image">No cover image available</span>
289 [% IF OpenLibraryCovers %]
290 [% IF SEARCH_RESULT.normalized_isbn %]
291 <span title="[% SEARCH_RESULT.biblionumber | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="openlibrary-thumbnail[% loop.count | html %]"></span>
293 <span class="no-image">No cover image available</span>
297 [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %]
298 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
300 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
302 <span class="no-image">No cover image available</span>
307 [% IF ( BakerTaylorEnabled && BakerTaylorBookstoreURL ) %]
308 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
310 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]">
311 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
314 <span class="no-image">No cover image available</span>
318 [% IF ( IDreamBooksResults && SEARCH_RESULT.normalized_isbn ) %]
319 <div class="idbresult" style="display: none;">
320 [% IF ( IDreamBooksReviews ) %]
321 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]#idb_critic_reviews">
323 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
325 [% SEARCH_RESULT.normalized_isbn | html %]</a>
329 [% IF ( COinSinOPACResults && SEARCH_RESULT.coins ) %]
330 <!-- COinS / Openurl -->
331 <span class="Z3988" title="[% SEARCH_RESULT.coins | html %]"></span>
334 [% IF ( OPACXSLTResultsDisplay ) %]
335 [% SEARCH_RESULT.XSLTResultsRecord | $raw %]
337 [% IF ( BiblioDefaultViewmarc ) %]
338 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
340 [% IF ( BiblioDefaultViewisbd ) %]
341 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
343 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
347 [% IF ( SEARCH_RESULT.title ) %]
348 [% SEARCH_RESULT.title | html %]
353 [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
354 , [% subtitl.subfield | html %]
357 [% IF ( SEARCH_RESULT.author ) %]
358 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>
363 <span class="results_summary publisher">
364 <span class="label">Publication:</span>
365 [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place | html %] [% END %]
366 [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode | html %][% END %]
367 [% IF ( SEARCH_RESULT.publicationyear ) %]
368 [% SEARCH_RESULT.publicationyear | html %]
370 [% IF ( SEARCH_RESULT.copyrightdate ) %]
371 [% SEARCH_RESULT.copyrightdate | html %]
374 [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages | html %][% END %]
375 [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes | html %][% END %]
376 [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size | html %][% END %]
377 [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp | html %])</i>[% END %]
380 [% IF ( SEARCH_RESULT.summary ) %]
381 <span class="result_summary">
382 [% SEARCH_RESULT.summary | html %]
386 [% IF ( SEARCH_RESULT.copyrightdate ) %]
387 <span class="results_summary date">
388 <span class="label">Date:</span>
389 [% SEARCH_RESULT.copyrightdate | html %]
393 <span class="results_summary">
394 <span class="label">Availability:</span>
395 [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
396 <span class="available"><strong>Items available:</strong>
397 [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
398 [% IF available_items_loo.this_branch %]
399 <span class="highlight-row-results">
404 [% IF ( singleBranchMode ) %]
405 [% available_items_loo.location | html %]
407 [% available_items_loo.branchname | html %]
410 [% IF ( OPACItemsResultsDisplay ) %]
411 [% UNLESS ( singleBranchMode ) %][% available_items_loo.location | html %][% END %]
412 [% 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 %]
414 ([% available_items_loo.count | html %]),
416 [% END # / FOREACH available_items_loo %]
419 [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS ) %]
420 [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
421 <span id="alternateholdings">[% ALTERNATEHOLDING.holding | html %]</span>,
424 <span class="unavailable">No items available:</span>
426 [% END # / IF SEARCH_RESULT.available_items_loop.size %]
428 <span class="unavailable">
429 [% IF ( SEARCH_RESULT.onloancount ) %] Checked out ([% SEARCH_RESULT.onloancount | html %]), [% END %]
430 [% IF ( SEARCH_RESULT.withdrawncount ) %] Withdrawn ([% SEARCH_RESULT.withdrawncount | html %]), [% END %]
431 [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount | html %]),[% END %][% END %]
432 [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount | html %]),[% END %]
433 [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount | html %]),[% END %]
434 [% IF ( SEARCH_RESULT.onholdcount ) %] On hold ([% SEARCH_RESULT.onholdcount | html %]),[% END %]
435 [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount | html %]),[% END %]
437 </span> <!-- / .results_summary -->
438 [% END # / IF OPACXSLTResultsDisplay %]
440 [% IF ( SEARCH_RESULT.score_avg ) %]
441 <div class="results_summary">
442 [% FOREACH i IN [ 1 2 3 4 5 ] %]
443 [% IF ( SEARCH_RESULT.score_int >= i ) %]
444 <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>
446 <div class="star-rating rater-[% i | html %] star star-rating-applied star-rating-readonly"><a title="[% i | html %]">[% i | html %]</a></div>
449 <span id="babeltheque-rating_total_[% SEARCH_RESULT.biblionumber | html %]"> [% SEARCH_RESULT.score_avg | html %] / 5 (on [% SEARCH_RESULT.num_scores | html %] rates)</span>
451 [% IF ( SEARCH_RESULT.num_critics ) %]
452 <span class="social_data">[% SEARCH_RESULT.num_critics | html %] Internet user critics</span>
454 [% IF ( SEARCH_RESULT.num_critics_pro ) %]
455 <span class="social_data">[% SEARCH_RESULT.num_critics_pro | html %] Professional critics</span>
457 [% IF ( SEARCH_RESULT.num_videos ) %]
458 <span class="social_data">[% SEARCH_RESULT.num_videos | html %] Video extracts</span>
460 [% IF ( SEARCH_RESULT.num_quotations ) %]
461 <span class="social_data">[% SEARCH_RESULT.num_quotations | html %] Quotations</span>
463 </div> <!-- / .results_summary -->
464 [% END # / IF SEARCH_RESULT.score_avg %]
466 [% IF ( LibraryThingForLibrariesID ) %]
467 <div class="ltfl_reviews"></div>
470 [% IF ( TagsShowEnabled && SEARCH_RESULT.TagLoop.size ) %]
471 <div class="results_summary tags">
472 <span class="label">Tags:</span>
474 [% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]
476 <a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
477 <span class="weight">([% TagLoo.weight_total | html %])</span>
484 [% IF Koha.Preference('virtualshelves') AND SEARCH_RESULT.shelves.count %]
485 <div class="results_summary shelves">
486 <span class="label">Lists:</span>
488 [% FOREACH shelf IN SEARCH_RESULT.shelves %]
489 <li><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]">[% shelf.shelfname | html %]</a></li>
490 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
497 [% IF ( SEARCH_RESULT.searchhighlightblob ) %]
498 <span class="results_summary">
499 <span class="label">Match:</span>
500 [% SEARCH_RESULT.searchhighlightblob | html %]
504 [% IF ( OpacStarRatings == 'all' ) %]
505 <div class="results_summary ratings">
506 [% SET rating_avg = SEARCH_RESULT.ratings.get_avg_rating() %]
507 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
508 [% FOREACH i IN [ 1 2 3 4 5 ] %]
509 [% IF rating_avg_int == i %]
510 <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber | html %]" value="[% i | html %]" checked="checked" disabled="disabled" />
512 <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber | html %]" value="[% i | html %]" disabled="disabled" />
516 [% IF SEARCH_RESULT.ratings.count > 0 %]
517 <span id="rating_total_[% SEARCH_RESULT.biblionumber | html %]"> ([% SEARCH_RESULT.ratings.count | html %] votes)</span>
521 </div> <!-- / .results_summary -->
522 [% END # / IF OpacStarRatings %]
524 <div class="actions-menu noprint">
525 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
526 [% UNLESS ( SEARCH_RESULT.norequests ) %]
527 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
528 <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-->
529 [% END # / IF opacuserlogin && holdable %]
530 [% END # UNLESS SEARCH_RESULT.norequests %]
531 [% END # IF RequestOnOpac %]
533 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
534 [% IF SEARCH_RESULT.artreqpossible %]
535 <span class="actions"><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Request article</a></span>
539 [% IF ( TagsInputEnabled ) %]
540 [% IF ( loggedinusername ) %]
541 <span class="actions"><a class="tag_add" id="tag_add[% SEARCH_RESULT.biblionumber | html %]" href="#">Add tag</a></span>
542 <div id="tagform[% SEARCH_RESULT.biblionumber | html %]" class="tag_results_input" style="display:none;">
543 <label for="newtag[% SEARCH_RESULT.biblionumber | html %]">New tag(s), separated by a comma:</label>
544 <input type="text" name="newtag[% SEARCH_RESULT.biblionumber | html %]" id="newtag[% SEARCH_RESULT.biblionumber | html %]" class="newtag" maxlength="100" />
545 <input name="tagbutton" class="btn btn-small tagbutton" title="[% SEARCH_RESULT.biblionumber | html %]" type="submit" value="Add" />
546 <a class="cancel_tag_add" id="cancel[% SEARCH_RESULT.biblionumber | html %]" href="#">(done)</a>
548 <span id="newtag[% SEARCH_RESULT.biblionumber | html %]_status" class="tagstatus" style="display:none;">
551 [% ELSIF ( loop.first ) %]
552 <span class="actions"><span id="login4tags">Log in to add tags.</span></span>
553 [% END # IF loggedinusername %]
554 [% END # if TagsInputEnabled %]
556 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
557 <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>
560 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
561 [% IF ( SEARCH_RESULT.incart ) %]
562 <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>
564 <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>
566 [% END # / IF opacbookbag %]
569 [% INCLUDE "openlibrary-readapi.inc" bib = SEARCH_RESULT %]
573 [% END # / FOREACH SEARCH_RESULT %]
575 </form> <!-- / #bookbag_form -->
577 <form id="hold_form" name="hold_form" method="get" action="/cgi-bin/koha/opac-reserve.pl">
578 <!-- The value will be set by holdBiblioNums() in basket.js -->
579 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value=""/>
581 </div> <!-- / .searchresults -->
583 <div id="bottom-pages">[% INCLUDE 'page-numbers.inc' %]</div>
585 [% END # / IF total %]
587 [% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername || Koha.Preference( 'ILLModule' ) == 1 ) %]
588 <div class="suggestion">
589 Not finding what you're looking for?
591 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
592 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
594 [% IF ( loggedinusername ) %]
595 <li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
598 [% IF Koha.Preference( 'ILLModule' ) == 1 && loggedinusername %]
599 <li>Make an <a href="/cgi-bin/koha/opac-illrequests.pl?op=create">Interlibrary loan request</a></li>
604 </div> <!-- / #userresults -->
605 </div> <!-- /.span10/12 -->
606 </div> <!-- / .row-fluid -->
607 </div> <!-- / .container-fluid -->
608 </div><!-- / .main -->
610 [% INCLUDE 'opac-bottom.inc' %]
611 [% BLOCK jsinclude %]
612 [% IF ( LibraryThingForLibrariesID ) %]
613 <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]&systype=koha"></script>
615 [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") | $raw %][% END %]
616 [% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %]
617 [% IF ( RecordedBooksEnabled ) %][% Asset.js("js/recordedbooks.js") | $raw %][% END %]
618 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
619 [% Asset.js("js/authtoresults.js") | $raw %]
620 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %]
623 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
624 function holdMultiple() {
625 var checkedBiblioNums = ""; // Separated by "/"
626 var checkedCount = 0;
627 if(document.bookbag_form.biblionumber.length > 0) {
628 for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
629 if (document.bookbag_form.biblionumber[i].checked) {
630 checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/");
636 if (checkedCount > 0) {
637 holdBiblioNums(checkedBiblioNums);
639 alert(MSG_NO_RECORD_SELECTED);
643 function holdBiblioNums(numList) {
644 // numList: biblio numbers separated by "/"
645 $("#hold_form_biblios").attr("value", numList);
646 $("#hold_form").submit();
649 [% IF ( TagsInputEnabled && loggedinusername ) %]
650 function tagSelected() {
651 var checkedBoxes = $(".searchresults :checkbox:checked");
652 if ($(checkedBoxes).size() == 0) {
653 alert(MSG_NO_RECORD_SELECTED);
655 $("#tagsel_tag").hide();
657 $("#tagsel_form").show();
661 function tagCanceled() {
662 $("#tagsel_form").hide();
663 $("#tagsel_tag").show();
665 $("#tagsel_new").val("");
666 $("#tagsel_status, .tagstatus").empty().hide();
669 function tagAdded() {
670 var checkedBoxes = $(".searchresults :checkbox:checked");
671 if ($(checkedBoxes).size() == 0) {
672 alert(MSG_NO_RECORD_SELECTED);
676 var tag = $("#tagsel_new").val();
677 if (!tag || (tag == "")) {
678 alert(MSG_NO_TAG_SPECIFIED);
683 for (var i = 0; i < $(checkedBoxes).size(); i++) {
684 var box = $(checkedBoxes).get(i);
685 bibs[i] = $(box).val();
688 KOHA.Tags.add_multitags_button(bibs, tag);
693 function enableCheckboxActions(){
694 // Enable/disable controls if checkboxes are checked
695 var checkedBoxes = $(".checkboxed input:checkbox:checked");
696 var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, , #selections-toolbar .links label")
697 if ($(checkedBoxes).size()) {
698 $("#selections").html(_("With selected titles: "));
699 $(controls).removeClass("disabled");
701 $("#selections").html(_("Select titles to: "));
702 $(controls).addClass("disabled");
706 [% IF ( OpacHighlightedWords ) %]
707 var q_array = new Array(); // holds search terms if available
709 function highlightOff() {
710 $("td").removeHighlight();
711 $(".highlight_toggle").toggle();
713 function highlightOn() {
716 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
717 q_array[x] = q_array[x].toLowerCase();
718 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
719 if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
720 $(".title").highlight(q_array[x]);
721 $(".author").highlight(q_array[x]);
722 $(".results_summary").highlight(q_array[x]);
725 $(".highlight_toggle").toggle();
728 $(document).ready(function(){
729 [% IF ( OpacHighlightedWords ) %]
730 $('a.title').each(function() {
731 $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
735 $(".cb").click(function(){
736 enableCheckboxActions();
738 enableCheckboxActions();
740 [% IF ( IDreamBooksResults ) %]
741 $('.idbresult').each(function() {
742 var isbn = $(this).children('a').text().replace(/\s*/,'');
745 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
746 // Use Microsoft XDR for IE version 8 or above
747 var xdr = new XDomainRequest();
748 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
749 xdr.onload = function() {
750 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
751 eval(json); // json is now a regular JSON object
752 if(json.total_results > 0 && json.book.rating > 0){
753 $(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+"%");
761 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
762 if(json.total_results > 0 && json.book.rating > 0){
763 $(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+"%");
774 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) || loggedinusername ) %]
775 param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>";
778 [% IF Koha.Preference( 'opacbookbag' ) == 1 OR Koha.Preference('virtualshelves') %]
779 param1 += "<select class=\"disabled\" name=\"addto\" id=\"addto\"><option>"+_("Add to...")+"</option>";
781 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
782 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
784 [% IF Koha.Preference('virtualshelves') %]
785 [% IF loggedinusername AND add_to_some_private_shelves.count %]
786 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
787 [% SET number_of_private_shelves = 0 %]
788 [% FOREACH s IN add_to_some_private_shelves %]
789 [% IF shelfnumber != s.shelfnumber %]
790 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
791 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
792 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
795 param1 += "<\/optgroup>";
797 [% IF add_to_some_public_shelves.count %]
798 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
799 [% SET number_of_public_shelves = 0 %]
800 [% FOREACH s IN add_to_some_public_shelves %]
801 [% IF shelfnumber != s.shelfnumber %]
802 param1 += "<option id=\"s[% s.shelfnumber | html %]\" value=\"addtolist\">[% s.shelfname | html %]<\/option>";
803 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
804 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
807 param1 += "<\/optgroup>";
809 [% 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 ) %]
810 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
812 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
814 param1 += "<\/select> <input type=\"submit\" class=\"btn btn-small\" value=\""+_("Save")+"\" />";
817 $('#sortsubmit').hide();
818 $('.resort').change(function() {
819 $('#bookbag_form').submit();
821 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
822 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
824 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
825 $("span.addto").html(param1);
827 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
828 $("span.addto").html(param1);
832 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
833 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
834 $("#addto").on("change",function(){
837 $(".addto").find("input:submit").click(function(){
842 $("#addto").on("click",function(){
850 addtoOption = $("#addto").find("option:selected");
851 addtoval = addtoOption.val();
852 if(addtoval == "addtolist"){
853 var shelfnumber = addtoOption.attr("id").replace("s","");
855 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
858 } else if(addtoval == "newlist"){
859 [% IF ( loggedinusername ) %]if (vShelfAdd()) {
860 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
862 alert(_("You must be logged in to create or add to lists"));
865 } else if(addtoval == "morelists"){
866 [% IF ( loggedinusername ) %]
868 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
871 alert(_("You must be logged in to create or add to lists"));
875 if(addtoval == "addtocart" || $("#addto").attr("class") == "addtocart"){
880 $("#CheckAll").click(function(){
881 $("#bookbag_form").checkCheckboxes();
882 enableCheckboxActions();
885 $("#CheckNone").click(function(){
886 $("#bookbag_form").unCheckCheckboxes();
887 enableCheckboxActions();
891 [% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %]
892 $("#placehold").html("<input class=\"hold disabled\" type=\"submit\" value=\""+_("Place hold")+"\"/>");
893 $("#placehold").find("input:submit").click(function(){
899 [% IF ( query_desc ) %]
900 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
901 var querystring = "[% querystring |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
902 [% IF ( OpacHighlightedWords ) %]
903 q_array = query_desc.split(" ");
904 // ensure that we don't have "" at the end of the array, which can
905 // break the highlighter
906 while (q_array.length > 0 && q_array[q_array.length-1] == "") {
907 q_array = q_array.splice(0,-1);
910 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
911 $("#highlight_toggle_off").show().click(function() {highlightOff();});
913 [% IF ( OverDriveEnabled ) %]
914 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>' );
915 $( '#numresults' ) .append( ' ' )
916 .append( $overdrive_results );
917 KOHA.OverDrive.Search( "[% OverDriveLibraryID | html %]", querystring, 1, 0, function( data ) {
919 $overdrive_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('OverDrive') );
923 if ( data.totalItems ) {
924 $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>' );
926 $overdrive_results.remove();
930 [% IF ( RecordedBooksEnabled ) %]
931 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>' );
932 $( '#numresults' ) .append( ' ' )
933 .append( $recordedbooks_results );
934 KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" | html %], null, function( data ) {
936 $recordedbooks_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('RecordedBooks') + ': ' + data.error);
940 // data.total can be either 42 or "60+"
941 if ( typeof(data.total) === 'string' && data.total.charAt(0) > 0 || typeof(data.total) === 'number' && data.total > 0 ) {
942 $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>' );
944 $recordedbooks_results.remove();
948 [% IF ( OpenLibrarySearch ) %]
949 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>' );
950 $( '#numresults' ) .append( ' ' )
951 .append( $openlibrary_results );
952 KOHA.OpenLibrary.search( querystring, null, function( data ) {
954 $openlibrary_results.html( MSG_ERROR_SEARCHING_COLLECTION.format('OpenLibrary') );
958 if ( data.numFound > 0 ) {
959 $openlibrary_results.html( '<a href="' + KOHA.OpenLibrary.searchUrl(querystring) + '" target="openlibrary">' + MSG_RESULTS_FOUND_IN_COLLECTION.format(data.numFound, 'OpenLibrary') + '</a>' );
961 $openlibrary_results.remove();
967 [% IF ( TagsInputEnabled && loggedinusername ) %]
968 $("#tagsel_tag").click(function(){
972 $("#tagsel_cancel").click(function(){
976 $("#tagsel_button").click(function(){
981 $(".tag_add").click(function(){
982 var thisid = $(this).attr("id");
983 thisid = thisid.replace("tag_add","");
984 $(this).addClass("hidden");
985 $("#tagform"+thisid).show();
986 $("#newtag"+thisid).focus();
987 $("#newtag"+thisid+"_status").empty().hide();
990 $(".cancel_tag_add").click(function(){
991 var thisid = $(this).attr("id");
992 thisid = thisid.replace("cancel","");
993 $("#tagform"+thisid).hide();
994 $("#tag_add"+thisid).removeClass("hidden");
995 $("#newtag"+thisid).val("");
996 $("#newtag"+thisid+"_status").empty().hide();
999 $(".tagbutton").click(function(){
1000 var thisid = $(this).attr("title");
1001 var tag = $("#newtag"+thisid).val();
1002 if (!tag || (tag == "")) {
1003 alert(MSG_NO_TAG_SPECIFIED);
1006 KOHA.Tags.add_tag_button(thisid, tag);
1011 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
1012 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
1013 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
1014 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1015 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
1018 [% IF ( DidYouMean ) %]
1019 $("#didyoumean").load("/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring |uri %]",
1021 $(this).addClass("dym-loaded");
1025 $("input.newtag").on('keydown', function(e){
1026 if (e.keyCode == 13) { e.preventDefault(); }