Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ
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
..
bookcount.tt Bug 9140 - Untranslatable strings in item circulation history 2012-12-22 16:02:54 -05:00
branchoverdues.tt Bug 7760 - Add ids and classes to every staff page to help with customizaton (circulation) 2012-03-22 18:12:27 +01:00
branchtransfers.tt Bug 2780 - Capitalize strings consistently (Circulation) 2012-04-10 10:03:30 +02:00
circulation-home.tt Bug 10493: Add renewal script 2013-10-22 17:04:03 +00:00
circulation.tt Bug 2720 - Overdues which debar automatically should undebar automatically when returned 2013-10-31 01:53:22 +00:00
offline-mf.tt Bug 10240: (follow-up) make sure datepicker icons are available offline 2013-10-11 01:57:05 +00:00
offline.tt Bug 10240: (follow-up) correctly record fines and fix label 2013-10-11 01:57:05 +00:00
overdue.tt Bug 10368: (followup) tweak label 2013-06-07 08:56:48 -07:00
pendingreserves.tt Bug 9761: Make it possible to confirm future hold requests at checkin time 2013-09-25 00:26:34 +00:00
printslip.tt Bug 10731: fix use of IntranetSlipPrinterJS by hold slips 2013-09-18 16:10:54 +00:00
renew.tt Bug 10493: (follow-up) fix various QA issues 2013-10-22 17:05:53 +00:00
reserveratios.tt Bug 9984: Remove server-side sort on the hold ratios table 2013-04-21 20:44:01 -04:00
returns.tt Bug 10785: (follow-up) fix one last bit of capitalization 2013-10-22 05:43:00 +00:00
selectbranchprinter.tt Bug 10054 - When SingleBranchMode is enabled, allow superlibrarians to set logged in library 2013-05-12 10:11:42 -04:00
stats.tt Bug 7760 - Add ids and classes to every staff page to help with customizaton (circulation) 2012-03-22 18:12:27 +01:00
transfer-slip.tt Bug 9265 - Switch to HTML5 doctype in OPAC and staff client 2013-01-31 11:47:04 -05:00
transferstoreceive.tt Bug 10721 - Improve DataTables configuration on transfers to receive report 2013-09-07 21:04:53 +00:00
view_holdsqueue.tt Bug 5825 - Add Item Type column to Holds Queue report 2013-08-16 15:15:31 +00:00
waitingreserves.tt Bug 2774 - Path to theme is hard-coded in many places 2013-05-20 11:11:04 -07:00