TPAC: More "show details" entry points (result table)
authorArt Rhyno <art632000@yahoo.ca>
Tue, 14 Aug 2012 13:53:27 +0000 (09:53 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 14 Aug 2012 13:53:27 +0000 (09:53 -0400)
This extends the 'show_more_details.default' setting to the table.tt2
template, which falls through the cracks otherwise.

Signed-off-by: Art Rhyno <art632000@yahoo.ca>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/result/table.tt2

index bc52adb..f5f357c 100644 (file)
@@ -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 @@
                                                         </tr>
                                                         [% 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') %]
                                                         <!-- These fields are visible when viewing the results page in 'detailed' mode -->
 
                                                         [% IF attrs.publisher %]