From: Jeff Davis Date: Fri, 10 Mar 2023 01:33:18 +0000 (-0800) Subject: LP#2009903: OPAC setting to show/hide carousels X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fjeffdavis%2Flp2009903-show-or-hide-carousels;p=working%2FEvergreen.git LP#2009903: OPAC setting to show/hide carousels Signed-off-by: Jeff Davis --- diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/config.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/config.tt2 index 7409a4b4ec..649e066e04 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/config.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/config.tt2 @@ -280,4 +280,9 @@ ctx.max_cart_size = 500; ############################################################################## ctx.show_reservations_tab = 'false'; +############################################################################## +# Display carousels in OPAC +############################################################################## +ctx.show_carousels = 'true'; + %] diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/misc_util.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/misc_util.tt2 index d9d7fab5d1..dc82c2d830 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/misc_util.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/misc_util.tt2 @@ -808,6 +808,7 @@ -%] [%- BLOCK carousels; + IF ctx.show_carousels == 'true'; config = { animated => 0, animation_interval => 5, @@ -892,6 +893,7 @@ [% END -%] [% END -%] +[% END -%] [% BLOCK show_cover %]