LP#2009903: OPAC setting to show/hide carousels user/jeffdavis/lp2009903-show-or-hide-carousels
authorJeff Davis <jeff.davis@bc.libraries.coop>
Fri, 10 Mar 2023 01:33:18 +0000 (17:33 -0800)
committerJeff Davis <jeff.davis@bc.libraries.coop>
Fri, 10 Mar 2023 01:33:18 +0000 (17:33 -0800)
Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop>
Open-ILS/src/templates-bootstrap/opac/parts/config.tt2
Open-ILS/src/templates-bootstrap/opac/parts/misc_util.tt2

index 7409a4b..649e066 100755 (executable)
@@ -280,4 +280,9 @@ ctx.max_cart_size = 500;
 ##############################################################################
 ctx.show_reservations_tab = 'false';
 
+##############################################################################
+# Display carousels in OPAC
+##############################################################################
+ctx.show_carousels = 'true';
+
 %]
index d9d7fab..dc82c2d 100755 (executable)
 -%]
 
 [%- BLOCK carousels;
+    IF ctx.show_carousels == 'true';
     config = {
         animated => 0,
         animation_interval => 5,
 </div>
 [% END -%]
 [% END -%]
+[% END -%]
 
 [% BLOCK show_cover %]
     <td>