Bug 15486: Modify request.tt to handle the new error string
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 19 Jul 2017 22:32:09 +0000 (19:32 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 24 Oct 2018 13:24:05 +0000 (13:24 +0000)
This patch makes reserve/request.pl display a convenient error
description when a hold cannot be placed due to the new daily limit
configuration.

To test:
- Apply this patchset
- Upgrade
- Configure your circulation rules so there's a daily limit for holds
- Place holds so the patron reaches the maximum
- Place one more hold
- Notice the hold cannot be placed and a convenient error message is
displayed.
- Sign off :-D

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt

index 68ed8a6..30ce360 100644 (file)
                                 Age restricted
                             [% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %]
                                 Exceeded max holds per record
+                            [% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %]
+                                Daily hold limit reached for patron
                             [% ELSIF itemloo.not_holdable == 'tooManyReserves' %]
                                 Too many holds
                             [% ELSIF itemloo.not_holdable == 'notReservable' %]