From e80c17a1e205e5ef02bffc9c15b8048f2a798650 Mon Sep 17 00:00:00 2001 From: Art Rhyno Date: Mon, 13 Aug 2012 17:22:17 -0400 Subject: [PATCH] TPAC: Make "Show more details" in results optional Academic sites typically handle a lot of electronic content and want to bring most details about entries, such as availability, status, and URLs, 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 Signed-off-by: Dan Scott Conflicts: Open-ILS/src/templates/opac/results.tt2 --- Open-ILS/src/templates/opac/results.tt2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/results.tt2 b/Open-ILS/src/templates/opac/results.tt2 index 4ab53eb598..370f4ae3c8 100644 --- a/Open-ILS/src/templates/opac/results.tt2 +++ b/Open-ILS/src/templates/opac/results.tt2 @@ -90,7 +90,10 @@ [% l('Group Formats and Editions') %] [% END %] - [% IF CGI.param('detail_record_view') %] + [%- IF CGI.param('detail_record_view') + OR (show_more_details.default == 'true' + OR show_more_details.default == 'hide'); + -%] [% END %] -- 2.11.0