|
Lines 1-5
Link Here
|
| 1 |
[% USE Koha %] |
1 |
[% USE Koha %] |
| 2 |
[% USE KohaDates %] |
2 |
[% USE KohaDates %] |
|
|
3 |
[% USE Branches %] |
| 3 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
| 4 |
<title>Koha › Tools › Batch patron deletion/anonymization [% IF step == 2 %]› Confirm[% END %][% IF step == 3 %]› Finished[% END %]</title> |
5 |
<title>Koha › Tools › Batch patron deletion/anonymization [% IF step == 2 %]› Confirm[% END %][% IF step == 3 %]› Finished[% END %]</title> |
| 5 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
|
Lines 37-42
Link Here
|
| 37 |
function checkForm2(form) { |
38 |
function checkForm2(form) { |
| 38 |
return true; |
39 |
return true; |
| 39 |
} |
40 |
} |
|
|
41 |
|
| 42 |
$(document).ready(function() { |
| 43 |
$('#selectlibrary').find("input:submit").hide(); |
| 44 |
$('#branch').change(function() { |
| 45 |
$('#selectlibrary').submit(); |
| 46 |
}); |
| 47 |
}); |
| 40 |
// ]]> |
48 |
// ]]> |
| 41 |
</script> |
49 |
</script> |
| 42 |
|
50 |
|
|
Lines 52-64
Link Here
|
| 52 |
<div id="bd"> |
60 |
<div id="bd"> |
| 53 |
<div id="yui-main"> |
61 |
<div id="yui-main"> |
| 54 |
<div class="yui-b"> |
62 |
<div class="yui-b"> |
|
|
63 |
[% IF !Branches.OnlyMine %] |
| 64 |
<form method="get" action="/cgi-bin/koha/tools/cleanborrowers.pl" id="selectlibrary"> |
| 65 |
Select a library : |
| 66 |
<select name="branch" id="branch" style="width:20em;"> |
| 67 |
<option value="*">All libraries</option> |
| 68 |
[% FOREACH branch IN Branches.all( selected => current_branch ) %] |
| 69 |
[% IF branch.selected %] |
| 70 |
<option value="[% branch.branchcode %]" selected="selected">[% branch.branchname %]</option> |
| 71 |
[% ELSE %] |
| 72 |
<option value="[% branch.branchcode %]">[% branch.branchname %]</option> |
| 73 |
[% END %] |
| 74 |
[% END %] |
| 75 |
</select> |
| 76 |
</form> |
| 77 |
[% IF current_branch == '*' %] |
| 78 |
<h1>Batch patron deletion/anonymization</h1> |
| 79 |
[% ELSE %] |
| 80 |
<h1>Batch patron deletion/anonymization for [% Branches.GetName( current_branch ) %]</h1> |
| 81 |
[% END %] |
| 82 |
[% ELSE %] |
| 83 |
<h1>Batch patron deletion/anonymization for [% Branches.GetName( Branches.GetLoggedInBranchcode ) %]</h1> |
| 84 |
[% END %] |
| 85 |
|
| 86 |
[% IF step == 1 %] |
| 87 |
<!-- step 1 START --> |
| 55 |
|
88 |
|
| 56 |
<h1>Batch patron deletion/anonymization</h1> |
|
|
| 57 |
<div class="help"> |
89 |
<div class="help"> |
| 58 |
<p>This tool allows you to delete patrons and anonymize checkout history. For deleting patrons, any combination of limits can be used.</p> |
90 |
<p>This tool allows you to delete patrons and anonymize checkout history. For deleting patrons, any combination of limits can be used.</p> |
| 59 |
</div> |
91 |
</div> |
| 60 |
[% IF step == 1 %] |
|
|
| 61 |
<!-- step 1 START --> |
| 62 |
<div id="step1"> |
92 |
<div id="step1"> |
| 63 |
<form name="f1" onsubmit="return checkForm(this);" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post"> |
93 |
<form name="f1" onsubmit="return checkForm(this);" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post"> |
| 64 |
<fieldset> |
94 |
<fieldset> |
|
Lines 119-124
Link Here
|
| 119 |
|
149 |
|
| 120 |
<!-- hidden here --> |
150 |
<!-- hidden here --> |
| 121 |
<input type="hidden" name="step" value="2" /> |
151 |
<input type="hidden" name="step" value="2" /> |
|
|
152 |
<input type="hidden" name="branch" value="[% current_branch %]" /> |
| 122 |
</fieldset> |
153 |
</fieldset> |
| 123 |
<fieldset class="action"><input type="submit" value="Next >>" /></fieldset> |
154 |
<fieldset class="action"><input type="submit" value="Next >>" /></fieldset> |
| 124 |
</form> |
155 |
</form> |
|
Lines 162-167
Link Here
|
| 162 |
<input type="hidden" name="borrower_dateexpiry" value="[% borrower_dateexpiry | $KohaDates %]" /> |
193 |
<input type="hidden" name="borrower_dateexpiry" value="[% borrower_dateexpiry | $KohaDates %]" /> |
| 163 |
<input type="hidden" name="borrower_categorycode" value="[% borrower_categorycode %]" /> |
194 |
<input type="hidden" name="borrower_categorycode" value="[% borrower_categorycode %]" /> |
| 164 |
<input type="hidden" name="patron_list_id" value="[% patron_list_id %]" /> |
195 |
<input type="hidden" name="patron_list_id" value="[% patron_list_id %]" /> |
|
|
196 |
<input type="hidden" name="branch" value="[% current_branch %]" /> |
| 165 |
</fieldset> |
197 |
</fieldset> |
| 166 |
<fieldset class="action"><input type="submit" value="Finish" /> <a class="cancel" href="/cgi-bin/koha/tools/cleanborrowers.pl">Cancel</a></fieldset> |
198 |
<fieldset class="action"><input type="submit" value="Finish" /> <a class="cancel" href="/cgi-bin/koha/tools/cleanborrowers.pl">Cancel</a></fieldset> |
| 167 |
</form> |
199 |
</form> |