Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
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
..
acquisitions.pref Bug 10076 - Add Bcc syspref for ClaimAcquisition and ClaimIssues 2015-12-31 20:28:59 +00:00
admin.pref
authorities.pref
cataloguing.pref
circulation.pref Bug 14694 - Make decreaseloanHighHolds more flexible 2016-03-07 17:48:51 +00:00
enhanced_content.pref Bug 14168 - enhance streaming cataloging to include youtube 2016-03-02 00:40:00 +00:00
i18n_l10n.pref
labs.pref
local_use.pref
logs.pref
opac.pref Bug 15311 - Let libraries set text to display when OpacMaintenance = on 2016-02-26 14:19:20 +00:00
patrons.pref Bug 15552: Better wording of intranetreadinghistory 2016-01-27 05:42:10 +00:00
searching.pref Bug 13022 [QA Followup] - Allow the pref to be unset for unlimited item status checks 2015-12-31 18:11:21 +00:00
serials.pref
staff_client.pref
tools.pref
web_services.pref