.facetFieldLineValue { overflow: hidden; text-overflow: ellipsis; }
[%- END -%]
-div#result_block {
- float: left;
-}
div#facet_sidebar {
float: left;
border-right: 1px solid [% css_colors.border_standard %];
font-size: [% css_fonts.size_bigger %];
}
+@media only screen and (max-width: 800px) {
+ .facet_sidebar_hidden, .result_block_hidden {
+ display: none;
+ }
+ .facet_sidebar_visible, .result_block_visible {
+ display: inline;
+ }
+ #refine_hits, #return_to_hits {
+ display: block;
+ padding-left: 15px;
+ }
+}
+
@media only screen and (max-width: 600px) {
input, select {
font-size: [% css_fonts.size_big %];
#facet_sidebar {
margin-top: 0.5em;
}
- .facet_sidebar_hidden, .result_block_hidden {
- display: none;
- }
- .facet_sidebar_visible, .result_block_visible {
- display: visible;
- }
- #refine_hits, #return_to_hits {
- display: block;
- padding-left: 15px;
- }
#adv_search_parent {
font-size: [% css_fonts.size_smaller %];
}
</div>
[% END %]
<div id="result_table_div">
+ <div class="facet_sidebar_hidden" id="facet_sidebar">
+ <div id="return_to_hits"><a onclick="getResulty();">[% l('Back to results') %]</a></div>
+ [% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
+ [% INCLUDE 'opac/parts/result/facets.tt2' %]
+ </div>
<div id="result_block" class="result_block_visible">
<div id="refine_hits"><a onclick="getFacety();">[% l('Refine these results') %]</a></div>
<table cellpadding="0" cellspacing="0"
</tbody>
</table>
</div>
- <div class="facet_sidebar_hidden" id="facet_sidebar">
- <div id="return_to_hits"><a onclick="getResulty();">[% l('Back to results') %]</a></div>
- [% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
- [% INCLUDE 'opac/parts/result/facets.tt2' %]
- </div>
</div>
<div class="result_footer_nav1">
[% ctx.results_count_header %]
facetSidebar.setAttribute('class', 'facet_sidebar_hidden');
window.location.hash = 'result_block';
}
-function moveFacets() {
- var clientWidth = document.documentElement.clientWidth;
- if (clientWidth >= 600) {
- if (resultBlock && facetSidebar) {
- resultBlock.parentNode.insertBefore(facetSidebar, resultBlock);
- }
- }
-}
-window.onresize = moveFacets;
-window.onload = moveFacets;
</script>