Koha/installer/data/mysql
Kyle M Hall f2dd831542 Bug 14694 - Make decreaseloanHighHolds more flexible
This patch allows for more flexibility for determining when the number
of holds a record has should trigger the reduction of the loan length
for items on that record.

This patch adds a new system preference decreaseLoanHighHoldsControl,
which defaults to 'static', the original behavior of the feature.
It also has a new behavior 'dynamic' which makes the feature only
decrease the loan length if the number of holds on the record exceeds
the number of holdable items + decreaseLoanHighHoldsValue.

It also allows items to be filtered from the list of items based
on the damaged, lost, not for loan, and withdrawn values even if
those values would have allowed holds ( i.e. values < 0 )

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Set decreaseLoanHighHolds to Enable
4) Set decreaseLoanHighHoldsControl to "over the number of items on the record"
5) Set decreaseLoanHighHoldsDuration to 1
6) Set decreaseLoanHighHoldsValue to 3
7) Create a record with 5 items
8) Please 8 or more holds on the record
9) Check out one of the items to a patron
10) Note the loan length is reduced to 1 day
11) Set decreaseLoanHighHoldsValue to 3 to 2
12) Check out one of the items to a patron
13) Note the loan length is *not* reduced
14) Enbale all the filters possible in decreaseLoanHighHoldsIgnoreStatuses
15) Set one item to be damaged
16) Note the loan length is reduced
17) Unset the damaged status
18) Repeat steps 15 - 17 for lost, not for loan, and withdrawn

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
2016-03-07 17:48:51 +00:00
..
atomicupdate Bug 14694 - Make decreaseloanHighHolds more flexible 2016-03-07 17:48:51 +00:00
de-DE Bug 14199: Modify webinstaller sql files for marc21_orgcode plugin 2016-02-26 14:04:30 +00:00
en Bug 14199: Modify webinstaller sql files for marc21_orgcode plugin 2016-02-26 14:04:30 +00:00
es-ES Bug 14199: Modify webinstaller sql files for marc21_orgcode plugin 2016-02-26 14:04:30 +00:00
fr-FR Bug 14199: Modify webinstaller sql files for marc21_orgcode plugin 2016-02-26 14:04:30 +00:00
it-IT Bug 14199: Modify webinstaller sql files for marc21_orgcode plugin 2016-02-26 14:04:30 +00:00
mandatory Bug 14285: Bengali locale needs to be re-defined 2015-06-01 15:22:27 -03:00
nb-NO Bug 14199: Modify webinstaller sql files for marc21_orgcode plugin 2016-02-26 14:04:30 +00:00
pl-PL Bug 14199: Modify webinstaller sql files for marc21_orgcode plugin 2016-02-26 14:04:30 +00:00
ru-RU Bug 14199: Modify webinstaller sql files for marc21_orgcode plugin 2016-02-26 14:04:30 +00:00
uk-UA Bug 14199: Modify webinstaller sql files for marc21_orgcode plugin 2016-02-26 14:04:30 +00:00
audio_alerts.sql Bug 11431: (QA followup) Make audio alerts sql top level 2015-11-04 12:33:53 -03:00
backfill_statistics.pl
kohastructure.sql Bug 11023: DB changes 2016-03-02 22:56:31 +00:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 14694 - Make decreaseloanHighHolds more flexible 2016-03-07 17:48:51 +00:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl DBRev Bug 15084 - Move the currency related code to 2016-03-03 21:15:14 +00:00
userflags.sql Bug 13632: Populate user_flags and permissions tables in the web installer 2015-10-19 09:38:04 -03:00
userpermissions.sql Bug 11569: Correcting typos in userpermissions.sql 2015-12-30 16:21:38 +00:00