From: Art Rhyno Date: Thu, 9 Aug 2012 17:24:59 +0000 (-0400) Subject: Add option to change default or suppress 'Show More Details' button X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=28949128c24d75cbeade73a36740e1d38c121915;p=contrib%2FConifer.git Add option to change default or suppress 'Show More Details' button Conifer makes heavy use of Dan Scott's ResolverResolver service for e-content and typically wants to bring most details about entries on a results screen to the front. This adds a 'show_more_details.default' option in 'config.tt2' that can have the values 'true', 'false' and 'hide'. The 'true' and 'false' values set the default for the button to more and less respectively, and 'hide' suppresses the button from showing at all. Signed-off-by: Art Rhyno --- diff --git a/Open-ILS/src/templates_windsor/opac/parts/config.tt2 b/Open-ILS/src/templates_windsor/opac/parts/config.tt2 index ce1f78ed21..b0d0042fd9 100644 --- a/Open-ILS/src/templates_windsor/opac/parts/config.tt2 +++ b/Open-ILS/src/templates_windsor/opac/parts/config.tt2 @@ -71,6 +71,12 @@ allow_phone_notifications = 'false'; ############################################################################## # Misc. UI Settings ############################################################################## +# Option for full details as a default, esp. impt. for e-content +# that uses resolver plumbing. Valid values are 'true', 'false' and 'hide'. +# Setting this to 'true' shows full details by default but allows the link +# to appear for 'Show Fewer Details'. The 'hide' option shows full details +# and also suppresses the link from displaying at all. +show_more_details.default = 'hide'; ############################################################################## # Size of the jacket image to display on the record detail summary. diff --git a/Open-ILS/src/templates_windsor/opac/parts/searchbar.tt2 b/Open-ILS/src/templates_windsor/opac/parts/searchbar.tt2 index 4fc0fa347c..69afe1ee25 100644 --- a/Open-ILS/src/templates_windsor/opac/parts/searchbar.tt2 +++ b/Open-ILS/src/templates_windsor/opac/parts/searchbar.tt2 @@ -31,7 +31,7 @@ l(' in '); INCLUDE build_org_selector show_loc_groups=1 %] - [% IF show_more_details.default == 'true' AND !CGI.param('detail_record_view') %] + [% IF (show_more_details.default == 'true' OR show_more_details.default == 'hide') AND !CGI.param('detail_record_view') %] [% END %] +
+ [% INCLUDE "opac/parts/searchbar.tt2" took_care_of_form=1 %] +
+
+
+
+ + + [% IF ctx.mylist.size %] +
+ [%- IF ctx.user; %] + [% l('View My List') %] + [%- ELSE %] + [% l('View My List') %] + [%- END %] +
+ [% END %] +
+ + + [% IF show_more_details.default != 'hide' %] +
+ + + [% END %] + +
+ + +
+
+
+
+ +
+
+
+
+ [% path = "opac/parts/result/" _ + (ctx.records.size ? "table.tt2" : "lowhits.tt2"); + INCLUDE $path %] +
+
+
+
+
+[% END %]