Koha/installer/data/mysql/mandatory
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
..
account_credit_types.sql
account_debit_types.sql
account_offset_types.sql
audio_alerts.sql
auth_val_cat.sql Bug 27598: (QA follow-up) Add category description and installer data 2021-02-15 11:59:31 +01:00
keyboard_shortcuts.sql
message_transport_types.sql
sample_notices_message_attributes.sql Bug 18532: Add new letter AUTO_RENEWALS_DGST, new Auto_Renewals in message_attributes, and configured message_transports 2021-03-16 16:08:31 +01:00
sample_notices_message_transports.sql Bug 18532: Add new letter AUTO_RENEWALS_DGST, new Auto_Renewals in message_attributes, and configured message_transports 2021-03-16 16:08:31 +01:00
subtag_registry.sql
sysprefs.sql Bug 26498: Set default expiration date for holds 2021-04-07 13:10:31 +02:00
userflags.sql
userpermissions.sql