Koha/installer/data/mysql
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
..
atomicupdate Bug 26937: Add an optional delay to the CheckPrevCheckout syspref. 2021-03-01 15:14:22 +01:00
en Bug 23675: Add leader and default value for ACQ 2021-02-23 13:12:56 +01:00
fr-CA Bug 24811: French SQL files "news" link fixed 2021-01-22 13:49:25 +01:00
fr-FR Bug 27491: Rename system preference opaclanguages to OPACLanguages 2021-01-22 14:59:27 +01:00
it-IT Bug 27103: Remove HOLD_CANCELLATION notice 2020-11-27 13:00:38 +01:00
localization Bug 27581: (QA follow-up) Fix occurence in it-IT custom.sql 2021-02-08 14:56:00 +01:00
mandatory Bug 26937: Add an optional delay to the CheckPrevCheckout syspref. 2021-03-01 15:14:22 +01:00
nb-NO Bug 27103: Remove HOLD_CANCELLATION notice 2020-11-27 13:00:38 +01:00
pl-PL Bug 27103: Remove HOLD_CANCELLATION notice 2020-11-27 13:00:38 +01:00
ru-RU Bug 27491: Rename system preference opaclanguages to OPACLanguages 2021-01-22 14:59:27 +01:00
uk-UA Bug 11996: (follow-up) Updating the uk-UA currency 2021-01-22 13:46:42 +01:00
backfill_statistics.pl Bug 13795: Remove occurences of unused columns in code 2019-04-18 10:05:51 +00:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 24840: Replace DateTime->now with dt_from_string 2020-04-08 11:54:23 +01:00
kohastructure.sql Bug 8976: Sort subfields for authority records 2021-03-01 15:14:22 +01:00
labels_upgrade.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
patroncards_upgrade.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
update22to30.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
updatedatabase.pl Bug 8976: DBRev 20.12.00.016 2021-03-01 15:14:22 +01:00