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