From ac8ab5b4cf521423c392151379bab3bed62f10c3 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 aeac56d833..d916d73973 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' ) %]