Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Jacek Ablewicz 69216d2217 Bug 11352: fix unexpected data loss issues with batch patron deletion/anonymization
Batch patron deletion/anonymization tool has some issues:

1) If 'dateformat' setting in I18N/L10N system preferences is set
to anything other then 'iso' (eg. 'metric'), bulk deletion when using
'expiration date is before' criterion is not working properly. Date
entered in this field will be efectivelly ignored (or possibly
sometimes wrongly interpreted as different date, in other format)
on the final patron deletion stage. This may result in deleting
(or moving to trash) more borrower records then intended.
2) Bulk/batch patron deletion should skip borrowers with
nonzero account balance (ones with oustanding fines or credits)
3) This tool shouldn't offer to choose as deletion criterion
those patron categories which have category_type set to 'S'
(= staff patron categories)

This patch fixes above mentioned problems. It also adds an option
to "test run" patron batch deletion, and makes this option
the default choice in "warning" stage.

Test plan:
- prepare test database with some patron records (at least 2,
the more the better) set up in such a way that they will be vulnerable
to issues 1 & 2
- confirm issues 1,2
- restore test database
- apply patch
- ensure issues 1 & 2 are no longer present - first by using new "test
run" option: for #1, record counts in "warning" stage and "final" stage
should be now the same; for #2, observe that patron records with nonzero
balance are now excluded from deletion
- redo the tests, this time choosing "delete permanently" and "move
to trash" instead of "test run"
- test #3 by changing "Category type" to "S" in some
test patron categories - after that, those categories should no
longer be choosable as deletion criteria.

Signed-off-by: Magnus Enger <digitalutvikling@gmail.com>
Tested with dateformat = dd/mm/yyyy. I tested with two expired patrons,
one with fines and one without. Before the patch a lot of unexpected
patrons were deleted along with the expected ones. After
applying the patch only the expired patron was deleted, not the
one with fines. The test run and the "real" run reported correct numbers.

The patch also makes sure no patron categories with category_type = S
are suggested for batch deletion.

Note: The ergonomics of the "Batch delete/anonymize" tool is hardly
optimal, but this patch fixes a real, data-loosing bug, so let's
deal with the ergonomics later.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-03-22 13:55:28 +00:00
..
acqui Bug 11366: make "no group" option in acq basket group drop-down translatable 2014-03-13 14:43:01 +00:00
admin Bug 11459: use drop-down to set OrderPdfFormat syspref 2014-03-12 17:25:54 +00:00
authorities Bug 10691: use authority ID in see-also links in authority search results (staff) 2014-01-16 22:35:58 +00:00
basket Bug 9218: fix intranet cart email for non english templates 2013-10-31 23:53:25 +00:00
batch Bug 9210: wrap long lines in printed hold notices 2014-01-15 15:51:44 +00:00
catalogue Bug 11328 - Show local cover images in staff client search results 2014-03-10 15:16:06 +00:00
cataloguing Bug 9366: add widget to bib editor to control display of the MARC tags 2014-03-14 15:00:58 +00:00
circ Bug 11359: Add the borrower's cardnumber and phonenumber to the branch overdues report 2014-03-10 20:25:26 +00:00
course_reserves Bug 11605: fallback to default DataTables settings where possible 2014-03-10 19:05:51 +00:00
errors
help Bug 11403: (follow-up) Fix typo in renew help 2014-03-14 14:43:02 +00:00
installer Bug 2774 - Path to theme is hard-coded in many places 2013-06-07 09:04:15 -07:00
labels Bug 11716 - Use new DataTables include in label manage template 2014-02-27 15:38:58 +00:00
members Bug 108661: (follow-up) enshrine letting CardnumberLength specify just a maximum 2014-03-12 04:07:03 +00:00
offline_circ Bug 10288 - Fix a tiny typo on "Pending offline circulation actions" 2013-05-20 12:23:32 -07:00
patron_lists Bug 11670 - Remove sorting from patron lists action columns 2014-02-10 15:59:27 +00:00
patroncards Bug 9924 - Simplify and rename patron card creator error message include 2013-09-08 19:19:23 +00:00
plugins
reports Bug 11718 - Use new DataTables include in reports templates 2014-03-12 17:33:25 +00:00
reserve Bug 11832: fix JavaScript error on staff client place hold screen if record has no items 2014-03-12 14:52:18 +00:00
reviews
rotating_collections
serials Bug 11938: fix capitalization: Serial prediction pattern preview - Publication Date 2014-03-17 15:21:32 +00:00
services Bug 10475 - Item form in acquisition not hiding subfields properly 2013-07-12 20:40:15 +00:00
sms
suggestion Bug 11686: make "please note your reason here..." translatable 2014-03-12 14:26:36 +00:00
tags Bug 11605: fallback to default DataTables settings where possible 2014-03-10 19:05:51 +00:00
test Bug 2774 - Path to theme is hard-coded in many places 2013-05-20 11:11:04 -07:00
tools Bug 11352: fix unexpected data loss issues with batch patron deletion/anonymization 2014-03-22 13:55:28 +00:00
virtualshelves Bug 11789 - Use validation plugin when creating new list 2014-02-21 20:14:00 +00:00
z3950
about.tt Bug 10415 - Add course reserves to staff client home page 2014-03-12 18:15:24 +00:00
auth.tt Bug 11146: Show a go back link on no permission page 2013-11-23 19:43:37 +00:00
intranet-main.tt Bug 10415 - Add course reserves to staff client home page 2014-03-12 18:15:24 +00:00