From: Art Rhyno Date: Tue, 14 Aug 2012 13:53:27 +0000 (-0400) Subject: TPAC: More "show details" entry points (result table) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3411ab20f08960c88e05cf8a824168adcba679b7;p=contrib%2FConifer.git TPAC: More "show details" entry points (result table) This extends the 'show_more_details.default' setting to the table.tt2 template, which falls through the cracks otherwise. Signed-off-by: Art Rhyno Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index bc52adb1ed..f5f357c4fc 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -32,7 +32,7 @@ [% FOR rec IN ctx.records; attrs = {marc_xml => rec.marc_xml}; PROCESS get_marc_attrs args=attrs; - IF CGI.param('detail_record_view'); + IF CGI.param('detail_record_view') OR (show_more_details.default == 'true' OR show_more_details.default == 'hide'); attrs.title = attrs.title_extended; END; -%] @@ -76,7 +76,7 @@ [% 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') %] [% IF attrs.publisher %]