From 851c9a909c010d530926f8222dd52b5843858abc Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 19 Sep 2013 20:28:32 -0400 Subject: [PATCH] Restore facet-first loading, add breakpoint for results Facet first loading should be faster on slow servers, so do that rather than loading them after the results and forcing a page render when we dump them into place on wide screens. Also add an 800px breakpoint to prevent results from getting pushed underneath the facets; at 800px, we go into "hide facets" mode instead. This gets picked up by the 600px breakpoint, so it's all good. Signed-off-by: Dan Scott Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Dan Wells --- Open-ILS/src/templates/opac/css/style.css.tt2 | 26 +++++++++++----------- Open-ILS/src/templates/opac/parts/result/table.tt2 | 20 +++++------------ 2 files changed, 18 insertions(+), 28 deletions(-) diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index 491802aa98..95d5568d29 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -1007,9 +1007,6 @@ div.adv_search_available { .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 %]; @@ -1679,6 +1676,19 @@ a.preflib_change { 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 %]; @@ -1914,16 +1924,6 @@ a.preflib_change { #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 %]; } diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index f2bb4b8e2e..4c7f7ede38 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -20,6 +20,11 @@ [% END %]
+
+ + [% INCLUDE "opac/parts/staff_saved_searches.tt2" %] + [% INCLUDE 'opac/parts/result/facets.tt2' %] +
-
- - [% INCLUDE "opac/parts/staff_saved_searches.tt2" %] - [% INCLUDE 'opac/parts/result/facets.tt2' %] -