]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates-bootstrap/opac/parts/result/table.tt2
LP#1778972: (follow-up) use OILSWebTemplatePath to enable/disable the bootstrap OPAC
[Evergreen.git] / Open-ILS / src / templates-bootstrap / opac / parts / result / table.tt2
1 [%  PROCESS "opac/parts/misc_util.tt2";
2
3     USE ResolverResolver;
4
5     ctx.result_start = 1 + ctx.page_size * page;
6     ctx.result_stop = ctx.page_size * (page + 1);
7     IF ctx.result_stop > ctx.hit_count; ctx.result_stop = ctx.hit_count; END;
8
9     result_count = ctx.result_start;
10
11 %]
12 <div class="row">
13     <div class="col-12">
14     [% PROCESS "opac/parts/result/paginate.tt2" %] 
15     [% ctx.results_count_header = PROCESS results_count_header;
16         ctx.results_count_header %]
17     </div>
18 </div>
19 <div class="row">
20 <div class="col-xl-2 d-none d-xl-block">
21 [% INCLUDE 'opac/parts/result/facets.tt2' %]
22 </div>
23 <div id="result_table_div" class="border-bottom col-12 col-xl-10 px-3">
24     <div id="result_block" class="result_block_visible">
25         [% IF !ctx.is_meta %]
26         <div id="record_selector_block" class="mx-2 hidden">
27             <input type="checkbox" id="select_all_records"></input>
28             <label for="select_all_records">[% l('Select [_1] - [_2]', ctx.result_start, ctx.result_stop) %]</label>
29             <span id="selected_records_summary">
30             <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab="">
31                 <span id="selected_records_count">[% ctx.mylist.size %]
32                    
33                 </span>
34                         [% l('selected') %]
35             </a>
36             <span id="hit_selected_record_limit" class="hidden">Reached limit!</span>
37             <a id="clear_basket" href="#">[% l('Clear basket') %]</a>
38         </div>
39         [% END %]
40
41         <table id="result_table_table" title="[% l('Search Results') %]" class="table_no_border_space container-fluid">
42             <thead class="sr-only">
43                 <tr>
44                 <th>[% l('Search result number') %]</th>
45                 <th>[% l('Book jacket cover art') %]</th>
46                 <th>[% l('Item details and Actions') %]</th>
47                 </tr>
48             </thead>
49
50             <tbody id="result_table">
51                 [%  FOR rec IN ctx.records;
52                     attrs = {};
53                     attrs.marc_xml = rec.marc_xml;
54                     attrs.mr_constituent_ids = [];
55                         FOREACH mr_constituent_id IN rec.mr_constituent_ids;
56                             attrs.mr_constituent_ids.push(mr_constituent_id);
57                         END;
58                         PROCESS get_marc_attrs args=attrs;
59                         IF show_detail_view;
60                             attrs.title = attrs.title_extended;
61                         END;
62                         # note: rec.id refers to the record identifier, regardless
63                         # of the type of record. i.e. rec.id = mmr_id ? mmr_id : bre_id
64                         IF rec.mmr_id;
65                             IF rec.mr_constituent_count > 1;
66                                 # metarecords link to record list page
67                                 record_url_path = ctx.opac_root _ '/results'; 
68                                 add_parms = {metarecord => rec.mmr_id};
69                                 del_parms = ['page'];
70                             ELSE;
71                                 # for MR, bre_id refers to the master and in
72                                 # this case, only, record
73                                     record_url_path = ctx.opac_root _ '/record/' _ attrs.mr_constituent_ids.0;
74                                 add_parms = { badges => rec.badges.join(',') };
75                                 del_parms = ['quux'];
76                             END;
77                             hold_type = 'M';
78                         ELSE;
79                         record_url_path = ctx.opac_root _ '/record/' _ rec.bre_id; 
80                         add_parms = { badges => rec.badges.join(',') };
81                         del_parms = ['quux'];
82                         hold_type = 'T';
83                         END; -%]
84                         
85                 <tr class="result_table_row">
86                     <td>
87                         <!--Count&Checkboxes-->
88                         <div class="row">
89                             <div class="col-lg-1">
90                                 <div class="results_row_count" name="results_row_count"> [% IF !ctx.is_meta; %]
91                                     <label for="selected_record">[% result_count; result_count = result_count + 1 %]</label>
92                                     <input type="checkbox" id="select-[% rec.bre_id %]" name="selected_record"
93                                         [% IF is_selected %] checked="checked" [% END %]
94                                         title="[% l('Add to Basket') %]"
95                                         aria-label="[% l('Add to Basket') %]"
96                                         class="result_record_selector" value="[% rec.bre_id %]">
97                                     </input>
98                                     [% END %]
99                                     
100                                 </div>
101                             </div>   
102
103                        
104                             <!--Cover Image-->
105                             <div class='my-auto col-lg-2 text-center' id="result[% rec.bre_id %]">
106                                 <a href="[% record_url %]"><img alt="[% l('Book cover') %]"
107                                         name='item_jacket' class='my-2' 
108                                         src='[% ctx.media_prefix %]/opac/extras/ac/jacket/large/r/[% rec.bre_id | uri %]' style="max-height:150px;" /></a><br />
109                             </div>       
110                             <!--Info-->
111                             <div class='result_table_title_cell col-lg-9' name='result_table_title_cell'>
112                                 <div class="row">
113                                     <div class="result_metadata col-md-9 col-12">
114                                         [% IF rec.mmr_id %]
115                                         <abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:metabib-metarecord/[% rec.mmr_id %]'></abbr>
116                                         [% ELSE %]
117                                         <abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% rec.bre_id %]'></abbr>
118                                         [% END %]
119                                         <a class='record_title search_link' name='record_[% rec.id %]'
120                                             href="[% mkurl(record_url_path, add_parms, del_parms); %]"
121                                             [% html_text_attr('title', l('Display record details for "[_1]"', attrs.title)) %]>
122                                             [% IF attrs.hl.title; attrs.hl.title; ELSE; attrs.title | html; END %]
123                                         </a>
124                                         
125                                        
126                                         [%- UNLESS show_detail_view;
127                                             IF attrs.pubdate;
128                                                 pubdate_clean = attrs.pubdate | html;
129                                                 l(" ([_1])", pubdate_clean);
130                                             ELSIF attrs.copyright;
131                                                 copyright_clean = attrs.copyright | html;
132                                                 l(" ([_1])", copyright_clean);                                                                
133                                             END;
134                                         END -%]
135                                         
136                                         [% IF rec.mr_constituent_count.defined && rec.mr_constituent_count > 1 %]
137                                         <span title="[% l('This group contains [_1] records', rec.mr_constituent_count) %]">([% rec.mr_constituent_count %])</span>
138                                         [% END %]
139
140                                         [%- FOR entry IN attrs.graphic_titles;
141                                                 FOR alt IN entry.graphic;
142                                                 diratt = "";
143                                                 IF alt.dir;
144                                                     diratt = ' dir="' _ alt.dir _ '"';
145                                                 END; -%]
146                                         <div class="graphic880"[% diratt %]>
147                                             [% alt.value | html %]
148                                         </div>
149                                         [%- END; END; -%]
150  
151                                         <div>
152                                             <a  title="[% l("Perform an Author Search") %]"
153                                                 class="record_author"
154                                                 href="[%- 
155                                                 authorquery = attrs.author | replace('[#"^$\+\-,\.:;&|\[\]()]', ' ');
156                                                 mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, general_search_parms.merge(expert_search_parms, browse_search_parms, facet_search_parms))
157                                                 -%]" rel="nofollow" vocab="">[% IF attrs.hl.author; attrs.hl.author; ELSE; attrs.author | html; END %]</a>
158                                                 [%-
159                                                 FOR entry IN attrs.graphic_authors;
160                                                     FOR alt IN entry.graphic;
161                                                         diratt = "";
162                                                         IF alt.dir;
163                                                             diratt = ' dir="' _ alt.dir _ '"';
164                                                         END;
165                                                 -%]
166                                             <div class="graphic880"[% diratt %]>
167                                                 [% alt.value | html %]
168                                             </div>
169                                             [%- END; END; -%]
170                                         </div>
171                                                     
172                                         <div class='result_table_title_cell'>
173                                             [%- IF attrs.format_label; %]
174                                                 [% FOR format IN attrs.all_formats %]
175                                                     <img title="[% format.label | html %]" 
176                                                         alt="[% format.label | html %]" 
177                                                         src="[% format.icon %]" /> 
178                                                     [% format.label | html %]
179                                                 [% END %]
180                                             [%- END %]
181                                           
182                                         </div>
183                                                     
184                                         [% IF rec.popularity > 0.0 AND ctx.hide_badge_scores != 'true' %]
185                                             <div><span><strong>[% l('Popularity:') %]</strong> [% rec.popularity %] / 5.0</span></div>
186                                         [% END %]
187                                         <table 
188                                             role="presentation"
189                                             title="[% l('Record Holdings Summary') %]"
190                                             class="table_no_border_space table_no_border results_info_table container-fluid">
191                                        
192
193                                             [%- IF show_detail_view -%]
194                                             [% IF args.holdings.size > 0 %]
195                                             <tr name='bib_cn_list' class='result_table_title_cell'>
196                                                 <td valign='top'><strong>[% l('Call number:') %]</strong></td> 
197                                                 <td>[% args.holdings.0.label | html %]</td>
198                                             </tr>
199                                             [% END %]
200                                             <!-- These fields are visible when viewing the results page in 'detailed' mode -->
201                                             [% UNLESS rec.mmr_id %]
202                                             <!-- Do not show publication-specific information on a metarecord search results page -->
203                                             [% IF attrs.publisher %]
204                                             <tr name="results_pub_tr">
205                                                 <td valign="top"><strong>[% l('Publisher:') %]</strong></td>
206                                                 <td>[% attrs.pubplace | html; %] [% attrs.publisher | html; %] [% attrs.pubdate | html; %]
207                                                 [%- FOR entry IN attrs.graphic_pubinfos;
208                                                         FOR alt IN entry.graphic;
209                                                         diratt = "";
210                                                         IF alt.dir;
211                                                             diratt = ' dir="' _ alt.dir _ '"';
212                                                         END;
213                                                 -%]
214                                                 <div class="graphic880"[% diratt %]>[% alt.value | html %]</div>
215                                                 [%- END; END; -%]
216                                                 </td>
217                                             </tr>
218                                             [% ELSIF attrs.producer %]
219                                             <tr name="results_pub_tr">
220                                                 <td valign="top"><strong>[% l('Producer:') %]</strong></td>
221                                                 <td>[% attrs.prodplace | html; %] [% attrs.producer | html; %] [% attrs.proddate | html; %]</td>
222                                             </tr>
223                                             [% ELSIF attrs.distributor %]
224                                             <tr name="results_pub_tr">
225                                                 <td valign="top"><strong>[% l('Distributor:') %]</strong></td>
226                                                 <td>[% attrs.distplace | html; %] [% attrs.distributor | html; %] [% attrs.distdate | html; %]</td>
227                                             </tr>
228                                             [% ELSIF attrs.manufacturer %]
229                                             <tr name="results_pub_tr">
230                                                 <td valign="top"><strong>[% l('Manufacturer:') %]</strong></td>
231                                                 <td>[% attrs.manplace | html; %] [% attrs.manufacturer | html; %] [% attrs.mandate | html; %]</td>
232                                             </tr>
233                                             [% END %]
234                                             [% IF attrs.isbns.size > 0 %]
235                                             <tr name="results_isbn_tr">
236                                                 <td valign="top"><strong>[% l('ISBN:') %]</strong></td>
237                                                 <td>[% attrs.isbns.0 | html %]</td>
238                                             </tr>
239                                             [% END %]
240                                             [%- IF attrs.issns.size > 0 %]
241                                             <tr name="results_issn_tr">
242                                                 <td valign="top">
243                                                     <strong>[% l('ISSN:') %]</strong>
244                                                 </td>
245                                                 <td>[% attrs.issns.0 | html %]</td>
246                                             </tr>
247                                             [%- END %]
248                                             [%- IF openurl.enabled == 'true';
249                                                 FOREACH issn IN args.issns;
250                                                     NEXT IF issn == '';
251                                                     res_urls = ResolverResolver.resolve_issn(issn, openurl.baseurl);
252                                                     FOREACH res IN res_urls; %]
253                                             <tr name="results_issn_tr">
254                                                 <td valign="top"><strong><a href="[% res.target_url %]">[% res.public_name | html %]</a></strong>
255                                                 </td>
256                                                     <td>[% res.target_coverage | html %]
257                                                     [%- IF res.target_embargo != '';' - ';res.target_embargo | html; END;-%]
258                                                     </td>
259                                             </tr>
260                                                     [% END %]
261                                                 [% END %]
262                                             [% END %]
263
264                                             [% IF attrs.edition %]
265                                             <tr name="results_edition_tr">
266                                                 <td valign="top"><strong>[% l('Edition:') %]</strong></td>
267                                                 <td>[% attrs.edition | html %]
268                                                     [%- FOR entry IN attrs.graphic_editions;
269                                                         FOR alt IN entry.graphic;
270                                                             diratt = "";
271                                                             IF alt.dir; diratt = ' dir="' _ alt.dir _ '"'; END;
272                                                     -%]
273                                                     <div class="graphic880"[% diratt %]>
274                                                         [% alt.value | html %]
275                                                     </div>
276                                                     [%- END; END; -%]
277                                                 </td>
278                                             </tr>
279                                             [% END %]
280                                             [% IF attrs.phys_desc %]
281                                                 <tr name="results_phys_desc_tr">
282                                                     <td nowrap="nowrap" valign="top"><strong>[% l('Phys. Desc.:') %]</strong></td>
283                                                     <td>[% args.phys_desc | html %]</td>
284                                                 </tr>
285                                             [% END %]
286                                             [% FOR uri IN args.uris %]
287                                                 <tr name='bib_uri_list' class='result_table_title_cell row'>
288                                                     <td valign='top'><strong>[% l('Electronic resource') %]</strong></td>
289                                                     <td><a href="[% uri.href %]" class="uri_link" target="_blank">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
290                                                 </tr>
291                                             [% END %]
292                                             [% END %]
293                                             [%- IF args.holdings.size > 0;
294                                                 FOREACH copy IN args.holdings;
295                                                     IF copy.part_label != '';
296                                                         has_parts = 'true';
297                                                         LAST;
298                                                     END;
299                                                 END;
300                                             %]
301                                             <tr name='bib_cn_list' class='result_table_title_cell container-fluid'>
302                                                 <td colspan='2'>
303                                                     <table role="presentation" title="[% l('Record Holdings Details') %]" class='container-fluid table table-hover mt-4 miniTable holdingsTable'>
304                                                         <thead>
305                                                             <tr>
306                                                                 <th>[% l('Library') %]</th>
307                                                                 <th>[% l('Shelving location') %]</th>
308                                                                 <th>[% l('Call number') %]</th>
309                                                                 [%- IF has_parts == 'true'; %]
310                                                                 <th>[% l('Part') %]</th>
311                                                                 [%- END %]
312                                                                 <th>[% l('Status') %]</th>
313                                                             </tr>
314                                                         </thead>
315                                                     <tbody>
316                                                     [% FOR copy IN args.holdings %]
317                                                         <tr>
318                                                             <td><span class="sr-only">Library </span>[%- copy_info = copy; INCLUDE "opac/parts/library_name_link.tt2"; %]</td>
319                                                             <td><span class="sr-only">Shelving Location </span>[% copy.location | html %]</td>
320                                                             <td><span class="sr-only">Call Number </span>[% copy.label | html %]</td>
321                                                             [%- IF has_parts == 'true'; %]
322                                                             <td><span class="sr-only">Part </span>[% copy.part_label %]</td>
323                                                             [%- END %]
324                                                             <td><span class="sr-only">Status </span>[% copy.status | html %]</td>
325                                                         </tr>
326                                                     [% END %]
327                                                     </tbody>
328                                                     </table>
329                                                 </td>
330                                             </tr>
331                                             [%- has_parts = 'false'; END; %]
332                                         [% END %] <!-- END detail_record_view -->
333                                     </table>
334                                     [% 
335                                         IF ebook_api.enabled == 'true';
336                                             INCLUDE "opac/parts/ebook_api/avail.tt2";
337                                         END;
338                                     %]
339                                     [% UNLESS rec.mmr_id;
340                                             PROCESS "opac/parts/result/copy_counts.tt2";
341                                     END; %]
342                                     [% IF rec.user_circulated %]
343                                     <div class="result_item_circulated">
344                                         <img src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]" alt="[% l('Checked Out Before') %]"/>
345                                         <span>[% l('I have checked this item out before') %]</span>
346                                     </div>
347                                     [% END %]
348                                     [% IF ctx.bookbag;
349                                         rec_id = rec.id;
350                                         FOR note IN ctx.bookbag_items_by_bre_id.$rec_id.notes %]
351                                             <div class="result-bookbag-item-note">[% note.note | html %]</div>
352                                         [% END %]
353                                     [% END %]
354                                 </div>
355
356
357
358                                 <div class="result_table_utils_cont col-md-3 d-flex">
359                                     <div class="result_table_utils row mx-auto d-inline-block d-md-inline-flex">
360                                         <div class="btn-group-vertical">
361                                         [%- search_ou = ctx.search_ou;
362                                             num_holdable_copies = attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size || 0;
363                                             IF ctx.place_unfillable || (num_holdable_copies > 0 && (ctx.holds_block.enabled != 'true' || attrs.org_copy_counts.$search_ou.available == 0))
364                                         %]
365                                         [% del_parms = ['tag','subfield','term','_special','sort','page'];
366                                         add_parms = {hold_target => rec.id, hold_type => hold_type, hold_source_page => mkurl()};
367
368                                         IF is_advanced;
369                                             # Do not pass "advanced params" to hold code
370                                             # Instead, pass the scrubed query in one-line form
371                                             del_parms = del_parms.merge(['query', 'bool', 'qtype', 'contains', '_adv']);
372                                             add_parms.import({query => ctx.naive_query_scrub(ctx.user_query)});
373                                         END; %]
374                                         
375
376
377                                         <!--Place Hold Button -->
378                                         <button type="button" class="btn btn-light">
379                                                 <a href="[% mkurl(ctx.opac_root _ '/place_hold', add_parms, del_parms) %]" 
380                                                     [% html_text_attr('title', l('Place Hold on [_1]', attrs.title)) %]
381                                                     class="no-dec" rel="nofollow" vocab="">
382                                                     <img src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]" alt=""/>
383                                                     <span class="result_place_hold">[% l('Place Hold') %]</span>
384                                                 </a>
385                                         </button>
386                                         [%- END -%]
387
388                                         <!-- eBook Buttons -->
389                                         [%- IF ebook_api.enabled == 'true' && args.ebook %]
390                                         <button type="button" class="btn btn-light">
391                                             <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_checkout',
392                                                 {title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'checkout'},
393                                                 ['query','tag','subfield','term','_special','sort','page']) %]"
394                                                 [% html_text_attr('title', l('Check Out [_1]', attrs.title)) %]
395                                                     class="no-dec" rel="nofollow" vocab=""><img
396                                                 src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
397                                                 alt=""/><span class="result_place_hold">[% l('Check Out E-Item') %]</span></a>
398                                         </button>
399                                         <button type="button" class="btn btn-light">
400                                             <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_place_hold',
401                                                 {title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'place_hold'},
402                                                 ['query','tag','subfield','term','_special','sort','page']) %]"
403                                                 [% html_text_attr('title', l('Place Hold on [_1]', attrs.title)) %]
404                                                     class="no-dec btn btn-primary btn-sm" rel="nofollow" vocab=""><img
405                                                 src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
406                                                 alt=""/><span class="result_place_hold">[% l('Place Hold on E-Item') %]</span></a>
407                                         </button>
408                                         [%- END -%]
409
410                                         <!--Basket and My Lists Buttons -->
411                                         [% IF !ctx.is_meta %]
412                                                 [% IF !ctx.is_staff %]
413                                                 [%
414                                                     addhref = mkurl(ctx.opac_root _ '/mylist/add',
415                                                             {record => rec.id, anchor => 'record_' _ rec.id}, 1);
416                                                     delhref = mkurl(ctx.opac_root _ '/mylist/delete',
417                                                             {record => rec.id, anchor => 'record_' _ rec.id}, 1);
418                                                 %]
419                                                 <button type="button" class="btn btn-light">
420                                                 <a href="[% addhref %]" id="mylist_add_[% rec.id %]"
421                                                     data-recid="[% rec.id %]" data-action="add"
422                                                     class="mylist_action [% IF ctx.mylist.grep('^' _ rec.id _ '$').size %]hidden[% END %]"
423                                                     title="[% l("Add [_1] to basket", attrs.title) %]" rel="nofollow" vocab="">
424                                                     <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
425                                                     [% l("Add to basket") %]
426                                                 </a>
427                                                 
428                                                 <a href="[% delhref %]" id="mylist_delete_[% rec.id %]"
429                                                     data-recid="[% rec.id %]" data-action="delete"
430                                                     class="mylist_action [% IF !ctx.mylist.grep('^' _ rec.id _ '$').size %]hidden[% END %]"
431                                                     title="[% l("Remove [_1] from basket", attrs.title) %]" rel="nofollow" vocab="">
432                                                     <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
433                                                     [% l("Remove from basket") %]
434                                                 </a>
435                                                 </button>
436                                                 [%  IF ctx.user;
437                                                     INCLUDE "opac/parts/bookbag_actions.tt2";
438                                                     END;
439                                                 %]
440                                                 [% END %]
441                                         [% END %]
442
443                                         <!--Added Content - Content Cafe -->
444                                         [% IF ENV.OILS_CONTENT_CAFE_USER %]
445                                         [% ident = attrs.isbn_clean || attrs.upc %]
446                                             <button type="button" class="btn btn-light">
447                                                 <a target='_blank' 
448                                                     [% html_text_attr('title', l('Reviews and More for [_1]', attrs.title)) %]
449                                                     href="[% ctx.ext_proto %]://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=[%- 
450                                                         ENV.OILS_CONTENT_CAFE_USER %]&amp;Password=[%-
451                                                         ENV.OILS_CONTENT_CAFE_PASS %]&amp;ItemKey=[% ident | uri %]&amp;Options=Y" rel="nofollow" vocab="">
452                                                     <img src='[% ctx.media_prefix %]/images/starz.png[% ctx.cache_key %]' alt="[% l('Ratings Icon') %]"/>
453                                                     <span class="results_reviews">[% l('Reviews &amp; More') %]</span>
454                                                 </a>
455                                             </button>
456                                         [% END %]
457                                         </div>
458                                         </div>
459                                     </div>
460                                 </div>
461                             </div>
462                         </td>
463                     </tr>
464                 </div>
465                 [%- IF ENV.OILS_CHILIFRESH_ACCOUNT %]
466                 <tr>
467                     <td/>
468                     <td align='center'> <!-- Chilifresh reviews link --> 
469                         <span class="chili_review" id="isbn_[% attrs.isbn_clean | html %]"> </span>
470                     </td>
471                 </tr>
472                 <tr>
473                     <td/>
474                     <td colspan='5'> <!-- Chilifresh reviews panel -->
475                         <div id="chili_review_[% attrs.isbn_clean | html %]" style="display: none;" align="center"></div>
476                     </td>
477                 </tr>
478                 [%- END %]
479                     [% END %]
480             </tbody>
481         </table>
482     </div>
483 </div>
484
485
486
487 <div class="facet_sidebar_hidden" id="facet_sidebar">
488     [%- IF ctx.is_staff %]
489     <h3 class="sr-only">[% l('Saved Searches') %]</h3>
490         [% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
491     [%-  END %]
492     <h3 class="sr-only">[% l('Search Results facets') %]</h3>
493     <h3 class="sr-only">[% l('Search Results List') %]</h3>
494 </div>
495 </div>
496
497 </div>
498 <div class="col-12">
499 <div class="result_footer_nav1">
500     [% ctx.results_count_header %]
501 </div>
502 </div>
503 <div class="d-xl-none d-block">
504 [% INCLUDE 'opac/parts/result/facets.tt2' %]
505 </div>
506 <script>
507 resultBlock = document.getElementById('result_block');
508 resultButton = document.getElementById('return_to_hits');
509 facetSidebar = document.getElementById('facet_sidebar');
510 facetButton =  document.getElementById('refine_hits');
511 function getFacety() {
512     resultBlock.setAttribute('class', 'result_block_hidden');
513     resultButton.setAttribute('class', 'results_header_btns result_block_visible');
514     facetSidebar.setAttribute('class', 'facet_sidebar_visible');
515     facetButton.setAttribute('class', 'result_block_hidden');
516     window.location.hash = 'return_to_hits';
517 }
518 function getResulty() {
519     resultBlock.setAttribute('class', 'result_block_visible');
520     resultButton.setAttribute('class', 'result_block_hidden');
521     facetSidebar.setAttribute('class', 'facet_sidebar_hidden');
522     facetButton.setAttribute('class', 'results_header_btns result_block_visible');
523     window.location.hash = 'refine_hits';
524 }
525 </script>