Bug 9303 [QA Followup] - Restore ability for patron to control setting
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-privacy.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your privacy management</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
6 </head>
7 [% INCLUDE 'bodytag.inc' bodyid='opac-privacy' %]
8 [% INCLUDE 'masthead.inc' %]
9
10 <div class="main">
11     <ul class="breadcrumb">
12         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
13         <li><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]</a> <span class="divider">&rsaquo;</span></li>
14         <li><a href="#">Your privacy management</a></li>
15     </ul>
16
17     <div class="container-fluid">
18         <div class="row-fluid">
19             <div class="span2">
20                 <div id="navigation">
21                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
22                 </div>
23             </div>
24             <div class="span10">
25                 <div id="userprivacy">
26                     <h3>Your privacy management</h3>
27
28                     [% IF ( deleted ) %]
29                         <div class="alert alert-success">Your reading history has been deleted.</div>
30                     [% ELSIF ( err_history_not_deleted ) %]
31                         <div class="alert">The deletion of your reading history failed, because there is a problem with the configuration of this feature. Please help to fix the system by informing your library of this error.</div>
32                     [% END %]
33
34                     [% IF ( privacy_updated ) %]
35                         <div class="alert alert-success">Your privacy rules have been updated.</div>
36                     [% END %]
37
38                     [% IF ( Ask_data ) %]
39                         <p>We take great care in protecting your privacy. On this screen, you can define how long we keep your reading history.</p>
40                         <p>Your options are: <p>
41                             <ul id="opac-privacy-options-list">
42                                 <li class="privacy0">Forever: keep my reading history without limit. This is the option for users who want to keep track of what they are reading.</li>
43                                 <li class="privacy1">Default: keep my reading history according to local laws. This is the default option : the library will keep your reading history for the duration permitted by local laws.</li>
44                                 <li class="privacy2">Never: Delete my reading history immediately. This will delete all record of the item that was checked-out upon check-in.</li>
45                             </ul>
46                             <p id="note1">Please note that information on any book still checked-out must be kept by the library no matter which privacy option you choose.</p>
47                             <p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p>
48                             <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
49                                 <input type="hidden" name="op" value="update_privacy" />
50                                     <fieldset>
51                                     <label for="privacy">Please choose your privacy rule:</label>
52                                     <div>
53                                         <select name="privacy" id="privacy">
54                                             [% IF ( privacy0 ) %]
55                                                 <option value="0" selected="selected" class="privacy0">Forever</option>
56                                             [% ELSE %]
57                                                 <option value="0" class="privacy0">Forever</option>
58                                             [% END %]
59                                             [% IF ( privacy1 ) %]
60                                                 <option value="1" selected="selected" class="privacy1">Default</option>
61                                             [% ELSE %]
62                                                 <option value="1" class="privacy1">Default</option>
63                                             [% END %]
64                                             [% IF ( privacy2 ) %]
65                                                 <option value="2" selected="selected" class="privacy2">Never</option>
66                                             [% ELSE %]
67                                                 <option value="2" class="privacy2">Never</option>
68                                             [% END %]
69                                         </select>
70                                     </div>
71
72                                     [% IF borrower.guarantorid && Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
73                                         <div>
74                                             <label for="privacy_guarantor_checkouts">Allow your guarantor to view your current checkouts?</label>
75                                             <select name="privacy_guarantor_checkouts">
76                                                 [% IF borrower.privacy_guarantor_checkouts %]
77                                                     <option value="0">No</option>
78                                                     <option value="1" selected>Yes</option>
79                                                 [% ELSE %]
80                                                     <option value="0" selected>No</option>
81                                                     <option value="1">Yes</option>
82                                                 [% END %]
83                                             </select>
84                                             <span class="hint">
85                                                 Your guarantor is <i>[% borrower.guarantor.firstname %] [% borrower.guarantor.surname %]</i>
86                                             </span>
87                                         </div>
88                                     [% END %]
89
90                                     <button type="Submit" class="btn">Save</button>
91                                 </fieldset>
92                             </form>
93                         <h2>Immediate deletion</h2>
94                         <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form">
95                             <input type="hidden" name="op" value="delete_record" />
96                             <p>Whatever your privacy rule you choose, you can delete all your reading history immediately by clicking here. <b>BE CAREFUL</b>. Once you've confirmed the deletion, no one can retrieve the list!</p>
97                             <input type="submit" value="Immediate deletion" class="btn btn-danger" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
98                         </form>
99                     [% END # / IF Ask_data %]
100                 </div> <!-- / .userprivacy -->
101             </div> <!-- / .span10 -->
102         </div> <!-- / .row-fluid -->
103     </div> <!-- / .container-fluid -->
104 </div> <!-- / .main -->
105
106 [% INCLUDE 'opac-bottom.inc' %]
107 [% BLOCK jsinclude %][% END %]