d77bea2dfbed823f6ca182870659690a805102cc
[srvgit] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-privacy.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Your privacy management &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</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     <nav aria-label="breadcrumb">
12         <ul class="breadcrumb">
13             <li class="breadcrumb-item">
14                 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
15             </li>
16             <li class="breadcrumb-item">
17                 <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
18             </li>
19             <li class="breadcrumb-item" aria-current="page">
20                 <a href="#">Your privacy management</a>
21             </li>
22         </ul>
23     </nav>
24
25     <div class="container-fluid">
26         <div class="row">
27             <div class="col col-lg-2 order-2 order-lg-1">
28                 <div id="navigation">
29                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
30                 </div>
31             </div>
32             <div class="col-md-12 col-lg-10 order-1">
33
34                 <div id="userprivacy" class="maincontent">
35                     <h1>Your privacy management</h1>
36
37                     [% IF deleted %]
38                         <div class="alert alert-success">Your checkout history has been deleted.</div>
39                     [% ELSIF history_not_deleted %]
40                         <div class="alert alert-warning">The deletion of your checkout 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>
41                     [% ELSIF nothing_to_delete %]
42                         <div class="alert alert-warning">No checkout history to delete</div>
43                     [% END %]
44
45                     [% IF ( privacy_updated ) %]
46                         <div class="alert alert-success">Your privacy rules have been updated.</div>
47                     [% END %]
48
49                     [% IF ( Ask_data ) %]
50                         <p>We take great care in protecting your privacy. On this screen, you can define how long we keep your checkout history.</p>
51                         <p>Your options are: <p>
52                         <ul id="opac-privacy-options-list">
53                             <li class="privacy0">Forever: keep my checkout history without limit. This is the option for users who want to keep track of what they are reading.</li>
54                             <li class="privacy1">Default: keep my checkout history according to local laws. This is the default option : the library will keep your checkout history for the duration permitted by local laws.</li>
55                             <li class="privacy2">Never: Delete my checkout history immediately. This will delete all record of the item that was checked-out upon check-in.</li>
56                         </ul>
57                         <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>
58                         <p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p>
59                         <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
60                             <legend class="sr-only">Privacy rule</legend>
61                             <input type="hidden" name="op" value="update_privacy" />
62                             <fieldset>
63                                 <label for="privacy">Please choose your privacy rule:</label>
64                                 <div class="form-group row">
65                                     <div class="col-6">
66                                         <select class="form-control" name="privacy" id="privacy">
67                                             [% IF ( privacy0 ) %]
68                                                 <option value="0" selected="selected" class="privacy0">Forever</option>
69                                             [% ELSE %]
70                                                 <option value="0" class="privacy0">Forever</option>
71                                             [% END %]
72                                             [% IF ( privacy1 ) %]
73                                                 <option value="1" selected="selected" class="privacy1">Default</option>
74                                             [% ELSE %]
75                                                 <option value="1" class="privacy1">Default</option>
76                                             [% END %]
77                                             [% IF ( privacy2 ) %]
78                                                 <option value="2" selected="selected" class="privacy2">Never</option>
79                                             [% ELSE %]
80                                                 <option value="2" class="privacy2">Never</option>
81                                             [% END %]
82                                         </select>
83                                     </div> <!-- /.col-6 -->
84                                 </div> <!-- /.form-group.row -->
85
86                                 [% IF has_guarantor_flag && (Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %]
87                                     [% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
88                                         <div class="form-group row">
89                                             <div class="col-6">
90                                                 <label for="privacy_guarantor_checkouts">Allow your guarantor to view your current checkouts?</label>
91                                                 <select class="form-control" name="privacy_guarantor_checkouts">
92                                                     [% IF borrower.privacy_guarantor_checkouts %]
93                                                         <option value="0">No</option>
94                                                         <option value="1" selected>Yes</option>
95                                                     [% ELSE %]
96                                                         <option value="0" selected>No</option>
97                                                         <option value="1">Yes</option>
98                                                     [% END %]
99                                                 </select>
100                                             </div> <!-- /.col-6 -->
101                                         </div> <!-- /.form-group.row -->
102                                     [% END # /IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
103
104                                     [% IF Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') %]
105                                         <div class="form-group row">
106                                             <div class="col-6">
107                                                 <label for="privacy_guarantor_fines">Allow your guarantor to view your current fines?</label>
108                                                 <select class="form-control" name="privacy_guarantor_fines">
109                                                     [% IF borrower.privacy_guarantor_fines %]
110                                                         <option value="0">No</option>
111                                                         <option value="1" selected>Yes</option>
112                                                     [% ELSE %]
113                                                         <option value="0" selected>No</option>
114                                                         <option value="1">Yes</option>
115                                                     [% END %]
116                                                 </select>
117                                             </div> <!-- /.col-6 -->
118                                         </div> <!-- /.form-group.row -->
119                                     [% END %]
120
121                                     <span class="hint">
122                                         Guaranteed by
123                                         [% FOREACH gr IN borrower.guarantor_relationships %]
124                                             [% SET g = gr.guarantor %]
125                                             [% g.firstname | html %] [% g.surname | html %]
126                                             [%- IF ! loop.last %], [% END %]
127                                         [% END %]
128                                     </span>
129                                 [% END # /IF has_guarantor_flag.. %]
130                                 <fieldset class="action">
131                                     <button type="Submit" class="btn btn-primary">Save</button>
132                                 </fieldset>
133                             </fieldset>
134                         </form> <!-- /#opac-privacy-update-form -->
135
136                         <hr />
137
138                         <h2>Immediate deletion</h2>
139
140                         <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form">
141                             <legend class="sr-only">Immediate deletion</legend>
142                             <input type="hidden" name="op" value="delete_record" />
143                             <p>Whatever your privacy rule you choose, you can delete all your checkout history immediately by clicking here. <strong>BE CAREFUL</strong>. Once you've confirmed the deletion, no one can retrieve the list!</p>
144                             <fieldset class="action">
145                                 <input type="submit" value="Immediate deletion" class="btn btn-danger" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
146                             </fieldset>
147                         </form>
148
149                         [% IF Koha.Preference('StoreLastBorrower') %]
150                             <p id="store-last-borrower-msg">Please note, the last person to return an item is tracked for the management of items returned damaged.</p>
151                         [% END %]
152                     [% END # / IF Ask_data %]
153                 </div> <!-- / .userprivacy -->
154             </div> <!-- / .col-lg-10 -->
155         </div> <!-- / .row -->
156     </div> <!-- / .container-fluid -->
157 </div> <!-- / .main -->
158
159 [% INCLUDE 'opac-bottom.inc' %]
160 [% BLOCK jsinclude %][% END %]