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