From 361ab066fb5f75a78ee8b105bcb209fe1521f0e2 Mon Sep 17 00:00:00 2001 From: nina martinez 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 %] -
Your checkout history has been deleted.
+
Your checkout history has been deleted.
[% ELSIF error_deleting_checkouts_history %]
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
[% ELSIF no_checkouts_to_delete %] -
No checkout history to delete
+ [% END %] [% END %] [% IF delete_all_requested || delete_holds_requested %] [% IF deleted_holds %] -
Your hold history has been deleted.
+
Your hold history has been deleted.
[% ELSIF error_deleting_holds_history %]
The deletion of your hold history failed. Please help to fix the system by informing your library of this error
[% ELSIF no_holds_to_delete %] -
No hold history to delete
+ [% END %] [% END %] [% END %] [% IF ( privacy_updated ) %] -
Your privacy rules have been updated.
+
Your privacy rules have been updated.
[% END %] [% IF ( Ask_data ) %] @@ -98,7 +98,7 @@ -
This option will delete all previous checkout history immediately.
+ [% IF has_guarantor_flag && (Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %] [% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %] -- 2.43.0