]> git.koha-community.org Git - koha.git/commit
Bug 12230: Set a maximum suspension days as a new issuing rule
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 12 May 2014 10:31:11 +0000 (12:31 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 26 May 2014 01:39:19 +0000 (01:39 +0000)
commitaa6117da3682230cfe6fe43ee3b29fdb71c74a5a
tree4220a0b4f59901c8dfb75462453e1ce7e71646e4
parent2ff88b27b8c142185af98aa3ff68568c8a7bc8f7
Bug 12230: Set a maximum suspension days as a new issuing rule

This patch adds a new issuing rule: maxsuspensiondays.

A new column "Max. suspension duration (day)" appears in the main table
of the issuing rules.

If this value is filled, on returning an item, a patron won't be
suspended longer than this cap.

Test plan:
1/ Set "suspension in days" to 2.
2/ Check an item out to a patron and specify a due date to today - 10
days.
3/ Check the item in and verify the patron is suspended until today + 10
* 2 days.
4/ Remove the suspension.
5/ Set "Max. suspension duration" to 10.
6/ Check an item out to a patron and specify a due date to today - 10
days.
7/ Check the item in and verify the patron is suspended until today + 10
days.

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Circulation.pm
admin/smart-rules.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
t/db_dependent/Circulation/IssuingRules/maxsuspensiondays.t [new file with mode: 0644]