Bugzilla – Attachment 183674 Details for
Bug 40283
Accessibility of the status message in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40283: Privacy page.
Bug-40283-Privacy-page.patch (text/plain), 5.27 KB, created by
Nina Martinez
on 2025-07-01 15:39:34 UTC
(
hide
)
Description:
Bug 40283: Privacy page.
Filename:
MIME Type:
Creator:
Nina Martinez
Created:
2025-07-01 15:39:34 UTC
Size:
5.27 KB
patch
obsolete
>From 361ab066fb5f75a78ee8b105bcb209fe1521f0e2 Mon Sep 17 00:00:00 2001 >From: nina martinez <nina.martinez@biblibre.com> >Date: Wed, 11 Jun 2025 11:43:31 +0200 >Subject: [PATCH] Bug 40283: Privacy page. > >Test plan: > >1- Enable the system preferences: OPACPrivacy, OPACHoldsHistory. >2- Change your privacy rule to "forever" or "default" and save. A message should appear: "Your privacy rules have been updated." Inspect the HTML code and notice that there is a role="status" in the message tag. >3- Change your privacy rule to "Never." A message should appear: "This option will delete all previous checkout history immediately." Inspect the HTML code and notice that there is a role="alert" in the message tag. >4- Check if you have a checkout in your checkout history. If you don't, make a checkout. >5- Click on "Delete checkout history." If you have a checkout history, the message is: "Your checkout history has been deleted." Inspect the HTML code and notice that there is a role="status" in the message tag. >6- Click again on the "Delete checkout history" button; the error message should appear:"No hold history to delete." Inspect the HTML code and notice that there is a role="alert" in the message tag. >7- Check if you have a hold in your holds history. If you don't, place a hold on a record. >8- Repeat step 5 with the "Delete hold history" button. A message should appear: "Your holds history has been deleted." Inspect the HTML code and notice that there is a role="status" in the message tag. >9- Repeat step 6 with the "Delete hold history" button. >--- > .../opac-tmpl/bootstrap/en/modules/opac-privacy.tt | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt >index fa3a98378d..405c2608ce 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt >@@ -34,29 +34,29 @@ > [% IF delete_all_requested || delete_checkouts_requested || delete_holds_requested %] > [% IF delete_all_requested || delete_checkouts_requested %] > [% IF deleted_checkouts %] >- <div class="alert alert-success">Your checkout history has been deleted.</div> >+ <div class="alert alert-success" role="status">Your checkout history has been deleted.</div> > [% ELSIF error_deleting_checkouts_history %] > <div class="alert alert-warning" > >The deletion of your checkout history failed, because there is a problem with the configuration of this feature. Please help to fix the system by informing your library of this error</div > > > [% ELSIF no_checkouts_to_delete %] >- <div class="alert alert-warning">No checkout history to delete</div> >+ <div class="alert alert-warning" role="alert">No checkout history to delete</div> > [% END %] > [% END %] > > [% IF delete_all_requested || delete_holds_requested %] > [% IF deleted_holds %] >- <div class="alert alert-success">Your hold history has been deleted.</div> >+ <div class="alert alert-success" role="status">Your hold history has been deleted.</div> > [% ELSIF error_deleting_holds_history %] > <div class="alert alert-warning">The deletion of your hold history failed. Please help to fix the system by informing your library of this error</div> > [% ELSIF no_holds_to_delete %] >- <div class="alert alert-warning">No hold history to delete</div> >+ <div class="alert alert-warning" role="alert">No hold history to delete</div> > [% END %] > [% END %] > [% END %] > > [% IF ( privacy_updated ) %] >- <div class="alert alert-success">Your privacy rules have been updated.</div> >+ <div class="alert alert-success" role="status">Your privacy rules have been updated.</div> > [% END %] > > [% IF ( Ask_data ) %] >@@ -98,7 +98,7 @@ > <!-- /.col-6 --> > </div> > <!-- /.form-group.row --> >- <div id="never-warning" class="alert alert-danger">This option will delete all previous checkout history immediately.</div> >+ <div id="never-warning" class="alert alert-danger" role="alert">This option will delete all previous checkout history immediately.</div> > > [% IF has_guarantor_flag && (Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %] > [% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %] >-- >2.43.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40283
:
183665
|
183666
|
183667
|
183668
|
183669
|
183670
|
183671
|
183672
|
183673
|
183674
|
183683
|
183684
|
183685
|
183686
|
183689
|
183690
|
183691
|
183692
|
183693
|
183694
|
183695
|
183696
|
183697
|
183698
|
183699
|
183700
|
183701