From: Art Rhyno Date: Mon, 13 Aug 2012 21:22:17 +0000 (-0400) Subject: TPAC: Make "Show more details" in results optional X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e80c17a1e205e5ef02bffc9c15b8048f2a798650;p=contrib%2FConifer.git 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 --- 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 %]