6 [% USE AuthorisedValues %]
7 [% IF BiblioDefaultViewmarc %]
8 [% SET DetailPage="MARCdetail.pl" %]
9 [% ELSIF BiblioDefaultViewlabeled_marc %]
10 [% SET DetailPage="labeledMARCdetail.pl" %]
11 [% ELSIF BiblioDefaultViewisbd %]
12 [% SET DetailPage="ISBDdetail.pl" %]
14 [% SET DetailPage="detail.pl" %]
16 [% INCLUDE 'doc-head-open.inc' %]
17 <title>Koha › Catalog › [% IF ( searchdesc ) %]Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %]</title>
18 [% INCLUDE 'doc-head-close.inc' %]
21 <body id="catalog_results" class="catalog">
22 [% INCLUDE 'header.inc' %]
23 [% INCLUDE 'cat-search.inc' %]
25 <div id="breadcrumbs">
26 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
27 › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
28 › Search [% IF ( query_desc ) %]for '[% query_desc |html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]
31 <div id="doc3" class="yui-t1">
36 [% IF ( outer_sup_results_loop ) %]
38 <div class="yui-u first">
41 [% IF ( koha_spsuggest ) %]
42 <div style="font-size: 12px;">Did you mean:
43 <ul style="list-style: none;">
44 [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
46 <a href="/cgi-bin/koha/catalogue/search.pl?q=[% SPELL_SUGGES.spsuggestion %]">[% SPELL_SUGGES.spsuggestion %]</a>
56 [% total %] result(s) found [% IF ( query_desc ) %]for <span class="results_query_desc">'[% query_desc |html %]'</span>[% END %][% IF limit_desc %] with limit(s): <span class="results_limit_desc">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName %] Catalog[% END %].
59 <div id="searchheader">
61 <div id="selection_ops">
62 <a href="#" id="select_all"><i class="fa fa-check"></i> Select all</a>
64 <a href="#" id="clear_all"><i class="fa fa-remove"></i> Clear all</a>
66 <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
67 <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
70 [% IF ( intranetbookbag ) %]
71 <div class="btn-group">
72 <a id="cartsubmit" class="btn btn-default btn-xs" href="#"><i class="fa fa-shopping-cart"></i> Add to cart</a>
76 [% IF Koha.Preference('virtualshelves') %]
77 <div class="btn-group">
78 <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
79 <i class="fa fa-list"></i> Add to list <span class="caret"></span>
81 <ul class="dropdown-menu">
82 [% IF add_to_some_private_shelves.count %]
83 <li class="dropdown-header">Your lists</li>
84 [% SET number_of_private_shelves = 0 %]
85 [% FOREACH s IN add_to_some_private_shelves %]
86 [% IF shelfnumber != s.shelfnumber %]
88 <a href="#" class="addtolist" data-shelfnumber="[% s.shelfnumber %]">[% s.shelfname |html %]</a>
90 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
91 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
95 [% IF add_to_some_public_shelves.count %]
96 <li class="dropdown-header">Public lists</li>
97 [% SET number_of_public_shelves = 0 %]
98 [% FOREACH s IN add_to_some_public_shelves %]
99 [% IF shelfnumber != s.shelfnumber %]
101 <a href="#" data-shelfnumber="[% s.shelfnumber %]" class="addtolist">[% s.shelfname |html %]</a>
103 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
104 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
108 <li role="separator" class="divider"></li>
109 [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %]
111 <a href="#" class="addtolist morelists">More lists</a>
115 <a href="#" class="addtolist newlist">New list</a>
122 [% IF ( CAN_user_reserveforothers && DisplayMultiPlaceHold ) %]
124 <div id="placeholdc" class="btn-group">
125 <button class="btn btn-default btn-xs placehold"><i class="fa fa-sticky-note-o"></i> Place hold</button>
126 <button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
127 <span class="caret"></span>
129 <ul class="dropdown-menu">
130 <li><a href="#" class="placehold">Place hold</a></li>
131 <li><a href="#" class="placeholdfor">Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></li>
132 <li class="divider"></li>
133 <li><a href="#" id="forgetholdfor">Forget [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></li>
137 <div id="placeholdc" class="btn-group"><a class="btn btn-default btn-xs placehold" href="#"><i class="fa fa-sticky-note-o"></i> Place hold</a></div>
140 [% IF Koha.Preference('BrowseResultSelection') %]
141 <div id="browse_selection" class="btn-group"><a class="btn btn-default btn-xs browse_selection" href="#"><i class="fa fa-sticky-note-o"></i> Browse selected records</a></div>
144 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] <div class="btn-group"><a class="btn btn-default btn-xs" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a></div>[% END %]
146 [% IF ( searchdesc ) %]
147 [% BLOCK sort_search_query ~%]
148 [% FOREACH QUERY_INPUT IN QUERY_INPUTS ~%]
149 &[% QUERY_INPUT.input_name |html %]=[% QUERY_INPUT.input_value |html %]
151 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS ~%]
152 &[% LIMIT_INPUT.input_name |html %]=[% LIMIT_INPUT.input_value |html %]
157 <div class="btn-group">
158 <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
159 Sort <span class="caret"></span>
161 <ul class="dropdown-menu">
162 [% IF ( sort_by == "relevance_dsc" ) %]
163 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=relevance[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Relevance</a></li>
165 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=relevance[% PROCESS sort_search_query %]">Relevance</a></li>
167 <li class="dropdown-header">Popularity</li>
168 [% IF ( sort_by == "popularity_dsc" ) %]
169 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=popularity_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Popularity (most to least)</a></li>
171 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=popularity_dsc[% PROCESS sort_search_query %]">Popularity (most to least)</a></li>
174 [% IF ( sort_by == "popularity_asc" ) %]
175 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=popularity_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Popularity (least to most)</a></li>
177 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=popularity_asc[% PROCESS sort_search_query %]">Popularity (least to most)</a></li>
180 <li class="dropdown-header">Author</li>
182 [% IF ( sort_by == "author_az" || sort_by == "author_asc" ) %]
183 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=author_a[% PROCESS sort_search_query %]z"><i class="fa fa-check"></i> Author (A-Z)</a></li>
185 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=author_az[% PROCESS sort_search_query %]">Author (A-Z)</a></li>
188 [% IF ( sort_by == "author_za" || sort_by == "author_dsc" ) %]
189 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=author_za[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Author (Z-A)</a></li>
191 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=author_za[% PROCESS sort_search_query %]">Author (Z-A)</a></li>
194 <li class="dropdown-header">Call number</li>
196 [% IF ( sort_by == "call_number_asc" ) %]
197 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=call_number_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Call Number (0-9 to A-Z)</a></li>
199 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=call_number_asc[% PROCESS sort_search_query %]">Call Number (0-9 to A-Z)</a></li>
202 [% IF ( sort_by == "call_number_dsc" ) %]
203 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=call_number_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Call number (Z-A to 9-0)</a></li>
205 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=call_number_dsc[% PROCESS sort_search_query %]">Call number (Z-A to 9-0)</a></li>
208 <li class="dropdown-header">Dates</li>
209 [% IF ( sort_by == "pubdate_dsc" ) %]
210 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=pubdate_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Publication/Copyright date: newest to oldest</a></li>
212 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=pubdate_dsc[% PROCESS sort_search_query %]">Publication/Copyright date: newest to oldest</a></li>
215 [% IF ( sort_by == "pubdate_asc" ) %]
216 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=pubdate_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Publication/Copyright date: oldest to newest</a></li>
218 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=pubdate_asc[% PROCESS sort_search_query %]">Publication/Copyright date: oldest to newest</a></li>
221 [% IF ( sort_by == "acqdate_dsc" ) %]
222 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=acqdate_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Acquisition date: newest to oldest</a></li>
224 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=acqdate_dsc[% PROCESS sort_search_query %]">Acquisition date: newest to oldest</a></li>
227 [% IF ( sort_by == "acqdate_asc" ) %]
228 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=acqdate_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Acquisition date: oldest to newest</a></li>
230 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=acqdate_asc[% PROCESS sort_search_query %]">Acquisition date: oldest to newest</a></li>
233 <li class="dropdown-header">Title</li>
234 [% IF ( sort_by == "title_az" || sort_by == "title_asc" ) %]
235 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=title_az[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Title (A-Z)</a></li>
237 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=title_az[% PROCESS sort_search_query %]">Title (A-Z)</a></li>
240 [% IF ( sort_by == "title_za" || sort_by == "title_dsc" ) %]
241 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=title_za[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Title (Z-A)</a></li>
243 <li><a href="/cgi-bin/koha/catalogue/search.pl?sort_by=title_za[% PROCESS sort_search_query %]">Title (Z-A)</a></li>
251 <div id="searchheader">
252 <form method="post" name="fz3950" class="fz3950bigrpad">
253 <button class="btn btn-default" type="button" id="z3950submit"><i class="fa fa-search"></i> Z39.50/SRU search</button>
255 <h3>No results found</h3>
256 [% IF ( searchdesc ) %]
258 No results match your search [% IF ( query_desc ) %]for <span style="font-weight: bold;">'[% query_desc |html %]'</span>[% END %][% IF ( limit_desc ) %] with limit(s): <span style="font-weight: bold;">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName %] Catalog[% END %].
261 <p>You did not specify any search criteria.</p>
266 [% IF ( query_error ) %]
267 <div class="dialog alert"><p><strong>Error:</strong> [% query_error %]</p></div>
270 <!-- Search Results Table -->
274 <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
278 [% IF ( scan_search_term_to_use ) %]
279 Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="[% scan_search_term_to_use | html %]" />
281 Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
287 <label for="scan-index">Indexed in:</label>
288 <select name="idx" id="scan-index">
289 <option value="">Any word</option>
290 [% IF ( ms_anycommaphr) %]<option selected="selected" value="any,phr">Any phrase</option>
291 [% ELSE %]<option value="any,phr">Any phrase</option>[% END %]
292 [% IF ( ms_ti ) %]<option selected="selected" value="ti">Title</option>
293 [% ELSE %]<option value="ti">Title</option>[% END %]
294 [% IF ( ms_ticommaphr ) %]<option selected="selected" value="ti,phr">Title phrase</option>
295 [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %]
296 [% IF ( ms_aucommaphr ) %]<option selected="selected" value="au,phr">Author</option>
297 [% ELSE %]<option value="au,phr">Author</option>[% END %]
298 [% IF ( ms_su ) %]<option selected="selected" value="su">Subject</option>
299 [% ELSE %]<option value="su">Subject</option>[% END %]
300 [% IF ( ms_sucommaphr ) %]<option selected="selected" value="su,phr">Subject phrase</option>
301 [% ELSE %]<option value="su,phr">Subject phrase</option>[% END %]
302 [% IF ( ms_se ) %]<option selected="selected" value="se">Series</option>
303 [% ELSE %]<option value="su">Series</option>[% END %]
304 [% IF ( ms_pb ) %]<option selected="selected" value="pb">Publisher</option>
305 [% ELSE %]<option value="pb">Publisher</option>[% END %]
306 [% IF ( ms_nt ) %]<option selected="selected" value="nt">Notes</option>
307 [% ELSE %]<option value="nt">Notes</option>[% END %]
308 [% IF ( ms_sn ) %]<option selected="selected" value="sn">ISBN</option>
309 [% ELSE %]<option value="sn">ISBN</option>[% END %]
310 [% IF ( ms_ss ) %]<option selected="selected" value="ss">ISSN</option>
311 [% ELSE %]<option value="ss">ISSN</option>[% END %]
313 <input type="hidden" name="scan" value="1" />
319 <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
325 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
328 <a href="/cgi-bin/koha/catalogue/search.pl?idx=[% scan_index_to_use %]&q=[% SEARCH_RESULT.scan_use |url %]"[% SEARCH_RESULT.title %]"">[% SEARCH_RESULT.title |html %]</a>
331 [% SEARCH_RESULT.author %]
339 <div id="searchresults">
341 [% INCLUDE 'page-numbers.inc' %]
343 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="bookbag_form" id="bookbag_form">
344 [% IF ( searchdesc ) %]
345 [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
346 <input type="hidden" name="[% QUERY_INPUT.input_name |html %]" value="[% QUERY_INPUT.input_value |html %]"/>
348 [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
349 <input type="hidden" name="[% LIMIT_INPUT.input_name |html %]" value="[% LIMIT_INPUT.input_value |html %]"/>
353 <!-- TABLE RESULTS START -->
356 [% IF ( AmazonCoverImages || LocalCoverImages ) %]<th> </th>[% END %]
357 <th colspan="2">Results</th>
360 <!-- Actual Search Results -->
361 [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
362 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
364 [% IF ( AmazonCoverImages || LocalCoverImages ) %]
366 [% IF ( LocalCoverImages) %]
367 <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
368 <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>
371 [% IF ( AmazonCoverImages ) %]
372 [% IF ( SEARCH_RESULT.normalized_isbn ) %]
373 <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
374 <img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />
375 [% ELSIF ( !LocalCoverImages ) %]
376 <a class="p1 no-amazon-cover" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
377 <img src="https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="" class="thumbnail" />
384 <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" style="display:none" />
388 [% UNLESS ( item_level_itypes ) %]
389 <div class="result-biblio-itemtype">
390 [% IF !noItemTypeImages && SEARCH_RESULT.imageurl %]
391 <img src="[% SEARCH_RESULT.imageurl %]" alt="[% SEARCH_RESULT.description %]" />
393 [% SEARCH_RESULT.description %]
397 [% IF ( SEARCH_RESULT.XSLTResultsRecord ) %]
398 [% SEARCH_RESULT.result_number %].
399 [% SEARCH_RESULT.XSLTResultsRecord %]
401 <p>[% SEARCH_RESULT.result_number %].
402 [% biblionumber = SEARCH_RESULT.biblionumber %]
404 [% INCLUDE 'biblio-default-view.inc' %]
405 <b>[% IF ( SEARCH_RESULT.title ) %][% SEARCH_RESULT.title |html %][% ELSE %]No title[% END %]</b>
407 [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield %][% END %]
408 [% IF ( SEARCH_RESULT.seriestitle ) %][% SEARCH_RESULT.seriestitle %][% END %]
409 [% IF ( SEARCH_RESULT.volume ) %][% SEARCH_RESULT.volume %][% END %] [% IF ( SEARCH_RESULT.volumeddesc ) %], [% SEARCH_RESULT.volumeddesc %][% END %]
411 [% IF ( SEARCH_RESULT.summary ) %]
412 [% IF ( SEARCH_RESULT.author ) %]
413 <a href="/cgi-bin/koha/catalogue/search.pl?idx=au&q=[% SEARCH_RESULT.author |url %]" title="Search for this Author">[% SEARCH_RESULT.author %]</a>
417 <p>[% SEARCH_RESULT.summary %]</p>
420 [% IF ( SEARCH_RESULT.author ) %]
421 <a href="/cgi-bin/koha/catalogue/search.pl?idx=au&q=[% SEARCH_RESULT.author |url %]" title="Search for this Author">[% SEARCH_RESULT.author %]</a>
426 <span class="results_imprint">[% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place %] [% END %]
427 [% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode %][% END %] [% IF ( SEARCH_RESULT.publicationyear ) %] [% SEARCH_RESULT.publicationyear %] [% ELSIF ( SEARCH_RESULT.copyrightdate ) %] [% SEARCH_RESULT.copyrightdate %][% END %]</span>
428 [% IF ( SEARCH_RESULT.edition ) %]<span class="results_edition">Edition: [% SEARCH_RESULT.edition %]</span>[% END %]
429 <span class="results_physicaldesc">[% IF ( SEARCH_RESULT.pages ) %]: [% SEARCH_RESULT.pages %][% END %]
430 [% IF ( SEARCH_RESULT.size ) %] ; [% SEARCH_RESULT.size %][% END %]</span> [% IF ( SEARCH_RESULT.isbn ) %]<span class="results_isbn">ISBN: [% SEARCH_RESULT.isbn | replace('\s\|', ', ')%]</span>[% END %]
431 <span class="results_itemtype">[% SEARCH_RESULT.description %]</span>
432 [% IF ( SEARCH_RESULT.timestamp ) %] <i>(modified on [% SEARCH_RESULT.timestamp %])</i>[% END %]
433 [% IF ( SEARCH_RESULT.cn_class ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% SEARCH_RESULT.cn_class |uri %]%22">[% SEARCH_RESULT.cn_class %]</a>][% END %]
435 [% IF ( SEARCH_RESULT.searchhighlightblob ) %]<p class="searchhighlightblob">[% SEARCH_RESULT.searchhighlightblob %]</p>[% END %]
441 [% IF ( SEARCH_RESULT.norequests ) %]
442 <span class="noholdstext">No holds allowed</span>
444 <a id="reserve_[% SEARCH_RESULT.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Holds ([% Biblio.HoldsCount( SEARCH_RESULT.biblionumber ) %])</a>
445 [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]&findborrower=[% holdfor_cardnumber %]">Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %]
448 [% IF Koha.Preference('intranetbookbag') == 1 %]
449 [% IF ( SEARCH_RESULT.incart ) %]
450 | <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber %]" href="#">In your cart</a> <a class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber %]" href="#">(remove)</a>
452 | <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber %]" href="#">Add to cart</a> <a style="display:none;" class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber %]" href="#">(remove)</a>
454 [% END # / IF intranetbookbag %]
456 [% IF Koha.Preference('ArticleRequests') %]
457 | <a id="requst_article_[% SEARCH_RESULT.biblionumber %]" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Request article</a>
460 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
461 | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit record</a>
463 [% IF ( CAN_user_editcatalogue_edit_items ) %]
464 | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit items</a>
467 [% IF ( OPACBaseURL ) %]
468 <span class="view-in-opac">
469 | <a href="[% Koha.Preference('OPACBaseURL') %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]" target="_blank">OPAC view</a>
476 <td><div class="availability">
477 [% IF ( SEARCH_RESULT.items_count ) %]
479 [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
480 <span class="blocker inaccurate-item-statuses" title="Item statuses may be inaccurate. Please view the record details for accurate item statuses">
483 [% SEARCH_RESULT.items_count %] [% IF ( SEARCH_RESULT.itemsplural ) %]items[% ELSE %]item[% END %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount %] available:[% ELSE %], None available[% END %]
485 [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
490 [% IF ( SEARCH_RESULT.availablecount ) %]
492 [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
494 [% IF item_level_itypes && !noItemTypeImages && available_items_loo.imageurl %]
495 <li style="list-style: none; list-style-type: none;">
496 <img src="[% available_items_loo.imageurl %]" title="[% available_items_loo.description %]" alt="[% available_items_loo.description %]" />
500 [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
501 [% IF ( available_items_loo.location ) %][% available_items_loo.location %][% END %]
502 [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% available_items_loo.itemcallnumber |uri %]%22">[% available_items_loo.itemcallnumber %]</a>][% END %]
503 ([% available_items_loo.count %])
504 [% IF item_level_itypes && available_items_loo.description %]
505 <br/>[% available_items_loo.description %]
512 [% IF ( SEARCH_RESULT.onloancount ) %]
513 <span class="status">[% SEARCH_RESULT.onloancount %] on loan:</span>
515 [% FOREACH onloan_items_loo IN SEARCH_RESULT.onloan_items_loop %]
516 [% IF item_level_itypes && !noItemTypeImages && onloan_items_loo.imageurl %]
517 <li style="list-style: none; list-style-type: none;">
518 <img src="[% onloan_items_loo.imageurl %]" title="[% onloan_items_loo.description %]" alt="[% onloan_items_loo.description %]" />
522 [% IF ( onloan_items_loo.branchname ) %][% onloan_items_loo.branchname %][% END %]
523 [% IF ( onloan_items_loo.location ) %][% onloan_items_loo.location %][% END %]
524 [% IF ( onloan_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% onloan_items_loo.itemcallnumber |uri %]%22">[% onloan_items_loo.itemcallnumber %]</a>][% END %]
525 ([% onloan_items_loo.count %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue %] long overdue[% END %]) date due: [% onloan_items_loo.due_date | $KohaDates %]
526 [% IF item_level_itypes && onloan_items_loo.description %]
527 <br/>[% onloan_items_loo.description %]
534 [% IF ( SEARCH_RESULT.othercount ) %]
535 <span class="unavailable">[% SEARCH_RESULT.othercount %] unavailable:</span>
537 [% FOREACH other_items_loo IN SEARCH_RESULT.other_items_loop %]
538 [% IF item_level_itypes && !noItemTypeImages && other_items_loo.imageurl %]
539 <li style="list-style: none; list-style-type: none;">
540 <img src="[% other_items_loo.imageurl %]" title="[% other_items_loo.description %]" alt="[% other_items_loo.description %]" />
544 [% IF ( other_items_loo.branchname ) %][% other_items_loo.branchname %][% END %]
545 [% IF ( other_items_loo.location ) %][% other_items_loo.location %][% END %]
546 [% IF ( other_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% other_items_loo.itemcallnumber |uri %]%22">[% other_items_loo.itemcallnumber %]</a>][% END %]
547 [% IF ( other_items_loo.withdrawn ) %]([% AuthorisedValues.GetByCode( 'WITHDRAWN', other_items_loo.withdrawn ) %])[% END %]
548 [% IF ( other_items_loo.itemlost ) %]([% AuthorisedValues.GetByCode( 'LOST', other_items_loo.itemlost ) %])[% END %]
549 [% IF ( other_items_loo.damaged ) %]([% AuthorisedValues.GetByCode( 'DAMAGED', other_items_loo.damaged ) %])[% END %]
550 [% IF ( other_items_loo.intransit ) %](In transit)[% END %]
551 [% IF ( other_items_loo.onhold ) %](On hold)[% END %]
552 [% IF ( other_items_loo.notforloan ) %][% other_items_loo.notforloan %][% END %]
553 ([% other_items_loo.count %])
554 [% IF item_level_itypes && other_items_loo.description %]
555 <br/>[% other_items_loo.description %]
562 [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS.count ) %]
563 <strong id="altholdings_heading">Other holdings:</strong>
565 [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
566 <li id="alternateholdings">[% ALTERNATEHOLDING.holding %]</li>
570 <span class="unavailable">No items</span>
572 [% END %] <!-- /items count -->
581 [% INCLUDE 'page-numbers.inc' %]
583 <!-- No Results Found -->
585 [% IF ( outer_sup_results_loop ) %]
588 [% FOREACH outer_sup_results_loo IN outer_sup_results_loop %]
589 <!-- <div class="yui-b"> -->
590 [% IF ( outer_sup_results_loo.inner_sup_results_loop ) %]
591 [% outer_sup_results_loo.servername %]
592 [% FOREACH inner_sup_results_loo IN outer_sup_results_loo.inner_sup_results_loop %]
593 <div><a href="/cgi-bin/koha/catalogue/search.pl?[% inner_sup_results_loo.query_cgi %][% inner_sup_results_loo.limit_cgi |html %][% inner_sup_results_loo.sort_by %][% inner_sup_results_loo.link %]">[% inner_sup_results_loo.title |html %]</a></div>
602 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
603 <!-- Value will be set here by placeHold() -->
604 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
605 <input type="hidden" name="findborrower" id="holdFor" value="" />
606 <input type="hidden" name="multi_hold" value="1"/>
609 <form id="list_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
610 <!-- Value will be set here by addToList() -->
611 <input id="list_form_biblios" type="hidden" name="biblionumbers" value="" />
612 <input type="hidden" name="multi_listadd" value="1"/>
618 [% INCLUDE 'facets.inc' %]
622 [% MACRO jsinclude BLOCK %]
623 [% INCLUDE 'browser-strings.inc' %]
624 [% Asset.js("js/browser.js") %]
625 [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
626 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
627 <script type="text/javascript">
628 var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
629 var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
630 var q_array = new Array(); // will hold search terms, if present
631 [% IF ( AmazonCoverImages ) %]
632 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
633 function verify_images() {
634 $("img").each(function(i){
635 if ((this.src.indexOf('images-amazon.com') >= 0) || (this.src.indexOf('images.amazon.com') >=0)) {
638 if ((w == 1) || (h == 1)) {
639 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
640 } else if ((this.complete != null) && (!this.complete)) {
641 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
647 $(window).load(function() {
652 $(document).ready(function() {
654 $("#searchheader").fixFloat();
656 $("#cartsubmit").click(function(e){
661 $(".addtolist").on("click",function(e){
663 var shelfnumber = $(this).data("shelfnumber");
664 var vshelf = vShelfAdd();
666 if( $(this).hasClass("morelists") ){
667 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?' + vshelf);
668 } else if( $(this).hasClass("newlist") ){
669 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vshelf);
671 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vshelf);
676 $("#z3950submit").click(function(){
681 $("#searchheader").on("click", ".browse_selection", function(){
686 $("#searchheader").on("click",".placehold", function(){
687 $("#holdFor").val("");
689 $(".btn-group").removeClass("open");
693 $(".placeholdfor").click(function(){
695 $(".btn-group").removeClass("open");
699 $("#forgetholdfor").click(function(){
701 $(".btn-group").removeClass("open");
705 $("#tagsel_span").html("<input id=\"tagsel_tag\" class=\"submit\" type=\"submit\" value=\"Tag\"/>");
707 $(".selection").show();
709 [% IF ( query_desc ) %]
710 toHighlight = $("p,span.results_summary,a.title");
711 var query_desc = "[% query_desc |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
712 q_array = query_desc.split(" ");
713 // ensure that we don't have "" at the end of the array, which can
714 // break the highlighter
715 while (q_array.length > 0 && q_array[q_array.length-1] == "") {
716 q_array = q_array.splice(0,-1);
719 $("#highlight_toggle_on" ).hide().click(function(e) {
723 $("#highlight_toggle_off").show().click(function(e) {
729 [% IF (SEARCH_RESULTS) %]
731 [%- FOREACH result IN SEARCH_RESULTS -%]
732 [%- result.biblionumber %],
735 var browser = KOHA.browser('[% searchid %]', parseInt('[% biblionumber %]', 10));
736 browser.create([% SEARCH_RESULTS.first.result_number %], '[% query_cgi %]', '[% limit_cgi | uri %]','[% sort_cgi | uri %]',
737 newresults, '[% total %]');
740 [% IF (gotoPage && gotoNumber) %]
741 [% IF (gotoNumber == 'first') %]
742 window.location = '/cgi-bin/koha/catalogue/[% gotoPage %]?biblionumber=' + [% SEARCH_RESULTS.first.biblionumber %] + '&searchid=[% searchid %]';
743 [% ELSIF (gotoNumber == 'last') %]
744 window.location = '/cgi-bin/koha/catalogue/[% gotoPage %]?biblionumber=' + [% SEARCH_RESULTS.last.biblionumber %] + '&searchid=[% searchid %]';
748 [% IF LocalCoverImages %]
749 KOHA.LocalCover.LoadResultsCovers();
752 $("#select_all").on("click",function(e){
757 $("#clear_all").on("click",function(e){
762 $("#searchresults").on("click",".addtocart",function(e){
764 var selection_id = this.id;
765 var biblionumber = selection_id.replace("cart","");
766 addRecord(biblionumber);
769 $("#searchresults").on("click",".cartRemove",function(e){
771 var selection_id = this.id;
772 var biblionumber = selection_id.replace("cartR","");
773 delSingleRecord(biblionumber);
776 [% UNLESS Koha.Preference('BrowseResultSelection') %]
777 resetSearchContext();
779 $(".selection").change(function(){
780 if ( $(this).is(':checked') == true ) {
781 addBibToContext( $(this).val() );
783 delBibToContext( $(this).val() );
786 $("#bookbag_form").ready(function(){
787 $("#bookbag_form").unCheckCheckboxes();
788 var bibnums = getContextBiblioNumbers();
790 for (var i=0; i < bibnums.length; i++) {
791 var id = ('#bib' + bibnums[i]);
793 $(id).attr('checked', true);
802 [% IF ( query_desc ) %]
803 function highlightOff() {
804 toHighlight.removeHighlight();
805 $(".highlight_toggle").toggle();
807 function highlightOn() {
810 q_array[x] = q_array[x].toLowerCase();
811 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
812 if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
813 toHighlight.highlight(q_array[x]);
816 $(".highlight_toggle").toggle();
820 function selectAll () {
821 $("#bookbag_form").checkCheckboxes();
822 $("#bookbag_form").find("input[type='checkbox'][name='biblionumber']").each(function(){
827 function clearAll () {
828 $("#bookbag_form").unCheckCheckboxes();
829 $("#bookbag_form").find("input[type='checkbox'][name='biblionumber']").each(function(){
834 function placeHold () {
835 var checkedItems = $(".selection:checked");
836 if ($(checkedItems).size() == 0) {
837 alert(MSG_NO_ITEM_SELECTED);
842 $(checkedItems).each(function() {
843 var bib = $(this).val();
844 if ($("#reserve_" + bib).size() == 0) {
845 alert(MSG_NON_RESERVES_SELECTED);
854 $("#hold_form_biblios").val(bibs);
855 $("#hold_form").submit();
859 function forgetPatron(){
860 $.removeCookie("holdfor", { path: '/' });
861 $(".holdforlink").remove();
862 $("#placeholdc").html("<a class=\"btn btn-default btn-xs placehold\" href=\"#\"><i class=\"fa fa-sticky-note-o\"></i> "+_("Place hold")+"</a>");
865 function browse_selection () {
866 var bibnums = getContextBiblioNumbers();
867 if ( bibnums && bibnums.length > 0 ) {
868 var browser = KOHA.browser('', parseInt('[% biblionumber %]', 10));
869 browser.create(1, '[% query_cgi %]', '[% limit_cgi | uri %]','[% sort_cgi | uri %]', bibnums, bibnums.length);
870 window.location = '/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + bibnums[0] + '&searchid='+browser.searchid;
872 alert(MSG_NO_ITEM_SELECTED);
877 function addToList () {
878 var checkedItems = $(".selection:checked");
879 if ($(checkedItems).size() == 0) {
880 alert(MSG_NO_ITEM_SELECTED);
884 $(checkedItems).each(function() {
885 bibs += $(this).val() + "/";
888 var url = "/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumbers=" + bibs;
889 window.open(url, 'Add_to_virtualshelf', 'width=500, height=400, toolbar=false, scrollbars=yes');
893 /* this function open a popup to search on z3950 server. */
894 function PopupZ3950() {
895 var strQuery = GetZ3950Terms();
897 window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=[% biblionumber %]"+strQuery,"z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
900 /* provide Z3950 search points */
901 function GetZ3950Terms(){
902 var strQuery="&frameworkcode=";
903 [% FOREACH z3950_search_param IN z3950_search_params %]
904 strQuery += "&" + "[% z3950_search_param.name |uri %]" + "=" + "[% z3950_search_param.value |uri %]";
910 $("#holdFor").val("");
914 function holdForPatron() {
915 $("#holdFor").val("[% holdfor_cardnumber %]");
921 [% INCLUDE 'intranet-bottom.inc' %]