1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Tools › Clean Borrowers</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="header.inc" -->
6 <!-- Additions to enable Calendar system -->
7 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
8 <!-- End of additions --><!-- Additions to enable Calendar system -->
9 <script type="text/javascript" src="<!-- TMPL_VAR name='themelang' -->/lib/calendar/calendar.js"></script>
10 <script type="text/javascript" src="<!-- TMPL_VAR name='themelang' -->/lib/calendar/calendar-en.js"></script>
11 <script type="text/javascript" src="<!-- TMPL_VAR name='themelang' -->/lib/calendar/calendar-setup.js"></script>
12 <!-- End of additions -->
14 <!-- TMPL_INCLUDE NAME="menu-tools.inc" -->
16 <div id="doc3" class="yui-t2">
20 <div class="yui-b"><div class="yui-g">
22 <h1>Delete some old borrowers/Anonymize some issue history</h1>
24 <!-- TMPL_IF NAME="step1" -->
27 <form name="f1" onsubmit="return checkForm(this);" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post">
29 <legend>What do you want to do ?</legend>
30 <p><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" checked="checked" />
31 Delete borrower who has not borrowed since:
32 <input size="10" id="date1" name="filterdate1" value="<!-- TMPL_VAR NAME="filterdate1"-->" type="text" /></p>
33 <script type="text/javascript">
37 ifFormat : "%Y-%m-%d",
43 <p><input id="checkissue" type="checkbox" name="checkbox" value="issue" checked="checked" />
44 Anonymize issue history older than
45 <input size="10" id="date2" name="filterdate2" value="<!-- TMPL_VAR NAME="filterdate2"-->" type="text" /></p>
46 <script type="text/javascript">
50 ifFormat : "%Y-%m-%d",
56 <input type="submit" value=" OK " style="float:right;" />
59 <input type="hidden" name="step2" value="1" />
65 <!-- TMPL_IF NAME="step2" -->
69 <legend>Warnings</legend>
71 <!-- TMPL_IF NAME="totalToDelete" --><!-- TMPL_VAR NAME="totalToDelete" --> <!-- TMPL_ELSE -->0 <!-- /TMPL_IF --> borrowers will be deleted.
73 <!-- TMPL_IF NAME="totalToAnonymize" --><!-- TMPL_VAR NAME="totalToAnonymize" --> <!-- TMPL_ELSE -->0 <!-- /TMPL_IF --> issue history will be anonymized.
77 <form name="f2" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post" onsubmit="return checkForm2(this);">
78 <!-- TMPL_IF NAME="totalToDelete" -->
79 What do you want to do for deleted members ?<br />
80 <label for="delete">Delete completly theses members</label>
81 <input id="delete" type="radio" name="radio" value="delete" checked="checked" />
83 <label for="trash">Move to trash theses members</label>
84 <input id="trash" type="radio" name="radio" value="trash" />
85 <input type="hidden" name="do_delete" value="<!-- TMPL_VAR NAME="totalToDelete" -->" />
88 <!--TMPL_IF NAME="totalToAnonymize"-->
90 Are you sure you want to anonymize issue history for <!-- TMPL_VAR NAME="totalToAnonymize"--> borrowers ?
91 <input type="hidden" name="do_anonym" value="<!-- TMPL_VAR NAME="totalToAnonymize" -->" />
94 <a href="JavaScript:back();" title="go back">Cancel</a>
95 <input type="submit" value=" OK " style="float:right;" />
97 <input type="hidden" name="step3" value="1" />
98 <input type="hidden" name="filterdate1" value="<!-- TMPL_VAR NAME="filterdate1" -->" />
99 <input type="hidden" name="filterdate2" value="<!-- TMPL_VAR NAME="filterdate2" -->" />
106 <!-- TMPL_IF NAME="step3" -->
107 <!-- Step 3 START -->
111 <!-- TMPL_IF NAME="do_delete" -->
112 <!-- TMPL_IF NAME="trash" -->
113 <!-- TMPL_VAR NAME="TotalDel" --> borrowers have been successfuly moved to trash.
115 <!-- TMPL_VAR NAME="TotalDel" --> borrowers have been successfuly deleted.
118 <!-- TMPL_IF NAME="do_anonym" -->
119 All user which issue's history older than <!-- TMPL_VAR NAME="filterdate1" --> has been anonimized.
123 <a href="/cgi-bin/koha/tools/tools-home.pl">Go back to tools home.</a>
127 <script type="text/javascript" language="JavaScript">
131 * This function check the form is correctly filled.
133 function checkForm(form) {
134 if((form.checkbox[0].checked)){
135 if(!(form.date1.value)){
136 alert("please enter a date !");
137 document.form.date1.focus();
141 if((form.checkbox[1].checked)){
142 if(!(form.date2.value)){
143 alert("please enter a date !");
144 document.form.date2.focus();
153 * This function check the form2 is correctly filled.
155 function checkForm2(form) {
165 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
166 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->