- <legend>What do you want to do ?</legend>
- <p><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" checked="checked" />
- <label for="checkborrower">Delete borrower who has not borrowed since:</label>
- <input size="10" id="date1" name="filterdate1" value="[% filterdate1 %]" type="text" />
- <script type="text/javascript">
- Calendar.setup(
- {
- inputField : "date1",
- ifFormat : "[% DHTMLcalendar_dateformat %]"
- }
- );
- </script> <span class="hint">[% INCLUDE 'date-format.inc' %]</span></p>
-
- <p><input id="checkissue" type="checkbox" name="checkbox" value="issue" checked="checked" />
- <label for="checkissue">Anonymize check-out history older than</label>
- <input size="10" id="date2" name="filterdate2" value="[% filterdate2 %]" type="text" />
- <script type="text/javascript">
- Calendar.setup(
- {
- inputField : "date2",
- ifFormat : "[% DHTMLcalendar_dateformat %]"
- }
- );
- </script> <span class="hint">[% INCLUDE 'date-format.inc' %]</span></p>
-
-
+ <legend>Delete patrons</legend>
+ <h3><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" /><label for="checkborrower"> Verify you want to delete patrons</label></h3>
+ <br />
+ <h5>Delete patrons who meet the following criteria:</h5>
+ <ul>
+ <li>
+ <label for="date1">who have not borrowed since:</label>
+ <input size="10" id="date1" name="not_borrowed_since" type="text" class="datepicker" />
+ <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
+ </li>
+ <li>
+ <label for="borrower_dateexpiry">whose expiration date is before:</label>
+ <input size="10" id="borrower_dateexpiry" name="borrower_dateexpiry" type="text" class="datepicker" />
+ <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
+ </li>
+ <li>
+ <label for="borrower_categorycode">whose patron category is:</label>
+ <select id="borrower_categorycode" name="borrower_categorycode">
+ <option value="" selected="selected">Any</option>
+ [% FOREACH bc IN borrower_categorycodes %]
+ [% UNLESS bc.category_type == 'S' %]
+ <option value="[% bc.categorycode %]">[% bc.description %]</option>
+ [% END %]
+ [% END %]
+ </select>
+ </li>
+ [% IF patron_lists %]
+ <li>
+ <label for="patron_list_id">who are in patron list: </label>
+ <select id="patron_list_id" name="patron_list_id">
+ <option value=""></option>
+ [% FOREACH pl IN patron_lists %]
+ <option value="[% pl.patron_list_id %]">[% pl.name %]</option>
+ [% END %]
+ </select>
+ </li>
+ [% END %]
+ </ul>
+ </fieldset>
+
+ <fieldset>
+ <legend>Anonymize checkout history</legend>
+ [% UNLESS Koha.Preference('AnonymousPatron') %]
+ <div class="dialog message">The AnonymousPatron system preference is not defined. You can use this feature anyway but NULL will be used to update the checkout history.</div>
+ [% END %]
+ <h3><input id="checkissue" type="checkbox" name="checkbox" value="issue" /><label for="checkissue"> Verify you want to anonymize patron checkout history</label></h3>
+ <br />
+ <ul>
+ <li>
+ <label for="date2">Permanently delete checkout history older than</label>
+ <input size="10" id="date2" name="last_issue_date" type="text" class="datepicker" />
+ <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
+ </li>
+ </ul>
+