TPAC: Make "Show more details" in results optional
authorArt Rhyno <art632000@yahoo.ca>
Mon, 13 Aug 2012 21:22:17 +0000 (17:22 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 22 Jan 2015 18:22:49 +0000 (13:22 -0500)
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 <art632000@yahoo.ca>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/templates/opac/results.tt2

Open-ILS/src/templates/opac/results.tt2

index 4ab53eb..370f4ae 100644 (file)
                             [% l('Group Formats and Editions') %]
                         </label>
                     [% 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');
+                    -%]
                         <input type="hidden" name="detail_record_view" value="1" />
                     [% END %]
             </div>