2 [% SET consentview = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Your consents</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% BLOCK cssinclude %][% END %]
8 [% INCLUDE 'bodytag.inc' bodyid='opac-patron-consent' %]
9 [% INCLUDE 'masthead.inc' %]
12 <ul class="breadcrumb">
13 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
14 <li><a href="/cgi-bin/koha/opac-user.pl">[% patron.firstname | html %] [% patron.surname | html %]</a> <span class="divider">›</span></li>
15 <li><a href="#">Your consents</a></li>
18 <div class="container-fluid">
19 <div class="row-fluid">
22 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
26 <div id="patronconsents" class="maincontent">
28 [% IF Koha.Preference('GDPR_Policy') %]
30 <p>In order to keep you logged in, we need your consent to process personal data as specified in the EU General Data Protection Regulation of May 25, 2018.</p>
31 <p>Please save your consent below or log out. Thank you!</p>
35 <h3>Your consents</h3>
37 <form action="/cgi-bin/koha/opac-patron-consent.pl" method="post">
38 [% IF Koha.Preference('GDPR_Policy') %]
39 <h5>GDPR consents</h5>
40 <input type="hidden" name="op" value="gdpr_proc_save"/>
41 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
44 <p>I have read the <a target="_blank" href="[% Koha.Preference('PrivacyPolicyURL') | url %]">privacy policy</a> and agree with your processing of my personal data as outlined therein.</p>
45 <p><input type="radio" name="gdpr_processing" value="agreed"> Yes, I agree.<br>
46 <input type="radio" name="gdpr_processing" value="disagreed"> No, I do not agree. Please remove my account within a reasonable time.</p>
47 [% IF gdpr_proc_consent %]
48 <p>Your consent was registered on [% gdpr_proc_consent | html %].</p>
49 [% ELSIF gdpr_proc_refusal %]
50 <p>You indicated recently that you do not consent, and we will process your request soon.</p>
54 <fieldset class="action"><input id="saveconsent" type="submit" value="Save" class="btn" /></fieldset>
59 </div> <!-- / #userpasswd -->
60 </div> <!-- / .span10 -->
61 </div> <!-- / .row-fluid -->
62 </div> <!-- / .container-fluid -->
63 </div> <!-- / .main -->
65 [% INCLUDE 'opac-bottom.inc' %]
67 <script type="text/javascript">
69 $(document).ready(function() {
70 [% IF gdpr_proc_consent %]
72 $("input[type='radio'][value='agreed']").prop('checked',true);
74 [% ELSIF gdpr_proc_refusal %]
76 $("input[type='radio'][value='disagreed']").prop('checked',true);
79 $("#saveconsent").prop('disabled', true);
81 $("input[type='radio']").click(function() {
82 var radio = $(this).val();
83 if(radio=='agreed' && (consent==null || consent==0)) $("#saveconsent").prop('disabled', false);
84 if(radio=='disagreed' && (consent==null || consent==1)) $("#saveconsent").prop('disabled', false);
85 if(radio=='agreed') $(".alert").hide();
86 if(radio=='disagreed') $(".alert").show();