Koha/installer/data/mysql/mandatory
Matthias Meusburger 5a31f88d52 Bug 26937: Add an optional delay to the CheckPrevCheckout syspref.
The CheckPrevCheckout allows to check a borrower's checkout history to see if
the current item has been checked out before.

This patch adds an optional syspref: CheckPrevCheckoutDelay

It allows to specify the maximum number of days since the last checkin
that will trigger CheckPrevCheckout's warning.

Test plan:

 - Apply the patch.

 - Set CheckPrevCheckout to "Do" and CheckPrevCheckoutDelay to n.

 - Checkout and check-in an item for a patron.

 - Try to checkout the same item.

 - Check that you have a warning:
   "Patron has previously checked out this title: Check out anyway?"

 - Update the returndate column from the old_issues table to have a returndate
   older than n days ago.

 - Try to checkout the same item.

 - Check that you don't have the warning.

 - Prove t/db_dependent/Patron/Borrower_PrevCheckout.t

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-03-01 15:14:22 +01:00
..
account_credit_types.sql Bug 24603: (follow-up) Update to double entry accounting 2020-11-10 15:00:14 +01:00
account_debit_types.sql Bug 23895: Move installer file into the mandatory directory 2020-10-14 14:50:07 +02:00
account_offset_types.sql Bug 24603: (follow-up) Update to double entry accounting 2020-11-10 15:00:14 +01:00
audio_alerts.sql Bug 23895: Move installer file into the mandatory directory 2020-10-14 14:50:07 +02:00
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 Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
message_transport_types.sql Bug 25334: Add generic 'phone' message transport type 2020-11-05 15:24:20 +01:00
sample_notices_message_attributes.sql Bug 22818: (QA follow-up) Add mandatory data at install time 2020-11-11 08:35:10 +01:00
sample_notices_message_transports.sql Bug 22818: (QA follow-up) Add mandatory data at install time 2020-11-11 08:35:10 +01:00
subtag_registry.sql Bug 23895: Move installer file into the mandatory directory 2020-10-14 14:50:07 +02:00
sysprefs.sql Bug 26937: Add an optional delay to the CheckPrevCheckout syspref. 2021-03-01 15:14:22 +01:00
userflags.sql Bug 23895: Move installer file into the mandatory directory 2020-10-14 14:50:07 +02:00
userpermissions.sql Bug 26718: Rename "reading history" to "checkout history" 2020-11-04 12:59:33 +01:00