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