2 [% SET consentview = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% 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 %] [% patron.surname %]</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">
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 %]"/>
44 <p>I have read the <a target="_blank" href="[% Koha.Preference('PrivacyPolicyURL') %]">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 %].</p>
52 <fieldset class="action"><input id="saveconsent" type="submit" value="Save" class="btn" /></fieldset>
57 </div> <!-- / #userpasswd -->
58 </div> <!-- / .span10 -->
59 </div> <!-- / .row-fluid -->
60 </div> <!-- / .container-fluid -->
61 </div> <!-- / .main -->
63 [% INCLUDE 'opac-bottom.inc' %]
65 <script type="text/javascript">
67 $(document).ready(function() {
68 [% IF gdpr_proc_consent %]
70 $("input[type='radio'][value='agreed']").prop('checked',true);
72 [% ELSIF gdpr_proc_refusal %]
74 $("input[type='radio'][value='disagreed']").prop('checked',true);
77 $("#saveconsent").prop('disabled', true);
79 $("input[type='radio']").click(function() {
80 var radio = $(this).val();
81 if(radio=='agreed' && (consent==null || consent==0)) $("#saveconsent").prop('disabled', false);
82 if(radio=='disagreed' && (consent==null || consent==1)) $("#saveconsent").prop('disabled', false);
83 if(radio=='agreed') $(".alert").hide();
84 if(radio=='disagreed') $(".alert").show();