From 7f2f51ef982792bbcdd61a5889fe2db8b3bd81da Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 1 Sep 2022 09:04:59 +0000 Subject: [PATCH] Bug 31503: Use patron->consent in opac-patron-consent Content-Type: text/plain; charset=utf-8 Includes a few small additional changes in template: [1] op == save (more generic) [2] agreed/disagreed replaced by 1/0 [3] toggling display of consent_info paragraph Test plan: Enable GDPR_Policy. Test adding/removing consent. Check what happens with alert, consent_info paragraph and save button. Signed-off-by: Marcel de Rooy --- .../en/modules/opac-patron-consent.tt | 52 +++++++++++-------- opac/opac-patron-consent.pl | 32 +++--------- 2 files changed, 38 insertions(+), 46 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt index 68c3e459d6..d00146e7ff 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt @@ -48,25 +48,25 @@
[% IF Koha.Preference('GDPR_Policy') %]

GDPR consents

- +
  • I have read the privacy policy and agree with your processing of my personal data as outlined therein.

    -

    Yes, I agree.
    - No, I do not agree. Please remove my account within a reasonable time.

    - [% IF gdpr_proc_consent %] -

    Your consent was registered on [% gdpr_proc_consent | html %].

    - [% ELSIF gdpr_proc_refusal %] -

    You indicated recently that you do not consent, and we will process your request soon.

    +

    Yes, I agree.
    + No, I do not agree. Please remove my account within a reasonable time.

    + [% IF gdpr_proc_consent.given_on %] + + [% ELSIF gdpr_proc_consent.refused_on %] + [% END %]
-
- -
[% END %] +
+ +
@@ -80,23 +80,31 @@