2 [% USE AdditionalContents %]
3 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
4 [% SET consentview = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Your consents › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %][% END %]
10 [% INCLUDE 'bodytag.inc' bodyid='opac-patron-consent' %]
11 [% INCLUDE 'masthead.inc' %]
14 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
15 <ol class="breadcrumb">
16 <li class="breadcrumb-item">
17 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
19 <li class="breadcrumb-item">
20 <a href="/cgi-bin/koha/opac-user.pl">[% patron.firstname | html %] [% patron.surname | html %]</a>
22 <li class="breadcrumb-item active">
23 <a href="#" aria-current="page">Your consents</a>
26 </nav> <!-- /#breadcrumbs -->
28 <div class="container-fluid">
30 <div class="col-lg-2">
32 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
35 <div class="col-lg-10 order-first order-md-first order-lg-2">
36 <div id="patronconsents" class="maincontent">
38 [% IF Koha.Preference('GDPR_Policy') %]
39 <div class="alert alert-warning">
40 <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>
41 <p>Please save your consent below or log out. Thank you!</p>
45 <h1>Your consents</h1>
47 <form action="/cgi-bin/koha/opac-patron-consent.pl" method="post">
48 [% IF Koha.Preference('GDPR_Policy') %]
49 <legend><h2 id="GDPR_consents">GDPR consents</h2></legend>
50 <input type="hidden" name="op" value="gdpr_proc_save"/>
51 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
54 <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>
55 <p><input type="radio" name="gdpr_processing" value="agreed"> Yes, I agree.<br>
56 <input type="radio" name="gdpr_processing" value="disagreed"> No, I do not agree. Please remove my account within a reasonable time.</p>
57 [% IF gdpr_proc_consent %]
58 <p>Your consent was registered on [% gdpr_proc_consent | html %].</p>
59 [% ELSIF gdpr_proc_refusal %]
60 <p>You indicated recently that you do not consent, and we will process your request soon.</p>
64 <fieldset class="action">
65 <input id="saveconsent" type="submit" value="Save" class="btn btn-primary" />
71 </div> <!-- / #userpasswd -->
72 </div> <!-- / .col-lg-10 -->
73 </div> <!-- / .row -->
74 </div> <!-- / .container-fluid -->
75 </div> <!-- / .main -->
77 [% INCLUDE 'opac-bottom.inc' %]
81 $(document).ready(function() {
82 [% IF gdpr_proc_consent %]
84 $("input[type='radio'][value='agreed']").prop('checked',true);
86 [% ELSIF gdpr_proc_refusal %]
88 $("input[type='radio'][value='disagreed']").prop('checked',true);
91 $("#saveconsent").prop('disabled', true);
93 $("input[type='radio']").click(function() {
94 var radio = $(this).val();
95 if(radio=='agreed' && (consent==null || consent==0)) $("#saveconsent").prop('disabled', false);
96 if(radio=='disagreed' && (consent==null || consent==1)) $("#saveconsent").prop('disabled', false);
97 if(radio=='agreed') $(".alert").hide();
98 if(radio=='disagreed') $(".alert").show();