Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
Emmi Takkinen 9fe3c489f4 Bug 26498: Set default expiration date for holds
Koha doesn't automatically set expiration date for holds
so they can live in the system forever. This patch adds
new sysprefs to control setting of default expiration
date for holds. Note that expiration date is only set
if input field for it is left blank.

To test:
1. Apply patch and update database.
2. Enable syspref "DefaultHoldExpirationdate" and set some values
to "DefaultHoldExpirationdatePeriod" and
"DefaultHoldExpirationdateUnitOfTime".
3. Add some holds for patron from staff client or OPAC and leave
expiration date input field blank.
=> Holds expiration date should be set according your settings
4. Disable "DefaultHoldExpirationdate" and repeat step 3.
=> Expiration date shouldn't be set.

Also prove prove t/db_dependent/Hold.t

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Andrew Isherwood <andrew.isherwood@ptfs-europe.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-07 13:10:31 +02:00
..
accounting.pref Bug 22824: Fix yes/no vs 1/0 2021-03-04 16:18:42 +01:00
acquisitions.pref Bug 22824: Fix yes/no vs 1/0 2021-03-04 16:18:42 +01:00
admin.pref Bug 27652: Display patron's categories for sysprefs expecting them 2021-03-09 17:20:47 +01:00
authorities.pref Bug 22824: Fix yes/no vs 1/0 2021-03-04 16:18:42 +01:00
borrowers.json
cataloguing.pref Bug 27738: Fix wording 2021-04-06 15:56:30 +02:00
circulation.pref Bug 26498: Set default expiration date for holds 2021-04-07 13:10:31 +02:00
enhanced_content.pref Bug 22824: Fix yes/no vs 1/0 2021-03-04 16:18:42 +01:00
i18n_l10n.pref Bug 22824: Fix yes/no vs 1/0 2021-03-04 16:18:42 +01:00
items.json
local_use.pref
logs.pref Bug 22824: Correct on/off behaviour 2021-03-04 16:18:42 +01:00
opac.pref Bug 27805: (follow-up) Update more instances 2021-04-06 15:56:30 +02:00
patrons.pref Bug 27805: (follow-up) Update more instances 2021-04-06 15:56:30 +02:00
searching.pref Bug 22824: Fix yes/no vs 1/0 2021-03-04 16:18:42 +01:00
serials.pref Bug 22824: Fix yes/no vs 1/0 2021-03-04 16:18:42 +01:00
staff_interface.pref Bug 22824: Fix yes/no vs 1/0 2021-03-04 16:18:42 +01:00
tools.pref
web_services.pref Bug 22824: Replace wrong auto replacement 2021-03-04 16:18:42 +01:00