From 07d5ef7a0b85c33387277dc9b3f0142d8c656fe1 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Thu, 27 Oct 2011 18:20:00 -0400 Subject: [PATCH] Tpac: Make the staff saved searches a collapse/expand thing Collapsed by default. This makes the facet display more accessible in the case of long search histories. Signed-off-by: Lebbeous Fogle-Weekley --- .../templates/opac/parts/staff_saved_searches.tt2 | 28 ++++++++++++++++++---- Open-ILS/web/css/skin/default/opac/style.css | 8 +++++++ 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/staff_saved_searches.tt2 b/Open-ILS/src/templates/opac/parts/staff_saved_searches.tt2 index fb8ce216fe..a1704f4609 100644 --- a/Open-ILS/src/templates/opac/parts/staff_saved_searches.tt2 +++ b/Open-ILS/src/templates/opac/parts/staff_saved_searches.tt2 @@ -1,8 +1,26 @@ [% IF ctx.saved_searches.size %] -
[% l("Your recent searches:") %]
- [% FOR s IN ctx.saved_searches %] - + +
+
+ [% l("Recent searches") %] +
+
+ [% IF CGI.param('expand_recent') %] + [% l('Collapse') %] + [% ELSE %] + [% l('Expand') %] + [% END %] +
+
 
+
+
 
+
+ [% IF CGI.param('expand_recent') %] + [% FOR s IN ctx.saved_searches %] + + [% END %] [% END %] +
[% END %] diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css index e3a425d68c..8c3aa91be7 100644 --- a/Open-ILS/web/css/skin/default/opac/style.css +++ b/Open-ILS/web/css/skin/default/opac/style.css @@ -1166,3 +1166,11 @@ table.bookbag-specific { margin-bottom: 2ex; } .save-notes { padding-bottom: 1.5ex; } +.saved-searches-header { width: 100%; font-weight: bold; font-size: 120%; } +.saved-searches-header .button { float: right; width: 28px; } +.saved-searches-header .text { float: left; padding-right: 1em; margin: 0.5ex 0;} +.saved-searches-header {font-weight: bold; font-size: 120%; } +.saved-searches { border-bottom: 1px solid #666; } +#staff-saved-search { /* wraps .saved-searches-header anad .saved-searches on the record page */ + border-right: 1px solid #333; +} -- 2.11.0