2 [% USE AdditionalContents %]
3 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
4 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Your privacy management › [% 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-privacy' %]
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">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
22 <li class="breadcrumb-item active">
23 <a href="#" aria-current="page">Your privacy management</a>
26 </nav> <!-- /#breadcrumbs -->
28 <div class="container-fluid">
30 <div class="col col-lg-2 order-2 order-lg-1">
32 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
35 <div class="col-md-12 col-lg-10 order-1">
37 <div id="userprivacy" class="maincontent">
38 <h1>Your privacy management</h1>
40 [% IF delete_all_requested || delete_checkouts_requested || delete_holds_requested %]
41 [% IF delete_all_requested || delete_checkouts_requested %]
42 [% IF deleted_checkouts %]
43 <div class="alert alert-success">Your checkout history has been deleted.</div>
44 [% ELSIF error_deleting_checkouts_history %]
45 <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>
46 [% ELSIF no_checkouts_to_delete %]
47 <div class="alert alert-warning">No checkout history to delete</div>
51 [% IF delete_all_requested || delete_holds_requested %]
52 [% IF deleted_holds %]
53 <div class="alert alert-success">Your hold history has been deleted.</div>
54 [% ELSIF error_deleting_holds_history %]
55 <div class="alert alert-warning">The deletion of your hold history failed. Please help to fix the system by informing your library of this error</div>
56 [% ELSIF no_holds_to_delete %]
57 <div class="alert alert-warning">No hold history to delete</div>
62 [% IF ( privacy_updated ) %]
63 <div class="alert alert-success">Your privacy rules have been updated.</div>
67 <p>We take great care in protecting your privacy. On this screen, you can define how long we keep your checkout and hold history.</p>
68 <p>Your options are: <p>
69 <ul id="opac-privacy-options-list">
70 <li class="privacy0">Forever: keep my history without limit. This is the option for users who want to keep track of what they are reading or placed a hold on.</li>
71 <li class="privacy1">Default: keep my history according to local laws. This is the default option : the library will keep your history for the duration permitted by local laws.</li>
72 <li class="privacy2">Never: Delete my history immediately. This will delete all record of the item that was checked-out upon check-in, and hold history upon fulfillment or cancellation.</li>
74 <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>
75 <p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p>
76 <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
77 <legend class="sr-only">Privacy rule</legend>
78 <input type="hidden" name="op" value="update_privacy" />
80 <label for="privacy">Please choose your privacy rule:</label>
81 <div class="form-group row">
83 <select class="form-control" name="privacy" id="privacy">
85 <option value="0" selected="selected" class="privacy0">Forever</option>
87 <option value="0" class="privacy0">Forever</option>
90 <option value="1" selected="selected" class="privacy1">Default</option>
92 <option value="1" class="privacy1">Default</option>
95 <option value="2" selected="selected" class="privacy2">Never</option>
97 <option value="2" class="privacy2">Never</option>
100 </div> <!-- /.col-6 -->
101 </div> <!-- /.form-group.row -->
103 [% IF has_guarantor_flag && (Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %]
104 [% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
105 <div class="form-group row">
107 <label for="privacy_guarantor_checkouts">Allow your guarantor to view your current checkouts?</label>
108 <select class="form-control" name="privacy_guarantor_checkouts">
109 [% IF borrower.privacy_guarantor_checkouts %]
110 <option value="0">No</option>
111 <option value="1" selected>Yes</option>
113 <option value="0" selected>No</option>
114 <option value="1">Yes</option>
117 </div> <!-- /.col-6 -->
118 </div> <!-- /.form-group.row -->
119 [% END # /IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
121 [% IF Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') %]
122 <div class="form-group row">
124 <label for="privacy_guarantor_fines">Allow your guarantor to view your current fines?</label>
125 <select class="form-control" name="privacy_guarantor_fines">
126 [% IF borrower.privacy_guarantor_fines %]
127 <option value="0">No</option>
128 <option value="1" selected>Yes</option>
130 <option value="0" selected>No</option>
131 <option value="1">Yes</option>
134 </div> <!-- /.col-6 -->
135 </div> <!-- /.form-group.row -->
140 [% FOREACH gr IN borrower.guarantor_relationships %]
141 [% SET g = gr.guarantor %]
142 [% g.firstname | html %] [% g.surname | html %]
143 [%- IF ! loop.last %], [% END %]
146 [% END # /IF has_guarantor_flag.. %]
147 <fieldset class="action">
148 <button type="Submit" class="btn btn-primary">Save</button>
151 </form> <!-- /#opac-privacy-update-form -->
155 <h2>Immediate deletion</h2>
157 <p>You can delete all your checkout and hold history immediately by clicking here. <strong>BE CAREFUL</strong>. Once you've confirmed the deletion, no one can retrieve the list!</p>
159 <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-checkouts">
160 <input type="hidden" name="op" value="delete_record" />
161 <input type="hidden" name="checkouts" value="1" />
164 <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-holds">
165 <input type="hidden" name="op" value="delete_record" />
166 <input type="hidden" name="holds" value="1" />
169 <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-all">
170 <input type="hidden" name="op" value="delete_record" />
171 <input type="hidden" name="all" value="1" />
173 <table class="table table-bordered table-condensed table-striped">
175 <td colspan=7>Immediately delete my checkout history. This action cannot be undone.</td>
177 <fieldset class="action">
178 <input type="submit" value="Delete checkout history" form="opac-privacy-delete-checkouts" class="btn btn-danger btn-block" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
183 <td colspan=7>Immediately delete my hold history. This action cannot be undone.</td>
185 <fieldset class="action">
186 <input type="submit" value="Delete hold history" form="opac-privacy-delete-holds" class="btn btn-danger btn-block" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
191 <td colspan=7>Immediately delete my checkout history & my hold history. This action cannot be undone.</td>
193 <fieldset class="action">
194 <input type="submit" value="Delete checkout and hold history" form="opac-privacy-delete-all" class="btn btn-danger btn-block" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
200 [% IF Koha.Preference('StoreLastBorrower') %]
201 <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>
203 [% END # / IF Ask_data %]
204 </div> <!-- / .userprivacy -->
205 </div> <!-- / .col-lg-10 -->
206 </div> <!-- / .row -->
207 </div> <!-- / .container-fluid -->
208 </div> <!-- / .main -->
210 [% INCLUDE 'opac-bottom.inc' %]
211 [% BLOCK jsinclude %][% END %]