From a9f2e884b2b52df707531c96648b9c8b42df38a7 Mon Sep 17 00:00:00 2001 From: nina martinez Date: Fri, 13 Jun 2025 16:25:47 +0200 Subject: [PATCH] Bug 40283: discharge page This patch add role="status" or role="alert" to the message tag of the opac-discharge page. Test plan: 1- Enable the system preference: UseDischarge 2- Log in to a patron account with items check out, or make checkout 3- Go to "Ask for discharge", there should be a message: "You cannot be discharged because: ..." Inspect the html code, and notice that there is a role="alert" in the message tag. 4- Check in all the items or log in to a new patron account without items checked out, and click on "Ask for discharge". You should see the button "Ask for a discharge", click on it, and a message should appear. Inspect in the html if there is a role="status" in the message tag. Signed-off-by: Owen Leonard --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt index d709408ca62..13134983c09 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt @@ -37,7 +37,7 @@ [% END %] [% IF success %] -

Your discharge request has been sent. Your discharge will be available on this page within a few days.

+

Your discharge request has been sent. Your discharge will be available on this page within a few days.

[% ELSIF available %]

Get your discharge

[% ELSIF pending %] @@ -59,7 +59,7 @@ [% IF failure %]

There was an error during the discharge process

[% END %] -