From f64392680ccf1799596086063fda97d6f38a65db Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 17 Jan 2023 14:14:36 +0000 Subject: [PATCH] Bug 30979: Always show self-checkout when preference enabled This patch updates the display logic such that if the truested self-checkout option is enabled we always show the checkout button and prompt a login when no user is found. Signed-off-by: Silvia Meakins Signed-off-by: Kyle M Hall --- .../bootstrap/en/includes/masthead.inc | 2 +- .../bootstrap/en/includes/opac-bottom.inc | 4 ++-- .../opac-tmpl/bootstrap/js/modals/checkout.js | 24 +++++++++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 20b34bce95..685d72b499 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -81,7 +81,7 @@ [% END # / IF virtualshelves %] - [% IF ( Koha.Preference( 'OpacTrustedCheckout' ) && loggedinusername ) %] + [% IF Koha.Preference( 'OpacTrustedCheckout' ) %]