Bug 22646: Fix use of PrivacyPolicyURL
authorMagnus Enger <magnus@libriotech.no>
Fri, 5 Apr 2019 08:03:58 +0000 (10:03 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 10 Apr 2019 20:10:55 +0000 (20:10 +0000)
To test:

PatronSelfRegistration = Allow
PatronSelfRegistrationDefaultCategory = PT (or some other real category)
GDPR_Policy = Enforced
PrivacyPolicyURL = Some URL

- Go to <opac>/cgi-bin/koha/opac-memberentry.pl and verify that the text "privacy
  policy" displays a link to the current page, not the URL in PrivacyPolicyURL
- Go to Administration > System preferences > Patrons > Privacy
- Verify that the descriptions of GDPR_Policy and PrivacyPolicyURL does not
  mention that PrivacyPolicyURL needs to be set if GDPR_Policy is set.
- Apply the patch
- Verify that opac-memberentry.pl now links to the URL in PrivacyPolicyURL
- Verify that the syspref descriptions mention the relationship between them

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Bin Wen <bin.wen@inlibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt

index a014372..f8c63d5 100644 (file)
@@ -233,6 +233,7 @@ Patrons:
          - Use the following URL
          - pref: PrivacyPolicyURL
          - to refer to your local privacy policy in messages about privacy and data protection. (If you enforce GDPR policy, make sure that this page is not blocked.)
+         - "<br><strong>NOTE:</strong> The URL will only be displayed if GDPR_Policy is set."
      -
          - Set GDPR policy to
          - pref: GDPR_Policy
@@ -241,3 +242,4 @@ Patrons:
                Enforced: 'Enforced'
                Permissive: 'Permissive'
          - "GDPR is the EU General Data Protection Regulation. When you enforce, patrons need to give consent before using the OPAC. If you set to permissive, Koha will warn but not enforce."
+         - "<br><strong>NOTE:</strong> If you enable this you will also have to set the URL of your public privacy policy with the PrivacyPolicyURL setting."
index daf56b8..862091a 100644 (file)
                         <legend>GDPR consent</legend>
                         <ol>
                         <li>
-                            <label></label><span><input type="checkbox" name="borrower_gdpr_proc_consent" value="agreed"> I agree with your processing of my personal data as outlined in the <a target="_blank" href="[% PrivacyPolicyURL | url %]">privacy policy</a>. <span class="required">Required</span></span>
+                            <label></label><span><input type="checkbox" name="borrower_gdpr_proc_consent" value="agreed"> I agree with your processing of my personal data as outlined in the <a target="_blank" href="[% Koha.Preference('PrivacyPolicyURL') | url %]">privacy policy</a>. <span class="required">Required</span></span>
                         </li>
                         </ol>
                     </fieldset>