2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Your privacy management › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
7 [% INCLUDE 'bodytag.inc' bodyid='opac-privacy' %]
8 [% INCLUDE 'masthead.inc' %]
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>
16 <li class="breadcrumb-item">
17 <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
19 <li class="breadcrumb-item" aria-current="page">
20 <a href="#">Your privacy management</a>
25 <div class="container-fluid">
27 <div class="col col-lg-2 order-2 order-lg-1">
29 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
32 <div class="col-md-12 col-lg-10 order-1">
34 <div id="userprivacy" class="maincontent">
35 <h1>Your privacy management</h1>
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>
45 [% IF ( privacy_updated ) %]
46 <div class="alert alert-success">Your privacy rules have been updated.</div>
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>
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 <input type="hidden" name="op" value="update_privacy" />
62 <label for="privacy">Please choose your privacy rule:</label>
63 <div class="form-group row">
65 <select class="form-control" name="privacy" id="privacy">
67 <option value="0" selected="selected" class="privacy0">Forever</option>
69 <option value="0" class="privacy0">Forever</option>
72 <option value="1" selected="selected" class="privacy1">Default</option>
74 <option value="1" class="privacy1">Default</option>
77 <option value="2" selected="selected" class="privacy2">Never</option>
79 <option value="2" class="privacy2">Never</option>
82 </div> <!-- /.col-6 -->
83 </div> <!-- /.form-group.row -->
85 [% IF has_guarantor_flag && (Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %]
86 [% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
87 <div class="form-group row">
89 <label for="privacy_guarantor_checkouts">Allow your guarantor to view your current checkouts?</label>
90 <select class="form-control" name="privacy_guarantor_checkouts">
91 [% IF borrower.privacy_guarantor_checkouts %]
92 <option value="0">No</option>
93 <option value="1" selected>Yes</option>
95 <option value="0" selected>No</option>
96 <option value="1">Yes</option>
99 </div> <!-- /.col-6 -->
100 </div> <!-- /.form-group.row -->
101 [% END # /IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
103 [% IF Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') %]
104 <div class="form-group row">
106 <label for="privacy_guarantor_fines">Allow your guarantor to view your current fines?</label>
107 <select class="form-control" name="privacy_guarantor_fines">
108 [% IF borrower.privacy_guarantor_fines %]
109 <option value="0">No</option>
110 <option value="1" selected>Yes</option>
112 <option value="0" selected>No</option>
113 <option value="1">Yes</option>
116 </div> <!-- /.col-6 -->
117 </div> <!-- /.form-group.row -->
122 [% FOREACH gr IN borrower.guarantor_relationships %]
123 [% SET g = gr.guarantor %]
124 [% g.firstname | html %] [% g.surname | html %]
125 [%- IF ! loop.last %], [% END %]
128 [% END # /IF has_guarantor_flag.. %]
129 <fieldset class="action">
130 <button type="Submit" class="btn btn-primary">Save</button>
133 </form> <!-- /#opac-privacy-update-form -->
137 <h2>Immediate deletion</h2>
139 <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form">
140 <input type="hidden" name="op" value="delete_record" />
141 <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>
142 <fieldset class="action">
143 <input type="submit" value="Immediate deletion" class="btn btn-danger" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
147 [% IF Koha.Preference('StoreLastBorrower') %]
148 <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>
150 [% END # / IF Ask_data %]
151 </div> <!-- / .userprivacy -->
152 </div> <!-- / .col-lg-10 -->
153 </div> <!-- / .row -->
154 </div> <!-- / .container-fluid -->
155 </div> <!-- / .main -->
157 [% INCLUDE 'opac-bottom.inc' %]
158 [% BLOCK jsinclude %][% END %]