Bugzilla – Attachment 175883 Details for
Bug 38769
Add plugins consent types to OPAC self registration process
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38769: Display plugin consents on self registration
Bug-38769-Display-plugin-consents-on-self-registra.patch (text/plain), 3.75 KB, created by
Martin Renvoize (ashimema)
on 2024-12-21 16:23:53 UTC
(
hide
)
Description:
Bug 38769: Display plugin consents on self registration
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-12-21 16:23:53 UTC
Size:
3.75 KB
patch
obsolete
>From dba5a73e9bfbd9687a47c4c4aa35e23f70bf9c54 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Sat, 21 Dec 2024 16:11:30 +0000 >Subject: [PATCH] Bug 38769: Display plugin consents on self registration > >--- > .../bootstrap/en/modules/opac-memberentry.tt | 27 +++++++++++++++++++ > opac/opac-memberentry.pl | 7 ++++- > 2 files changed, 33 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >index 6db0556cfdf..eeca4f9b690 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >@@ -1053,6 +1053,33 @@ > </div> <!-- /.row --> > [% END %] > >+ [% USE Dumper %] >+ [% IF consent_types.size %] >+ [% FOREACH consent_type IN consent_types.keys %] >+ [% IF consent_type != 'GDPR_PROCESSING' %] >+ [% SET consent_title = ( consent_types.$consent_type.title.$lang || consent_type.title.en ) %] >+ [% SET consent_desc = ( consent_types.$consent_type.description.$lang || consent_type.description.en ) %] >+ <div class="row"> >+ <div class="col"> >+ <fieldset class="rows memberentry_plugin_consent"> >+ <legend>[% consent_title | html %]</legend> >+ <ol> >+ <li> >+ <div class="label"></div> >+ <p>[% consent_desc | html %]</p> >+ <label class="checkbox-label" for="check_[% consent_type | html %]"> >+ <input type="checkbox" name="check_[% consent_type | html %]" id="check_[% consent_type | html %]" value="agreed"> >+ <span>Do you agree?</span> >+ </label> >+ </li> >+ </ol> >+ </fieldset> >+ </div> <!-- /.col --> >+ </div> <!-- /.row --> >+ [% END %] >+ [% END %] >+ [% END %] >+ > [% IF Koha.Preference('PrivacyPolicyConsent') && op != 'edit' %] > <div class="row"> > <div class="col"> >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 399d31afa4b..8d62db8e477 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -33,6 +33,7 @@ use C4::Members::Messaging qw( SetMessagingPreferencesFromDefaults ); > use Koha::AuthUtils; > use Koha::Patrons; > use Koha::Patron::Consent; >+use Koha::Patron::Consents; > use Koha::Patron::Modification; > use Koha::Patron::Modifications; > use C4::Scrubber; >@@ -392,7 +393,11 @@ elsif ( $op eq 'edit' ) { #Display logged in borrower's data > $template->param( patron_attribute_classes => GeneratePatronAttributesForm( $borrowernumber ) ); > } else { > # Render self-registration page >- $template->param( patron_attribute_classes => GeneratePatronAttributesForm() ); >+ my $consent_types = Koha::Patron::Consents->available_types; >+ $template->param( >+ consent_types => $consent_types, >+ patron_attribute_classes => GeneratePatronAttributesForm() >+ ); > } > > my $captcha = random_string("CCCCC"); >-- >2.47.1
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 38769
:
175882
| 175883