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