Bug 14715: (follow-up) Keep results per page setting when selecting facets and sortin...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / results.tt
1 [% USE raw %]
2 [% USE To %]
3 [% USE Asset %]
4 [% USE Koha %]
5 [% USE Biblio %]
6 [% USE KohaDates %]
7 [% PROCESS 'i18n.inc' %]
8 [% SET footerjs = 1 %]
9 [% USE AuthorisedValues %]
10 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
11 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
12 [% IF BiblioDefaultViewmarc %]
13     [% SET DetailPage="MARCdetail.pl" %]
14 [% ELSIF BiblioDefaultViewlabeled_marc %]
15     [% SET DetailPage="labeledMARCdetail.pl" %]
16 [% ELSIF BiblioDefaultViewisbd %]
17     [% SET DetailPage="ISBDdetail.pl" %]
18 [% ELSE %]
19     [% SET DetailPage="detail.pl" %]
20 [% END %]
21 [% INCLUDE 'doc-head-open.inc' %]
22
23 <title>Koha &rsaquo; Catalog &rsaquo; [% IF ( searchdesc ) %]Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s):&nbsp;'[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %]</title>
24 [% INCLUDE 'doc-head-close.inc' %]
25 </head>
26
27 <body id="catalog_results" class="catalog">
28 [% INCLUDE 'header.inc' %]
29 [% INCLUDE 'cat-search.inc' %]
30
31 [% IntranetCoce    = Koha.Preference('IntranetCoce') %]
32 [% CoceProviders   = Koha.Preference('CoceProviders') %]
33 [% CoceHost        = Koha.Preference('CoceHost') %]
34
35 <div id="breadcrumbs">
36     <a href="/cgi-bin/koha/mainpage.pl">Home</a>
37     &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
38     &rsaquo; Search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s):&nbsp;'[% limit_desc | html %]'[% END %]
39 </div>
40
41 <div class="main container-fluid">
42     <div class="row">
43         <div class="col-sm-10 col-sm-push-2">
44             <main>
45
46                 [% IF ( outer_sup_results_loop ) %]
47                     <div class="row">
48                         <div class="col-sm-8">
49                 [% END %]
50
51                 [% IF ( koha_spsuggest ) %]
52                     <div style="font-size: 12px;">Did you mean:
53                         <ul style="list-style: none;">
54                             [% FOREACH SPELL_SUGGES IN SPELL_SUGGEST %]
55                                 <li>
56                                     <a href="/cgi-bin/koha/catalogue/search.pl?q=[% SPELL_SUGGES.spsuggestion | uri %]">[% SPELL_SUGGES.spsuggestion | html %]</a>
57                                 </li>
58                             [% END %]
59                         </ul>
60                     </div>
61                 [% END %]
62
63                 [% IF ( total ) %]
64
65                     <h3>
66                         [% total | html %] result(s) found [% IF ( query_desc ) %]for <span class="results_query_desc">'[% query_desc | html %]'</span>[% END %][% IF limit_desc  %]&nbsp;with limit(s): <span class="results_limit_desc">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].
67                     </h3>
68
69                     <div id="searchheader">
70                         <div id="selection_ops">
71                             <a href="#" id="select_all"><i class="fa fa-check"></i> Select all</a>
72                             |
73                             <a href="#" id="clear_all"><i class="fa fa-remove"></i> Clear all</a>
74                             |
75                             <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
76                             <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
77                             |
78
79                             [% IF ( intranetbookbag ) %]
80                                 <div class="btn-group">
81                                     <a id="cartsubmit" class="btn btn-default btn-xs" href="#"><i class="fa fa-shopping-cart"></i> Add to cart</a>
82                                 </div>
83                             [% END %]
84
85                             [% IF Koha.Preference('virtualshelves') %]
86                                 <div class="btn-group">
87                                     <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
88                                         <i class="fa fa-list"></i> Add to list <span class="caret"></span>
89                                     </button>
90                                     <ul class="dropdown-menu">
91                                         [% IF add_to_some_private_shelves.count %]
92                                             <li class="dropdown-header">Your lists</li>
93                                             [% SET number_of_private_shelves = 0 %]
94                                             [% FOREACH s IN add_to_some_private_shelves %]
95                                                 [% IF shelfnumber != s.shelfnumber %]
96                                                     <li>
97                                                         <a href="#" class="addtolist" data-shelfnumber="[% s.shelfnumber | html %]">[% s.shelfname | html %]</a>
98                                                     </li>
99                                                     [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
100                                                     [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
101                                                 [% END %]
102                                             [% END %]
103                                         [% END %]
104                                         [% IF add_to_some_public_shelves.count %]
105                                             <li class="dropdown-header">Public lists</li>
106                                             [% SET number_of_public_shelves = 0 %]
107                                             [% FOREACH s IN add_to_some_public_shelves %]
108                                                 [% IF shelfnumber != s.shelfnumber %]
109                                                     <li>
110                                                         <a href="#" data-shelfnumber="[% s.shelfnumber | html %]" class="addtolist">[% s.shelfname | html %]</a>
111                                                     </li>
112                                                     [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
113                                                     [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
114                                                 [% END %]
115                                             [% END %]
116                                         [% END %]
117                                         <li role="separator" class="divider"></li>
118                                         [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %]
119                                             <li>
120                                                 <a href="#" class="addtolist morelists">More lists</a>
121                                             </li>
122                                         [% END %]
123                                         <li>
124                                             <a href="#" class="addtolist newlist">New list</a>
125                                         </li>
126                                     </ul>
127                                 </div>
128                             [% END # /IF virtualshelves %]
129
130                             [% IF ( CAN_user_reserveforothers_place_holds && DisplayMultiPlaceHold ) %]
131                                 [% IF ( holdfor or holdforclub ) %]
132                                     <div id="placeholdc" class="btn-group">
133                                         <button class="btn btn-default btn-xs placehold"><i class="fa fa-sticky-note-o"></i> Place hold</button>
134                                         <button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
135                                         <span class="caret"></span>
136                                         </button>
137                                         <ul class="dropdown-menu">
138                                             <li><a href="#" class="placehold">Place hold</a></li>
139                                             [% IF holdfor %]
140                                                 <li><a href="#" class="placeholdfor">Place hold for [% holdfor_firstname | html %] [% holdfor_surname | html %] ([% holdfor_cardnumber | html %])</a></li>
141                                                 <li class="divider"></li>
142                                                 <li><a href="#" id="forgetholdfor">Forget  [% holdfor_firstname | html %] [% holdfor_surname | html %] ([% holdfor_cardnumber | html %])</a></li>
143                                             [% END %]
144                                             [% IF holdforclub %]
145                                                 <li><a href="#" class="placeholdforclub">Place hold for [% holdforclub_name | html %]</a></li>
146                                                 <li class="divider"></li>
147                                                 <li><a href="#" id="forgetholdforclub">Forget  [% holdforclub_name | html %]</a></li>
148                                             [% END %]
149                                         </ul>
150                                     </div>
151                                 [% ELSE %]
152                                     <div id="placeholdc" class="btn-group">
153                                         <a class="btn btn-default btn-xs placehold" href="#"><i class="fa fa-sticky-note-o"></i> Place hold</a>
154                                     </div>
155                                 [% END # /IF holfor %]
156                             [% END # /IF CAN_user_reserveforothers_place_holds %]
157
158                             [% IF Koha.Preference('BrowseResultSelection') %]
159                                 <div id="browse_selection" class="btn-group">
160                                     <a class="btn btn-default btn-xs browse_selection" href="#"><i class="fa fa-sticky-note-o"></i> Browse selected records</a>
161                                 </div>
162                             [% END %]
163
164                             [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
165                                 <div class="btn-group">
166                                     <a class="btn btn-default btn-xs" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a>
167                                 </div>
168                             [% END %]
169
170                             [% IF ( searchdesc ) %]
171                                 [% BLOCK sort_search_query ~%]
172                                     [%~ FOREACH QUERY_INPUT IN QUERY_INPUTS ~%]
173                                         &amp;[% QUERY_INPUT.input_name | uri %]=[% QUERY_INPUT.input_value | uri %]
174                                     [%~ END ~%]
175                                     [%~ FOREACH LIMIT_INPUT IN LIMIT_INPUTS ~%]
176                                         &amp;[% LIMIT_INPUT.input_name | uri %]=[% LIMIT_INPUT.input_value | uri %]
177                                     [%~ END ~%]
178                                 [%~ END %]
179                             [% END %]
180
181                             <div class="btn-group">
182                                 <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
183                                     Sort <span class="caret"></span>
184                                 </button>
185                                 <ul class="dropdown-menu">
186                                     [% IF ( sort_by == "relevance_dsc" ) %]
187                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=relevance[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Relevance</a></li>
188                                     [% ELSE %]
189                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=relevance[% PROCESS sort_search_query %]">Relevance</a></li>
190                                     [% END %]
191                                     <li class="dropdown-header">Popularity</li>
192                                     [% IF ( sort_by == "popularity_dsc" ) %]
193                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Popularity (most to least)</a></li>
194                                     [% ELSE %]
195                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_dsc[% PROCESS sort_search_query %]">Popularity (most to least)</a></li>
196                                     [% END %]
197
198                                     [% IF ( sort_by == "popularity_asc" ) %]
199                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Popularity (least to most)</a></li>
200                                     [% ELSE %]
201                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=popularity_asc[% PROCESS sort_search_query %]">Popularity (least to most)</a></li>
202                                     [% END %]
203
204                                     <li class="dropdown-header">Author</li>
205
206                                     [% IF ( sort_by == "author_az" || sort_by == "author_asc" ) %]
207                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_a[% PROCESS sort_search_query %]z"><i class="fa fa-check"></i> Author (A-Z)</a></li>
208                                     [% ELSE %]
209                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_az[% PROCESS sort_search_query %]">Author (A-Z)</a></li>
210                                     [% END %]
211
212                                     [% IF ( sort_by == "author_za" || sort_by == "author_dsc" ) %]
213                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_za[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Author (Z-A)</a></li>
214                                     [% ELSE %]
215                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=author_za[% PROCESS sort_search_query %]">Author (Z-A)</a></li>
216                                     [% END %]
217
218                                     <li class="dropdown-header">Call number</li>
219
220                                     [% IF ( sort_by == "call_number_asc" ) %]
221                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Call Number (0-9 to A-Z)</a></li>
222                                     [% ELSE %]
223                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_asc[% PROCESS sort_search_query %]">Call Number (0-9 to A-Z)</a></li>
224                                     [% END %]
225
226                                     [% IF ( sort_by == "call_number_dsc" ) %]
227                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Call number (Z-A to 9-0)</a></li>
228                                     [% ELSE %]
229                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=call_number_dsc[% PROCESS sort_search_query %]">Call number (Z-A to 9-0)</a></li>
230                                     [% END %]
231
232                                     <li class="dropdown-header">Dates</li>
233                                     [% IF ( sort_by == "pubdate_dsc" ) %]
234                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Publication/Copyright date: newest to oldest</a></li>
235                                     [% ELSE %]
236                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_dsc[% PROCESS sort_search_query %]">Publication/Copyright date: newest to oldest</a></li>
237                                     [% END %]
238
239                                     [% IF ( sort_by == "pubdate_asc" ) %]
240                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Publication/Copyright date: oldest to newest</a></li>
241                                     [% ELSE %]
242                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=pubdate_asc[% PROCESS sort_search_query %]">Publication/Copyright date: oldest to newest</a></li>
243                                     [% END %]
244
245                                     [% IF ( sort_by == "acqdate_dsc" ) %]
246                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_dsc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Acquisition date: newest to oldest</a></li>
247                                     [% ELSE %]
248                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_dsc[% PROCESS sort_search_query %]">Acquisition date: newest to oldest</a></li>
249                                     [% END %]
250
251                                     [% IF ( sort_by == "acqdate_asc" ) %]
252                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_asc[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Acquisition date: oldest to newest</a></li>
253                                     [% ELSE %]
254                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=acqdate_asc[% PROCESS sort_search_query %]">Acquisition date: oldest to newest</a></li>
255                                     [% END %]
256
257                                     <li class="dropdown-header">Title</li>
258                                     [% IF ( sort_by == "title_az" || sort_by == "title_asc" ) %]
259                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_az[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Title (A-Z)</a></li>
260                                     [% ELSE %]
261                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_az[% PROCESS sort_search_query %]">Title (A-Z)</a></li>
262                                     [% END %]
263
264                                     [% IF ( sort_by == "title_za" || sort_by == "title_dsc" ) %]
265                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_za[% PROCESS sort_search_query %]"><i class="fa fa-check"></i> Title (Z-A)</a></li>
266                                     [% ELSE %]
267                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% results_per_page | uri %]&sort_by=title_za[% PROCESS sort_search_query %]">Title (Z-A)</a></li>
268                                     [% END %]
269                                 </ul>
270                             </div> <!-- /.btn-group -->
271
272                             [% IF Koha.Preference('numSearchResultsDropdown') && Koha.Preference('SearchEngine') == "Zebra" %]
273                                 <div class="btn-group">
274                                     <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
275                                         Results per page: [% results_per_page | html %] <span class="caret"></span>
276                                     </button>
277                                     <ul class="dropdown-menu">
278                                         [% IF Koha.Preference('numSearchResults') %]
279                                             <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% Koha.Preference('numSearchResults')%][% PROCESS sort_search_query %]" id="resultsperpage-default">
280                                                 [% IF results_per_page == Koha.Preference('numSearchResults') %]
281                                                     <i class="fa fa-check"></i>
282                                                 [% END %] Library default: [% Koha.Preference('numSearchResults') | html %]
283                                             </a></li>
284                                         [% END %]
285                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=20[% PROCESS sort_search_query %]">[% IF results_per_page == '20' %]<i class="fa fa-check"></i>[% END %] 20</a></li>
286                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=40[% PROCESS sort_search_query %]" id="resultsperpage-40">[% IF results_per_page == '40' %]<i class="fa fa-check"></i>[% END %] 40</a></li>
287                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=60[% PROCESS sort_search_query %]" id="resultsperpage-60">[% IF results_per_page == '60' %]<i class="fa fa-check"></i>[% END %] 60</a></li>
288                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=80[% PROCESS sort_search_query %]" id="resultsperpage-80">[% IF results_per_page == '80' %]<i class="fa fa-check"></i>[% END %] 80</a></li>
289                                         <li><a href="/cgi-bin/koha/catalogue/search.pl?count=100[% PROCESS sort_search_query %]" id="resultsperpage-100">[% IF results_per_page == '100' %]<i class="fa fa-check"></i>[% END %] 100</a></li>
290                                     </ul>
291                                 </div> <!-- /.btn-group -->
292                             [% END %]
293
294                         </div> <!-- /#selection_ops -->
295                     </div> <!-- /#searchheader -->
296
297                 [% ELSE # /IF total %]
298
299                     <div id="searchheader">
300                         <form method="post" name="fz3950" class="fz3950bigrpad">
301                             <button class="btn btn-default" type="button" id="z3950submit"><i class="fa fa-search"></i> Z39.50/SRU search</button>
302                         </form>
303                         <h3>No results found</h3>
304                         [% IF ( searchdesc ) %]
305                             <p>
306                                 No results match your search [% IF ( query_desc ) %]for <span style="font-weight: bold;">'[% query_desc | html %]'</span>[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s): <span style="font-weight: bold;">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].
307                             </p>
308                         [% ELSE %]
309                             <p>You did not specify any search criteria.</p>
310                         [% END %]
311                     </div>
312                 [% END # /IF total %]
313
314                 [% IF ( query_error ) %]
315                     <div class="dialog alert"><p><strong>Error:</strong> [% query_error | html %]</p></div>
316                 [% END %]
317
318                 <!-- Search Results Table -->
319                 [% IF ( total ) %]
320                     [% IF ( scan ) %]
321                         <h1>Scan index:</h1>
322                         <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
323                             <table>
324                                 <tr>
325                                     <td>
326                                         [% IF ( scan_search_term_to_use ) %]
327                                             Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="[% scan_search_term_to_use | html %]" />
328                                         [% ELSE %]
329                                             Scan Index for: <input type="text" name="q" id="scan-index" size="35" value="" />
330                                         [% END %]
331                                     </td>
332                                 </tr>
333                                 <tr>
334                                     <td>
335                                         <label for="scan-index">Indexed in:</label>
336                                         <select name="idx" id="scan-index">
337                                             <option value="">Any word</option>
338                                             [% IF ( ms_anycommaphr) %]<option selected="selected" value="any,phr">Any phrase</option>
339                                             [% ELSE %]<option value="any,phr">Any phrase</option>[% END %]
340                                             [% IF ( ms_ti ) %]<option selected="selected" value="ti">Title</option>
341                                             [% ELSE %]<option value="ti">Title</option>[% END %]
342                                             [% IF ( ms_ticommaphr ) %]<option selected="selected" value="ti,phr">Title phrase</option>
343                                             [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %]
344                                             [% IF ( ms_au || ms_aucommaphr ) %]<option selected="selected" value="au,phr">Author</option>
345                                             [% ELSE %]<option value="au,phr">Author</option>[% END %]
346                                             [% IF ( ms_su ) %]<option selected="selected" value="su">Subject</option>
347                                             [% ELSE %]<option value="su">Subject</option>[% END %]
348                                             [% IF ( ms_sucommaphr ) %]<option selected="selected" value="su,phr">Subject phrase</option>
349                                             [% ELSE %]<option value="su,phr">Subject phrase</option>[% END %]
350                                             [% IF ( ms_se ) %]<option selected="selected" value="se">Series</option>
351                                             [% ELSE %]<option value="su">Series</option>[% END %]
352                                             [% IF ( ms_pb ) %]<option selected="selected" value="pb">Publisher</option>
353                                             [% ELSE %]<option value="pb">Publisher</option>[% END %]
354                                             [% IF ( ms_nt ) %]<option selected="selected" value="nt">Notes</option>
355                                             [% ELSE %]<option value="nt">Notes</option>[% END %]
356                                             [% IF ( ms_sn ) %]<option selected="selected" value="sn">ISBN</option>
357                                             [% ELSE %]<option value="sn">ISBN</option>[% END %]
358                                             [% IF ( ms_ss ) %]<option selected="selected" value="ss">ISSN</option>
359                                             [% ELSE %]<option value="ss">ISSN</option>[% END %]
360                                         </select>
361                                         <input type="hidden" name="scan" value="1" />
362                                         <input class="submit" type="submit" value="Submit" />
363                                     </td>
364                                 </tr>
365                             </table>
366                         </form>
367
368                         <form action="/cgi-bin/koha/catalogue/search.pl" method="get">
369                             <table>
370                                 <tr>
371                                     <th>Term/Phrase</th>
372                                     <th>Count</th>
373                                 </tr>
374                                 [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
375                                     <tr>
376                                         <td>
377                                             <a href="/cgi-bin/koha/catalogue/search.pl?idx=[% scan_index_to_use | uri %]&amp;q=[% SEARCH_RESULT.scan_use |url %]&quot;[% SEARCH_RESULT.title | uri %]&quot;">[% SEARCH_RESULT.title | html %]</a>
378                                         </td>
379                                         <td>
380                                             [% SEARCH_RESULT.author | html %]
381                                         </td>
382                                     </tr>
383                                 [% END %]
384                             </table>
385                         </form>
386                     [% ELSE # /IF scan %]
387
388                         <div id="searchresults">
389                             [% INCLUDE 'page-numbers.inc' %]
390
391                             <form action="/cgi-bin/koha/catalogue/search.pl" method="get" name="bookbag_form" id="bookbag_form">
392                                 [% IF ( searchdesc ) %]
393                                     [% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
394                                         <input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/>
395                                     [% END %]
396                                     [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %]
397                                         <input type="hidden" name="[% LIMIT_INPUT.input_name | html %]" value="[% LIMIT_INPUT.input_value | html %]"/>
398                                     [% END %]
399                                 [% END %]
400
401                                 <!-- TABLE RESULTS START -->
402                                 <table>
403                                     <tr>
404                                         [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
405                                             <th>&nbsp;</th>
406                                         [% END %]
407                                         <th colspan="2">Results</th>
408                                         <th>Location</th>
409                                     </tr>
410                                     <!-- Actual Search Results -->
411                                     [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
412                                     [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
413                                         <tr>
414                                             [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
415                                                 <td>
416                                                     [% IF ( LocalCoverImages) %]
417                                                         <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
418                                                             <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
419                                                         </a>
420                                                     [% END %]
421                                                     [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
422                                                         <a href="[% AdlibrisURL | url %]?isbn=[% SEARCH_RESULT.normalized_isbn | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% SEARCH_RESULT.normalized_isbn | uri %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
423                                                     [% END %]
424                                                     [% IF ( AmazonCoverImages ) %]
425                                                         [% IF ( SEARCH_RESULT.normalized_isbn ) %]
426                                                             <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
427                                                             <img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />
428                                                         [% ELSIF ( !LocalCoverImages ) %]
429                                                             <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
430                                                             <span class="no-image">No cover image available</span>
431                                                         [% END %]
432                                                         </a>
433                                                     [% END # /IF AmazonCoverImages %]
434                                                     [% IF ( IntranetCoce && CoceProviders ) %]
435                                                         [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
436                                                             <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber | url %]">
437                                                         [% IF ( coce_id ) %]
438                                                             <span style="block" title="[% SEARCH_RESULT.biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
439                                                         [% ELSE %]
440                                                             <span class="no-image">No cover image available</span>
441                                                         [% END %]
442                                                             </a>
443                                                     [% END %]
444
445                                                     [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
446                                                         <a class="custom_cover_image" href="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" />
447                                                     [% END %]
448                                                 </td>
449                                             [% END # /IF( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce )%]
450
451                                             <td>
452                                                 <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" style="display:none" />
453                                             </td>
454
455                                             <td>
456                                                 [% UNLESS ( item_level_itypes ) %]
457                                                     <div class="result-biblio-itemtype">
458                                                         [% IF !noItemTypeImages && SEARCH_RESULT.imageurl %]
459                                                             <img src="[% SEARCH_RESULT.imageurl | html %]" alt="[%  SEARCH_RESULT.description | html %]" />
460                                                         [% END %]
461                                                         [% SEARCH_RESULT.description | html %]
462                                                     </div>
463                                                 [% END %]
464
465                                                 [% SEARCH_RESULT.result_number | html %].
466                                                 [% SEARCH_RESULT.XSLTResultsRecord | $raw %]
467
468                                                 <p class="hold">
469                                                     [% IF ( SEARCH_RESULT.norequests ) %]
470                                                         <span class="noholdstext">No holds allowed</span>
471                                                     [% ELSE %]
472                                                         [% IF CAN_user_reserveforothers_place_holds %]
473                                                             <a id="reserve_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Holds ([% Biblio.HoldsCount( SEARCH_RESULT.biblionumber ) | html %])</a>
474                                                             [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]&amp;findborrower=[% holdfor_cardnumber | uri %]">Place hold for [% holdfor_firstname | html %] [% holdfor_surname | html %] ([% holdfor_cardnumber | html %])</a></span>[% END %]
475                                                             [% IF ( holdforclub ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]&amp;club=[% holdforclub | uri %]">Place hold for [% holdforclub_name | html %]</a></span>[% END %]
476                                                         [% ELSE %]
477                                                             Holds ([% Biblio.HoldsCount( SEARCH_RESULT.biblionumber ) | html %])
478                                                         [% END %]
479                                                     [% END # /IF SEARCH_RESULT.norequests %]
480
481                                                     [% IF Koha.Preference('intranetbookbag') == 1 %]
482                                                         [% IF ( SEARCH_RESULT.incart ) %]
483                                                             | <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber | html %]" href="#">In your cart</a> <a class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a>
484                                                         [% ELSE %]
485                                                             | <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber | html %]" href="#">Add to cart</a> <a style="display:none;" class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber | html %]" href="#">(remove)</a>
486                                                         [% END %]
487                                                     [% END # / IF intranetbookbag %]
488
489                                                     [% IF Koha.Preference('ArticleRequests') %]
490                                                         | <a id="requst_article_[% SEARCH_RESULT.biblionumber | html %]" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]">Request article</a>
491                                                     [% END %]
492
493                                                     [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
494                                                         | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Edit record</a>
495                                                     [% END %]
496                                                     [% IF ( CAN_user_editcatalogue_edit_items ) %]
497                                                         | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Edit items</a>
498                                                     [% END %]
499
500                                                     [% IF ( CAN_user_acquisition_order_manage ) %]
501                                                         [% IF ( searchtoorder_basketno && searchtoorder_vendorid ) %]
502                                                             | <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% searchtoorder_vendorid | uri %]&amp;basketno=[% searchtoorder_basketno | uri %]&amp;biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">Add order</a>
503                                                         [% END %]
504                                                     [% END %]
505
506                                                     [% IF ( OPACBaseURL ) %]
507                                                         <span class="view-in-opac">
508                                                             | <a href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" target="_blank">OPAC view</a>
509                                                         </span>
510                                                     [% END %]
511                                                 </p> <!-- /.holds -->
512                                             </td>
513
514                                             <td>
515                                                 <div class="availability">
516                                                     [% IF ( SEARCH_RESULT.items_count ) %]
517                                                         <strong>
518                                                             [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
519                                                                 <span class="blocker inaccurate-item-statuses" title="Item statuses may be inaccurate. Please view the record details for accurate item statuses">
520                                                             [% END %]
521
522                                                             [% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount | html %] available:[% ELSE %], None available[% END %]
523
524                                                             [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
525                                                                 </span>
526                                                             [% END %]
527                                                         </strong>
528
529                                                         [% IF ( SEARCH_RESULT.availablecount ) %]
530                                                             <ul>
531                                                                 [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
532                                                                     [% IF item_level_itypes && !noItemTypeImages && available_items_loo.imageurl %]
533                                                                         <li style="list-style: none; list-style-type: none;">
534                                                                             <img src="[% available_items_loo.imageurl | html %]" title="[% available_items_loo.description | html %]" alt="[% available_items_loo.description | html %]" />
535                                                                     [% ELSE %]
536                                                                         <li>
537                                                                     [% END %]
538                                                                     [% IF ( available_items_loo.branchname ) %]
539                                                                         [% available_items_loo.branchname | html %]
540                                                                     [% END %]
541                                                                     [% IF ( available_items_loo.location ) %]
542                                                                         <span class="shelvingloc">[% available_items_loo.location | html %]</span>
543                                                                     [% END %]
544                                                                     [% IF ( available_items_loo.itemcallnumber ) %]
545                                                                         [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% available_items_loo.itemcallnumber |uri %]%22">[% available_items_loo.itemcallnumber | html %]</a>]
546                                                                     [% END %]
547                                                                     ([% available_items_loo.count | html %])
548                                                                     [% IF item_level_itypes && available_items_loo.description %]
549                                                                         <br/>[% available_items_loo.description | html %]
550                                                                     [% END %]
551                                                                     </li>
552                                                                 [% END # /FOREACH available_items_loo %]
553                                                             </ul>
554                                                         [% END # /IF SEARCH_RESULT.availablecount %]
555
556                                                         [% IF ( SEARCH_RESULT.onloancount ) %]
557                                                             <span class="status">[% SEARCH_RESULT.onloancount | html %] on loan:</span>
558                                                             <ul>
559                                                                 [% FOREACH onloan_items_loo IN SEARCH_RESULT.onloan_items_loop %]
560                                                                     [% IF item_level_itypes && !noItemTypeImages && onloan_items_loo.imageurl %]
561                                                                         <li style="list-style: none; list-style-type: none;">
562                                                                             <img src="[% onloan_items_loo.imageurl | html %]" title="[% onloan_items_loo.description | html %]" alt="[% onloan_items_loo.description | html %]" />
563                                                                     [% ELSE %]
564                                                                         <li>
565                                                                     [% END %]
566                                                                     [% IF ( onloan_items_loo.branchname ) %]
567                                                                         [% onloan_items_loo.branchname | html %]
568                                                                     [% END %]
569                                                                     [% IF ( onloan_items_loo.location ) %]
570                                                                         <span class="shelvingloc">[% onloan_items_loo.location | html %]</span>
571                                                                     [% END %]
572                                                                     [% IF ( onloan_items_loo.itemcallnumber ) %]
573                                                                         [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% onloan_items_loo.itemcallnumber |uri %]%22">[% onloan_items_loo.itemcallnumber | html %]</a>]
574                                                                     [% END %]
575                                                                     ([% onloan_items_loo.count | html %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue | html %] long overdue[% END %]) date due: [% onloan_items_loo.due_date | $KohaDates %]
576                                                                     [% IF item_level_itypes && onloan_items_loo.description %]
577                                                                     <br/>[% onloan_items_loo.description | html %]
578                                                                 [% END %]
579                                                                 </li>
580                                                                 [% END # /FOREACH onloan_items_loo %]
581                                                             </ul>
582                                                         [% END # IF SEARCH_RESULT.onloancount %]
583
584                                                         [% IF ( SEARCH_RESULT.othercount ) %]
585                                                             <span class="unavailable">[% SEARCH_RESULT.othercount | html %] unavailable:</span>
586                                                             <ul>
587                                                                 [% FOREACH other_items_loo IN SEARCH_RESULT.other_items_loop %]
588                                                                     [% IF item_level_itypes && !noItemTypeImages && other_items_loo.imageurl %]
589                                                                         <li style="list-style: none; list-style-type: none;">
590                                                                             <img src="[% other_items_loo.imageurl | html %]" title="[% other_items_loo.description | html %]" alt="[% other_items_loo.description | html %]" />
591                                                                     [% ELSE %]
592                                                                         <li>
593                                                                     [% END %]
594                                                                     [% IF ( other_items_loo.branchname ) %]
595                                                                         [% other_items_loo.branchname | html %]
596                                                                     [% END %]
597                                                                     [% IF ( other_items_loo.location ) %]
598                                                                         <span class="shelvingloc">[% other_items_loo.location | html %]</span>
599                                                                     [% END %]
600                                                                     [% IF ( other_items_loo.itemcallnumber ) %]
601                                                                         [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=%22[% other_items_loo.itemcallnumber |uri %]%22">[% other_items_loo.itemcallnumber | html %]</a>]
602                                                                     [% END %]
603                                                                     [% IF ( other_items_loo.withdrawn ) %]
604                                                                         ([% AuthorisedValues.GetByCode( 'WITHDRAWN', other_items_loo.withdrawn ) | html %])
605                                                                     [% END %]
606                                                                     [% IF ( other_items_loo.itemlost ) %]
607                                                                         ([% AuthorisedValues.GetByCode( 'LOST', other_items_loo.itemlost ) | html %])
608                                                                     [% END %]
609                                                                     [% IF ( other_items_loo.damaged ) %]
610                                                                         ([% AuthorisedValues.GetByCode( 'DAMAGED', other_items_loo.damaged ) | html %])
611                                                                     [% END %]
612                                                                     [% IF ( other_items_loo.intransit ) %]
613                                                                         (In transit)
614                                                                     [% END %]
615                                                                     [% IF ( other_items_loo.onhold ) %]
616                                                                         (On hold)
617                                                                     [% END %]
618                                                                     [% IF ( other_items_loo.notforloan ) %]
619                                                                         [% other_items_loo.notforloan | html %]
620                                                                     [% END %]
621                                                                     ([% other_items_loo.count | html %])
622                                                                     [% IF item_level_itypes && other_items_loo.description %]
623                                                                         <br/>[% other_items_loo.description | html %]
624                                                                     [% END %]
625                                                                     </li>
626                                                                 [% END # /FOREACH other_items_loo %]
627                                                             </ul>
628                                                         [% END # /IF SEARCH_RESULT.othercount %]
629
630                                                     [% ELSE # /IF ( SEARCH_RESULT.items_count ) %]
631
632                                                         [% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS.count ) %]
633                                                             <strong id="altholdings_heading">Other holdings:</strong>
634                                                             <ul>
635                                                                 [% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
636                                                                     <li id="alternateholdings">[% ALTERNATEHOLDING.holding | html %]</li>
637                                                                 [% END %]
638                                                             </ul>
639                                                         [% ELSE %]
640                                                             <span class="unavailable">No items</span>
641                                                         [% END %]
642                                                     [% END # /IF ( SEARCH_RESULT.items_count ) %]
643                                                 </div> <!-- /.availability -->
644                                             </td>
645                                         </tr>
646                                     [% END # /FOREACH SEARCH_RESULT %]
647                                 </table>
648                             </form>
649                         </div> <!-- /#bookbag_form -->
650                     [% END # /IF scan %]
651                     [% INCLUDE 'page-numbers.inc' %]
652                 [% ELSE #/IF total %]
653                     <!-- No Results Found -->
654                 [% END #/IF total %]
655
656                 [% IF ( outer_sup_results_loop ) %]
657                     </div>
658                     <div class="col-sm-4">
659                         [% FOREACH outer_sup_results_loo IN outer_sup_results_loop %]
660                             [% IF ( outer_sup_results_loo.inner_sup_results_loop ) %]
661                                 [% outer_sup_results_loo.servername | html %]
662                                 [% FOREACH inner_sup_results_loo IN outer_sup_results_loo.inner_sup_results_loop %]
663                                     <div>
664                                         <a href="/cgi-bin/koha/catalogue/search.pl?[% inner_sup_results_loo.query_cgi | $raw %][% inner_sup_results_loo.limit_cgi | $raw %][% inner_sup_results_loo.sort_by | uri %][% inner_sup_results_loo.link | uri %]">[% inner_sup_results_loo.title | html %]</a>
665                                     </div>
666                                 [% END %]
667                             [% END %]
668                         [% END # FOREACH outer_sup_results_loo %]
669                     </div> <!-- /.col-sm-4 -->
670                 </div>
671                 [% END #/IF outer_sup_results_loop %]
672
673                 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
674                     <!-- Value will be set here by placeHold() -->
675                     <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
676                     <input type="hidden" name="findborrower" id="holdFor" value="" />
677                     <input type="hidden" name="club" id="holdForClub" value="" />
678                     <input type="hidden" name="multi_hold" value="1"/>
679                 </form>
680
681                 <form id="list_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
682                     <!-- Value will be set here by addToList() -->
683                     <input id="list_form_biblios" type="hidden" name="biblionumbers" value="" />
684                     <input type="hidden" name="multi_listadd" value="1"/>
685                 </form>
686
687             </main>
688         </div> <!-- /.col-sm-10.col-sm-push-2 -->
689
690         <div class="col-sm-2 col-sm-pull-10">
691             <aside>
692                 [% INCLUDE 'facets.inc' %]
693             </aside>
694         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
695      </div> <!-- /.row -->
696
697 [% MACRO jsinclude BLOCK %]
698     [% INCLUDE 'strings.inc' %]
699     [% Asset.js("js/browser.js") | $raw %]
700     [% Asset.js("lib/hc-sticky.js") | $raw %]
701     [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
702     [% Asset.js("js/coce.js") | $raw %]
703     <script>
704         var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
705         var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
706         var PREF_AmazonCoverImages = parseInt( "[% Koha.Preference('AmazonCoverImages') | html %]", 10);
707         var q_array = new Array();  // will hold search terms, if present
708         var PREF_LocalCoverImages = parseInt( "[% Koha.Preference('LocalCoverImages') | html %]", 10);
709         var PREF_IntranetCoce = parseInt( "[% Koha.Preference('IntranetCoce') | html %]", 10);
710         var PREF_CoceProviders = "[% Koha.Preference('CoceProviders') | html %]";
711         var CoceHost = "[% CoceHost | html %]";
712         var CoceProviders = "[% CoceProviders | html %]";
713         var PREF_BrowseResultSelection = parseInt( "[% Koha.Preference('BrowseResultSelection') | html %]", 10);
714         var PREF_NotHighlightedWords = "[% Koha.Preference('NotHighlightedWords') | html %]";
715         var biblionumber = "[% biblionumber | html %]";
716         var holdfor_cardnumber = "[% holdfor_cardnumber | html %]";
717         var holdforclub = "[% holdforclub | html %]";
718         var SEARCH_RESULTS = [% IF (SEARCH_RESULTS) %]1[% ELSE %]0[% END %];
719         var new_results_browser = [
720             [%- FOREACH result IN SEARCH_RESULTS -%]
721                 [%- result.biblionumber | html -%],
722             [%- END -%]
723         ];
724         var strQuery="&frameworkcode=";
725         [%- FOREACH z3950_search_param IN z3950_search_params -%]
726             strQuery += "&" + "[% z3950_search_param.name |uri %]" + "=" + "[% z3950_search_param.value |uri %]";
727         [%- END -%]
728
729         var search_result = {
730             query_desc: "[% To.json( query_desc ) | $raw %]",
731             query_cgi: "[% query_cgi | html %]",
732             limit_cgi: "[% limit_cgi | html %]",
733             sort_cgi: "[% sort_cgi | html %]",
734             sort_by: "[% sort_by | html %]",
735             gotoPage: "[% gotoPage | html %]",
736             gotoNumber: "[% gotoNumber | html %]",
737             searchid: "[% searchid | html %]",
738             total: "[% total | html %]",
739             first_result_number: "[% SEARCH_RESULTS.first.result_number | html %]",
740             first_biblionumber: "[% SEARCH_RESULTS.first.biblionumber | html %]",
741             last_biblionumber: "[% SEARCH_RESULTS.last.biblionumber | html %]",
742         }
743     </script>
744     [% Asset.js("js/pages/results.js") | $raw %]
745 [% END %]
746
747 [% INCLUDE 'intranet-bottom.inc' %]