From 7d4453e3b558c0ea0f0f8af64e04a8d13283eb3c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 30 Oct 2023 12:47:31 +0000 Subject: [PATCH] Bug 35188: [23.05.x] Show checkout override for all noissues statuses This patch moves the override button up one level into the list of noissues in order to allow overriding any blocking status To test: 1 - Log in to Koha with a user with force_checkout permission (superlibrarian ok too) 2 - Mark a patron as expired, lost card, gone no address 3 - Go to 'Check out' page for the patorn 4 - Note you cannot override the restrictions 5 - Add a manual restriction/debarment 6 - Go to checkout again, now you can override 7 - Remove the debarment 8 - Add manually ot URL of checkout page '&foreallow=1' 9 - Note you can now override the other restrictions 10 - Apply patch 11 - Reload patron 12 - Note you now see the override button on the check out screen 13 - Add a debarment 14 - Confirm the button is still there 15 - Confirm overriding allows the checkout (with or without a debarment) Signed-off-by: Matt Blenkinsop Signed-off-by: Victor Grousset/tuxayo --- .../prog/en/includes/patron_messages.inc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc index 61d4053279c..2a4163330a3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc @@ -74,12 +74,6 @@
[% END %] View restrictions - - [% IF (noissues && CAN_user_circulate_force_checkout) %] - - Override restriction temporarily - - [% END %] [% END # /IF userdebarred %] @@ -126,7 +120,13 @@ Credits: Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %] [% END %] - + [% IF (noissues && CAN_user_circulate_force_checkout) %] +
  • + + Override restriction temporarily + +
  • + [% END %] [% END # /F ( has_modifications || warndeparture... %] -- 2.30.2