Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Kyle M Hall 80897930b7 Bug 2720 - Overdues which debar automatically should undebar automatically when returned
This patch adds a more extensible and flexible debarments system to Koha. The fields
borrowers.debarred and borrowers.debarredcomment are retained for compatibility and
speed.

This system supports having debarments for multiple reasons. There are currently
three types of debarments:
OVERDUES    - Generated by overdue_notices.pl if the notice should debar a patron
SUSPENSION  - A punative debarment generated on checkin via an issuing rule
MANUAL      - A debarment created manually by a librarian

OVERDUE debarments are cleared automatically when all overdue items have been returned,
if the new system preference AutoRemoveOverduesRestrictions is enabled. It is disabled
by default to retain current default functionality.

Whenever a borrowers debarments are modified, the system updates the borrowers debarment
fields with the highest expiration from all the borrowers debarments, and concatenates
the comments from the debarments together.

Test plan:
 1) Apply patch
 2) Run updatedatabase.pl
 3) Verify the borrower_debarments table has been created and
    populated with the pre-existing debarments
 4) Run t/db_dependent/Borrower_Debarments.t
 5) Manually debar a patron, with an expiration date
 6) Verify the patron cannot be issued to
 7) Add another manual debarment with a different expiration date
 8) Verify the 'restricted' message lists the date farthest into the future
 9) Add another manual debarment with no expiration date
10) Verify the borrower is now debarred indefinitely
11) Delete the indefinite debarment
12) Verify the debarment message lists an expiration date dagain
13) Enable the new system preference AutoRemoveOverduesRestrictions
14) Set an overdue notice to debar after 1 day of being overdue
15) Check out an item to a patron and backdate the due date to yesterday
16) Run overdue_notices.pl
17) Verify the OVERDUES debarment was created
18) Return the item
19) Verify the OVERDUES debarment was removed
20) Disable AutoRemoveOverduesRestrictions
21) Repeat steps 15 though 18, verify the OVERDUES debarment was *not* removed
22) Add issuing rules so that an overdue item causes a temporary debarment
23) Check out an item to a patron and backdate the due date by a year
24) Return the item
25) Verify the SUSPENSION debarment was added to the patron

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-10-31 01:53:22 +00:00
..
batchMod-del.tt Bug 10291: Clarify misleading variable name 2013-06-17 08:55:54 -07:00
batchMod-edit.tt Bug 10601: Add a counter on batch items modifications 2013-09-18 17:10:00 +00:00
batchMod.tt Bug 9533: batch item modification form now shows default field values only by request 2013-07-05 15:52:26 +00:00
cleanborrowers.tt bug 9360 - Clean borrowers tool wording and layout problematic 2013-01-14 22:51:55 -05:00
csv-profiles.tt Bug 10853 - followup to correct tabs 2013-10-11 02:16:17 +00:00
export.tt Bug 7986: Export issues for patron 2012-09-13 17:58:30 +02:00
holidays.tt Bug 9508 follow-up : replacing tabs by spaces 2013-05-20 09:05:13 -07:00
import_borrowers.tt Bug 2835 - Inconsistent use of colon at the end of sentences 2013-04-02 09:03:42 -04:00
inventory.tt Bug 2835 - Inconsistent use of colon at the end of sentences 2013-04-02 09:03:42 -04:00
koha-news.tt Bug 10871: Make confirmation message for deleting news translatable 2013-09-21 17:34:34 +00:00
letter.tt Bug 10439: fix bug preventing the library for a notice from being changed 2013-06-16 18:58:38 -07:00
manage-marc-import.tt Bug 7131: teach MARC import how to overlay items 2013-10-30 04:31:07 +00:00
modborrowers.tt Bug 2720 - Overdues which debar automatically should undebar automatically when returned 2013-10-31 01:53:22 +00:00
overduerules.tt Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
picture-upload.tt Bug 9310 - Patron image upload template corrections 2013-01-17 21:53:42 -05:00
quotes-upload.tt Bug 9645 - Replace YUI buttons on the quotes management page with Bootstrap 2013-02-18 09:09:57 -05:00
quotes.tt Bug 9645 - Replace YUI buttons on the quotes management page with Bootstrap 2013-02-18 09:09:57 -05:00
scheduler.tt Bug 8181 [REVISED] Replace DynArch calendar widget with jQueryUI version 2012-06-25 18:26:26 +02:00
stage-marc-import.tt Bug 2774 - Path to theme is hard-coded in many places 2013-05-20 11:11:04 -07:00
tools-home.tt Bug 11086: Fixing some grammatical mistakes in member-flags and tools-home 2013-10-29 16:06:28 +00:00
upload-images.tt Bug 2774 - Path to theme is hard-coded in many places 2013-05-20 11:11:04 -07:00
viewlog.tt Bug 7241, follow-up: viewlog link for circulation 2013-03-21 11:43:53 -04:00