2 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %]
3 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog ›
7 [% IF ( searchdesc ) %]
8 Results of search [% IF ( query_desc ) %]for '[% query_desc | html%]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]
10 You did not specify any search criteria.
12 [% INCLUDE 'doc-head-close.inc' %]
13 [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %]
14 [% BLOCK cssinclude %]
15 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating.css" />
19 <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" />
22 [% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %]
23 [% INCLUDE 'masthead.inc' %]
26 <ul class="breadcrumb">
27 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
29 [% IF ( searchdesc ) %]
30 <a href="#">Results of search [% IF ( query_desc ) %]for '[% query_desc | html%]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]</a>
32 <a href="#">You did not specify any search criteria</a>
37 [% UNLESS ( total ) %]
38 <div class="container-fluid maincontent">
39 <div class="row-fluid">
41 <strong>No results found!</strong>
43 [% IF ( searchdesc ) %]
44 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>
46 You did not specify any search criteria.
49 [% IF ( ReturnPath ) %]
50 <div class="returntosearch">
51 <p><a href="[% ReturnPath %]">Return to the last advanced search</a></p>
54 [% IF ( OPACNoResultsFound ) %]
55 <div id="noresultsfound">
56 [% OPACNoResultsFound %]
59 </div> <!-- / .span12 -->
60 </div> <!-- / .row-fluid -->
61 </div> <!-- / .container-fluid -->
62 [% END # / UNLESS searchdesc %]
64 <div id="maincontent" class="container-fluid">
65 <div class="row-fluid">
66 [% IF ( opacfacets && total ) %]
68 <div id="facetcontainer">
70 [% INCLUDE 'opac-facets.inc' %]
76 [% IF ( opacfacets && total ) %]<div class="span10 maincontent">[% ELSE %]<div class="span12 maincontent">[% END %]
78 [% IF ( searchdesc ) %]
80 [% IF ( total ) %]<strong>Your search returned [% total |html %] results.</strong>
83 [% FOREACH relate IN related %]
84 [% relate.related_search %]
88 <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>
89 [% END # / IF total %]
91 [% END # / IF searchdesc %]
93 <div id="userresults">
94 [% IF ( DidYouMean ) %]
95 <div id="didyoumean">Not what you expected? Check for <a href="/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring |uri %]">suggestions</a></div>
98 <div id="top-pages">[% INCLUDE 'page-numbers.inc' %]</div>
100 [% IF ( koha_spsuggest ) %]
102 <ul style="list-style: none;">
103 [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
105 <a href="/cgi-bin/koha/opac-search.pl?q=[% SPELL_SUGGES.spsuggestion %]">[% SPELL_SUGGES.spsuggestion %]</a>
109 [% END # / IF koha_spsuggest%]
111 [% IF ( ReturnPath ) %]
112 <div class="returntosearch">
113 <p><a href="[% ReturnPath %]">Return to the last advanced search</a></p>
117 [% IF ( query_error ) %]
118 <div class="dialog alert">
124 <!-- Search Results Table -->
127 <div class="searchresults">
128 <form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
129 [% IF ( searchdesc ) %]
130 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
131 <input type="hidden" name="[% QUERY_INPUT.input_name |html %]" value="[% QUERY_INPUT.input_value |html %]"/>
133 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
134 <input type="hidden" name="[% LIMIT_INPUT.input_name |html %]" value="[% LIMIT_INPUT.input_value |html %]"/>
136 [% END # IF /searchdesc %]
138 <div id="toolbar" class="toolbar clearfix">
139 [% IF ( OpacHighlightedWords ) %]
140 <div class="highlight_controls noprint">
141 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
142 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
146 <div class="sort_by pull-right">
147 <select id="sort_by" class="resort" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select>
148 <input type="submit" class="btn btn-small clearfix" id="sortsubmit" value="Go" />
151 </div> <!-- / #toolbar -->
153 <div id="selections-toolbar" class="toolbar noprint">
154 <!-- checkall, clearall are now needed for placehold -->
155 <span class="checkall"></span>
156 <span class="clearall"></span> <span class="sep">|</span>
159 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
160 <span class="addto"></span>
162 <span id="placehold"><!-- input class="submit" type="submit" value="Place Hold"/ --></span>
164 [% IF ( TagsInputEnabled && loggedinusername ) %]
165 <span id="tagsel_span">
166 <input id="tagsel_tag" class="disabled" type="submit" value="Tag"/>
168 <div id="tagsel_form" style="display:none">
169 <label for="tagsel_new">New tag:</label>
170 <input name="tagsel_new" id="tagsel_new" maxlength="100" />
171 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="Add" type="submit" value="Add" />
172 <a href="#" id="tagsel_cancel">(done)</a>
174 <div id="tagsel_status" class="tagsel_tatus" style="display:none;">
178 </span> <!-- / .links -->
179 </div> <!-- / #selections-toolbar -->
181 <!-- TABLE RESULTS START -->
182 <table class="table table-striped">
184 <!-- Actual Search Results -->
185 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
187 [% # Cell 1: Checkbox %]
188 <td class="select selectcol">
189 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
190 <input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>
192 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
193 <input type="checkbox" class="cb" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>
195 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
196 [% UNLESS ( SEARCH_RESULT.norequests ) %]
197 [% 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>
200 [% END # IF RequestOnOpac %]
201 [% END # IF virtualshelves %]
202 [% END # IF opacbookbag%]
204 [% # Cell 2: Show result number if OpacHiddenItems is empty %]
205 <td class="select selectcol">
206 [% UNLESS suppress_result_number %]
207 [% SEARCH_RESULT.result_number %].
211 [% IF ( !item_level_itypes && !noItemTypeImages ) %]
212 [% # Cell 3: Show item type image %]
213 <td class="itypecol">
214 [% IF ( SEARCH_RESULT.imageurl ) %]
215 <img src="[% SEARCH_RESULT.imageurl %]" title="[% SEARCH_RESULT.description %]" alt="[% SEARCH_RESULT.description %]" />
217 [% IF ( SEARCH_RESULT.score_avg ) %]
218 <img src="[% themelang %]/../images/bonus.png" title="bonus" style="max-height: 35px;"/>
223 [% # Cell 4: Search result details and controls %]
224 <td class="bibliocol">
225 <div class="coverimages">
226 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">
227 [% IF ( OPACLocalCoverImages ) %]
228 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>
230 [% IF ( OPACAmazonCoverImages ) %]
231 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
232 <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>
234 <span class="no-image">No cover image available</span>
238 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
239 [% IF SEARCH_RESULT.normalized_isbn %]
240 [% IF ( using_https ) %]
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 title="[% SEARCH_RESULT.biblionumber %]" id="syndetics-thumbnail[% loop.count %]"><img src="http://www.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>
246 <span class="no-image">No cover image available</span>
250 [% IF ( GoogleJackets ) %]
251 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
252 <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></span>
254 <span class="no-image">No cover image available</span>
258 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
259 [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
261 <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
263 <span class="no-image">No cover image available</span>
267 [% IF OpenLibraryCovers %]
268 [% IF SEARCH_RESULT.normalized_isbn %]
269 <span style="block" title="[% SEARCH_RESULT.biblionumber %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></span>
271 <span class="no-image">No cover image available</span>
275 [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %]
276 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
278 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
280 <span class="no-image">No cover image available</span>
285 [% IF ( BakerTaylorEnabled && BakerTaylorBookstoreURL ) %]
286 [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
288 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]">
289 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
292 <span class="no-image">No cover image available</span>
296 [% IF ( IDreamBooksResults && SEARCH_RESULT.normalized_isbn ) %]
297 <div class="idbresult" style="display: none;">
298 [% IF ( IDreamBooksReviews ) %]
299 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]#idb_critic_reviews">
301 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">
303 [% SEARCH_RESULT.normalized_isbn %]</a>
307 [% IF ( COinSinOPACResults && SEARCH_RESULT.coins ) %]
308 <!-- COinS / Openurl -->
309 <span class="Z3988" title="[% SEARCH_RESULT.coins %]"></span>
312 [% IF ( OPACXSLTResultsDisplay ) %]
313 [% SEARCH_RESULT.XSLTResultsRecord %]
315 [% IF ( BiblioDefaultViewmarc ) %]
316 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
318 [% IF ( BiblioDefaultViewisbd ) %]
319 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
321 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]" title="View details for this title">
325 [% IF ( SEARCH_RESULT.title ) %]
326 [% SEARCH_RESULT.title |html %]
331 [% FOREACH subtitl IN SEARCH_RESULT.subtitle %]
332 , [% subtitl.subfield|html %]
335 [% IF ( SEARCH_RESULT.author ) %]
336 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>
341 <span class="results_summary publisher">
342 <span class="label">Publication:</span>
343 [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place %] [% END %]
344 [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode|html %][% END %]
345 [% IF ( SEARCH_RESULT.publicationyear ) %]
346 [% SEARCH_RESULT.publicationyear %]
348 [% IF ( SEARCH_RESULT.copyrightdate ) %]
349 [% SEARCH_RESULT.copyrightdate %]
352 [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages %][% END %]
353 [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes|html %][% END %]
354 [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size %][% END %]
355 [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp %])</i>[% END %]
358 [% IF ( SEARCH_RESULT.summary ) %]
359 <span class="result_summary">
360 [% SEARCH_RESULT.summary %]
364 [% IF ( SEARCH_RESULT.copyrightdate ) %]
365 <span class="results_summary date">
366 <span class="label">Date:</span>
367 [% SEARCH_RESULT.copyrightdate %]
371 <span class="results_summary">
372 <span class="label">Availability:</span>
373 [% IF ( SEARCH_RESULT.available_items_loop.size() ) %]
374 <span class="available"><strong>Items available:</strong>
375 [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
376 [% IF available_items_loo.this_branch %]
377 <span class="highlight-row-results">
382 [% IF ( singleBranchMode ) %]
383 [% available_items_loo.location %]
385 [% available_items_loo.branchname %]
388 [% IF ( OPACItemsResultsDisplay ) %]
389 [% UNLESS ( singleBranchMode ) %][% available_items_loo.location %][% END %]
390 [% 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 %]
392 ([% available_items_loo.count %]),
394 [% END # / FOREACH available_items_loo %]
397 [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS ) %]
398 [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
399 <span id="alternateholdings">[% ALTERNATEHOLDING.holding %]</span>,
402 <span class="unavailable">No items available:</span>
404 [% END # / IF SEARCH_RESULT.available_items_loop.size %]
406 <span class="unavailable">
407 [% IF ( SEARCH_RESULT.onloancount ) %] Checked out ([% SEARCH_RESULT.onloancount %]), [% END %]
408 [% IF ( SEARCH_RESULT.withdrawncount ) %] Withdrawn ([% SEARCH_RESULT.withdrawncount %]), [% END %]
409 [% UNLESS ( SEARCH_RESULT.hidelostitems ) %][% IF ( SEARCH_RESULT.itemlostcount ) %] Lost ([% SEARCH_RESULT.itemlostcount %]),[% END %][% END %]
410 [% IF ( SEARCH_RESULT.damagedcount ) %] Damaged ([% SEARCH_RESULT.damagedcount %]),[% END %]
411 [% IF ( SEARCH_RESULT.orderedcount ) %] On order ([% SEARCH_RESULT.orderedcount %]),[% END %]
412 [% IF ( SEARCH_RESULT.onholdcount ) %] On hold ([% SEARCH_RESULT.onholdcount %]),[% END %]
413 [% IF ( SEARCH_RESULT.intransitcount ) %] In transit ([% SEARCH_RESULT.intransitcount %]),[% END %]
415 </span> <!-- / .results_summary -->
416 [% END # / IF OPACXSLTResultsDisplay %]
418 [% IF ( SEARCH_RESULT.score_avg ) %]
419 <div class="results_summary">
420 [% FOREACH i IN [ 1 2 3 4 5 ] %]
421 [% IF ( SEARCH_RESULT.score_int >= i ) %]
422 <div class="star-rating rater-[% i %] star star-rating-applied star-rating-readonly star-rating-on"><a title="[% i %]">[% i %]</a></div>
424 <div class="star-rating rater-[% i %] star star-rating-applied star-rating-readonly"><a title="[% i %]">[% i %]</a></div>
427 <span id="babeltheque-rating_total_[% SEARCH_RESULT.biblionumber %]"> [% SEARCH_RESULT.score_avg %] / 5 (on [% SEARCH_RESULT.num_scores %] rates)</span>
429 [% IF ( SEARCH_RESULT.num_critics ) %]
430 <span class="social_data">[% SEARCH_RESULT.num_critics %] Internet user critics</span>
432 [% IF ( SEARCH_RESULT.num_critics_pro ) %]
433 <span class="social_data">[% SEARCH_RESULT.num_critics_pro %] Professional critics</span>
435 [% IF ( SEARCH_RESULT.num_videos ) %]
436 <span class="social_data">[% SEARCH_RESULT.num_videos %] Video extracts</span>
438 [% IF ( SEARCH_RESULT.num_quotations ) %]
439 <span class="social_data">[% SEARCH_RESULT.num_quotations %] Quotations</span>
441 </div> <!-- / .results_summary -->
442 [% END # / IF SEARCH_RESULT.score_avg %]
444 [% IF ( LibraryThingForLibrariesID ) %]
445 <div class="ltfl_reviews"></div>
448 [% IF ( TagsShowEnabled && SEARCH_RESULT.TagLoop.size ) %]
449 <div class="results_summary tags">
450 <span class="label">Tags:</span>
452 [% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]
454 <a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term %]</a>
455 <span class="weight">([% TagLoo.weight_total %])</span>
462 [% IF ( SEARCH_RESULT.searchhighlightblob ) %]
463 <span class="results_summary">
464 <span class="label">Match:</span>
465 [% SEARCH_RESULT.searchhighlightblob %]
469 [% IF ( OpacStarRatings == 'all' ) %]
470 <div class="results_summary ratings">
471 [% FOREACH i IN [ 1 2 3 4 5 ] %]
472 [% IF ( SEARCH_RESULT.rating_avg == i ) %]
473 <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber %]" value="[% i %]" checked="checked" disabled="disabled" />
475 <input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber %]" value="[% i %]" disabled="disabled" />
479 <input type="hidden" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" />
480 <input type="hidden" name="loggedinuser" value="[% loggedinuser %]" />
482 [% IF SEARCH_RESULT.rating_total && SEARCH_RESULT.rating_total > 0 %]
483 <span id="rating_total_[% SEARCH_RESULT.biblionumber %]"> ([% SEARCH_RESULT.rating_total %] votes)</span>
487 </div> <!-- / .results_summary -->
488 [% END # / IF OpacStarRatings %]
490 <div class="actions-menu noprint">
491 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
492 [% UNLESS ( SEARCH_RESULT.norequests ) %]
493 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
494 <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-->
495 [% END # / IF opacuserlogin && holdable %]
496 [% END # UNLESS SEARCH_RESULT.norequests %]
497 [% END # IF RequestOnOpac %]
499 [% IF ( TagsInputEnabled ) %]
500 [% IF ( loggedinusername ) %]
501 <span class="actions"><a class="tag_add" id="tag_add[% SEARCH_RESULT.biblionumber %]" href="#">Add tag</a></span>
502 <div id="tagform[% SEARCH_RESULT.biblionumber %]" class="tag_results_input" style="display:none;">
503 <label for="newtag[% SEARCH_RESULT.biblionumber %]">New tag(s), separated by a comma:</label>
504 <input type="text" name="newtag[% SEARCH_RESULT.biblionumber %]" id="newtag[% SEARCH_RESULT.biblionumber %]" class="newtag" maxlength="100" />
505 <input name="tagbutton" class="btn btn-small tagbutton" title="[% SEARCH_RESULT.biblionumber %]" type="submit" value="Add" />
506 <a class="cancel_tag_add" id="cancel[% SEARCH_RESULT.biblionumber %]" href="#">(done)</a>
508 <span id="newtag[% SEARCH_RESULT.biblionumber %]_status" class="tagstatus" style="display:none;">
511 [% ELSIF ( loop.first ) %]
512 <span class="actions"><span id="login4tags">Log in to add tags.</span></span>
513 [% END # IF loggedinusername %]
514 [% END # if TagsInputEnabled %]
516 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
517 <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>
520 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
521 [% IF ( SEARCH_RESULT.incart ) %]
522 <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>
524 <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>
526 [% END # / IF opacbookbag %]
529 [% INCLUDE "openlibrary-readapi.inc" bib = SEARCH_RESULT %]
533 [% END # / FOREACH SEARCH_RESULT %]
535 </form> <!-- / #bookbag_form -->
537 <form id="hold_form" name="hold_form" method="get" action="/cgi-bin/koha/opac-reserve.pl">
538 <!-- The value will be set by holdBiblioNums() in basket.js -->
539 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value=""/>
541 </div> <!-- / .searchresults -->
543 <div id="bottom-pages">[% INCLUDE 'page-numbers.inc' %]</div>
545 [% END # / IF total %]
547 [% IF Koha.Preference( 'suggestion' ) == 1 %]
548 [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
549 <div class="suggestion">Not finding what you're looking for?<br /> Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></div>
551 [% IF ( loggedinusername ) %]
552 <div class="suggestion">
553 Not finding what you're looking for?<br /> Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a>
558 </div> <!-- / #userresults -->
559 </div> <!-- /.span10/12 -->
560 </div> <!-- / .row-fluid -->
561 </div> <!-- / .container-fluid -->
562 </div><!-- / .main -->
564 [% INCLUDE 'opac-bottom.inc' %]
565 [% BLOCK jsinclude %]
566 [% IF ( LibraryThingForLibrariesID ) %]
567 [% IF ( using_https ) %]
568 <script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]&systype=koha" type="text/javascript"></script>
570 <script src="http://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]&systype=koha" type="text/javascript"></script>
573 [% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
574 [% IF ( OverDriveEnabled ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/js/overdrive.js"></script>[% END %]
575 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
576 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>
577 [% END %]<script type="text/javascript">
579 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
580 function holdMultiple() {
581 var checkedBiblioNums = ""; // Separated by "/"
582 var checkedCount = 0;
583 if(document.bookbag_form.biblionumber.length > 0) {
584 for (var i=0; i < document.bookbag_form.biblionumber.length; i++) {
585 if (document.bookbag_form.biblionumber[i].checked) {
586 checkedBiblioNums += (document.bookbag_form.biblionumber[i].value + "/");
592 if (checkedCount > 0) {
593 holdBiblioNums(checkedBiblioNums);
595 alert(MSG_NO_RECORD_SELECTED);
599 function holdBiblioNums(numList) {
600 // numList: biblio numbers separated by "/"
601 $("#hold_form_biblios").attr("value", numList);
602 $("#hold_form").submit();
605 [% IF ( TagsInputEnabled && loggedinusername ) %]
606 function tagSelected() {
607 var checkedBoxes = $(".searchresults :checkbox:checked");
608 if ($(checkedBoxes).size() == 0) {
609 alert(MSG_NO_RECORD_SELECTED);
611 $("#tagsel_tag").hide();
613 $("#tagsel_form").show();
617 function tagCanceled() {
618 $("#tagsel_form").hide();
619 $("#tagsel_tag").show();
621 $("#tagsel_new").val("");
622 $("#tagsel_status, .tagstatus").empty().hide();
625 function tagAdded() {
626 var checkedBoxes = $(".searchresults :checkbox:checked");
627 if ($(checkedBoxes).size() == 0) {
628 alert(MSG_NO_RECORD_SELECTED);
632 var tag = $("#tagsel_new").val();
633 if (!tag || (tag == "")) {
634 alert(MSG_NO_TAG_SPECIFIED);
639 for (var i = 0; i < $(checkedBoxes).size(); i++) {
640 var box = $(checkedBoxes).get(i);
641 bibs[i] = $(box).val();
644 KOHA.Tags.add_multitags_button(bibs, tag);
649 function enableCheckboxActions(){
650 // Enable/disable controls if checkboxes are checked
651 var checkedBoxes = $(".checkboxed input:checkbox:checked");
652 var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, , #selections-toolbar .links label")
653 if ($(checkedBoxes).size()) {
654 $("#selections").html(_("With selected titles: "));
655 $(controls).removeClass("disabled");
657 $("#selections").html(_("Select titles to: "));
658 $(controls).addClass("disabled");
662 [% IF ( OpacHighlightedWords ) %]
663 var q_array = new Array(); // holds search terms if available
665 function highlightOff() {
666 $("td").removeHighlight();
667 $(".highlight_toggle").toggle();
669 function highlightOn() {
672 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
673 q_array[x] = q_array[x].toLowerCase();
674 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
675 if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
676 $(".title").highlight(q_array[x]);
677 $(".author").highlight(q_array[x]);
678 $(".results_summary").highlight(q_array[x]);
681 $(".highlight_toggle").toggle();
684 $(document).ready(function(){
685 [% IF ( OpacHighlightedWords ) %]
686 $('a.title').each(function() {
687 $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
691 $(".cb").click(function(){
692 enableCheckboxActions();
694 enableCheckboxActions();
696 [% IF ( IDreamBooksResults ) %]
697 $('.idbresult').each(function() {
698 var isbn = $(this).children('a').text().replace(/\s*/,'');
701 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
702 // Use Microsoft XDR for IE version 8 or above
703 var xdr = new XDomainRequest();
704 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
705 xdr.onload = function() {
706 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
707 eval(json); // json is now a regular JSON object
708 if(json.total_results > 0 && json.book.rating > 0){
709 $(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+"%");
717 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
718 if(json.total_results > 0 && json.book.rating > 0){
719 $(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+"%");
730 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) || loggedinusername ) %]
731 param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>";
734 [% IF Koha.Preference( 'opacbookbag' ) == 1 OR Koha.Preference('virtualshelves') %]
735 param1 += "<select class=\"disabled\" name=\"addto\" id=\"addto\"><option>"+_("Add to...")+"</option>";
737 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
738 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
740 [% IF Koha.Preference('virtualshelves') %]
741 [% IF loggedinusername AND add_to_some_private_shelves.count %]
742 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
743 [% SET number_of_private_shelves = 0 %]
744 [% FOREACH s IN add_to_some_private_shelves %]
745 [% IF shelfnumber != s.shelfnumber %]
746 param1 += "<option id=\"s[% s.shelfnumber %]\" value=\"addtolist\">[% s.shelfname |html %]<\/option>";
747 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
748 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
751 param1 += "<\/optgroup>";
753 [% IF add_to_some_public_shelves.count %]
754 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
755 [% SET number_of_public_shelves = 0 %]
756 [% FOREACH s IN add_to_some_public_shelves %]
757 [% IF shelfnumber != s.shelfnumber %]
758 param1 += "<option id=\"s[% s.shelfnumber %]\" value=\"addtolist\">[% s.shelfname |html %]<\/option>";
759 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
760 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
763 param1 += "<\/optgroup>";
765 [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %]
766 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
768 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
770 param1 += "<\/select> <input type=\"submit\" class=\"btn btn-small\" value=\""+_("Save")+"\" />";
773 $('#sortsubmit').hide();
774 $('.resort').change(function() {
775 $('#bookbag_form').submit();
777 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
778 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
780 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
781 $("span.addto").html(param1);
783 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
784 $("span.addto").html(param1);
788 [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
789 [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
790 $("#addto").on("change",function(){
793 $(".addto").find("input:submit").click(function(){
798 $("#addto").on("click",function(){
806 addtoOption = $("#addto").find("option:selected");
807 addtoval = addtoOption.val();
808 if(addtoval == "addtolist"){
809 var shelfnumber = addtoOption.attr("id").replace("s","");
811 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
814 } else if(addtoval == "newlist"){
815 [% IF ( loggedinusername ) %]if (vShelfAdd()) {
816 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
818 alert(_("You must be logged in to create or add to lists"));
821 } else if(addtoval == "morelists"){
822 [% IF ( loggedinusername ) %]
824 Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
827 alert(_("You must be logged in to create or add to lists"));
831 if(addtoval == "addtocart" || $("#addto").attr("class") == "addtocart"){
836 $("#CheckAll").click(function(){
837 $("#bookbag_form").checkCheckboxes();
838 enableCheckboxActions();
841 $("#CheckNone").click(function(){
842 $("#bookbag_form").unCheckCheckboxes();
843 enableCheckboxActions();
847 [% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %]
848 $("#placehold").html("<input class=\"hold disabled\" type=\"submit\" value=\""+_("Place hold")+"\"/>");
849 $("#placehold").find("input:submit").click(function(){
855 [% IF ( query_desc ) %]
856 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
857 var querystring = "[% querystring |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
858 [% IF ( OpacHighlightedWords ) %]
859 q_array = query_desc.split(" ");
860 // ensure that we don't have "" at the end of the array, which can
861 // break the highlighter
862 while (q_array.length > 0 && q_array[q_array.length-1] == "") {
863 q_array = q_array.splice(0,-1);
866 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ;});
867 $("#highlight_toggle_off").show().click(function() {highlightOff();});
869 [% IF ( OverDriveEnabled ) %]
870 var $overdrive_results = $( '<div id="overdrive-results">' + _( 'Searching OverDrive...' ) + ' <img class="throbber" src="[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
871 $( '#numresults' ) .append( ' ' )
872 .append( $overdrive_results );
873 KOHA.OverDrive.Search( "[% OverDriveLibraryID %]", querystring, 1, 0, function( data ) {
875 $overdrive_results.html( _( 'Error searching OverDrive collection' ) );
879 if ( data.totalItems ) {
880 $overdrive_results.html( _( 'Found' ) + ' <a href="/cgi-bin/koha/opac-overdrive-search.pl?q=' + escape( querystring ) + '">' + data.totalItems + ' ' + _( 'results' ) + '</a> ' + _( 'in OverDrive collection' ) );
882 $overdrive_results.remove();
886 [% IF ( OpenLibrarySearch ) %]
887 var $openlibrary_results = $( '<div id="openlibrary-results">' + _( 'Searching Open Library...' ) + ' <img class="throbber" src="[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
888 $( '#numresults' ) .append( ' ' )
889 .append( $openlibrary_results );
890 KOHA.OpenLibrary.search( querystring, null, function( data ) {
892 $openlibrary_results.html( _( 'Error searching OpenLibrary collection' ) );
896 if ( data.numFound > 0 ) {
897 $openlibrary_results.html( _( 'Found' ) + ' <a href="' + KOHA.OpenLibrary.searchUrl(querystring) + '" target="openlibrary">' + data.numFound + ' ' + _( 'results' ) + '</a> ' + _( 'in OpenLibrary collection' ) );
899 $openlibrary_results.remove();
905 [% IF ( TagsInputEnabled && loggedinusername ) %]
906 $("#tagsel_tag").click(function(){
910 $("#tagsel_cancel").click(function(){
914 $("#tagsel_button").click(function(){
919 $(".tag_add").click(function(){
920 var thisid = $(this).attr("id");
921 thisid = thisid.replace("tag_add","");
922 $(this).addClass("hidden");
923 $("#tagform"+thisid).show();
924 $("#newtag"+thisid).focus();
925 $("#newtag"+thisid+"_status").empty().hide();
928 $(".cancel_tag_add").click(function(){
929 var thisid = $(this).attr("id");
930 thisid = thisid.replace("cancel","");
931 $("#tagform"+thisid).hide();
932 $("#tag_add"+thisid).removeClass("hidden");
933 $("#newtag"+thisid).val("");
934 $("#newtag"+thisid+"_status").empty().hide();
937 $(".tagbutton").click(function(){
938 var thisid = $(this).attr("title");
939 var tag = $("#newtag"+thisid).val();
940 if (!tag || (tag == "")) {
941 alert(MSG_NO_TAG_SPECIFIED);
944 KOHA.Tags.add_tag_button(thisid, tag);
949 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
950 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
951 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
952 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
953 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]');
956 [% IF ( DidYouMean ) %]
957 $("#didyoumean").load("/cgi-bin/koha/svc/suggestion?render=stub&q=[% querystring |uri %]",
959 $(".searchsuggestion").parent().parent().css({
960 "border-color": "#F4ECBE",
961 "background-color": "#FFFBEA"
966 $("input.newtag").on('keydown', function(e){
967 if (e.keyCode == 13) { e.preventDefault(); }