Bug 7413: (follow-up) teach renew interface about too_soon
authorGalen Charlton <gmc@esilibrary.com>
Tue, 8 Apr 2014 23:22:05 +0000 (23:22 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 8 Apr 2014 23:22:05 +0000 (23:22 +0000)
commit26c79241868e981a0e3a90f9ce83d28f286ee285
tree4d6e73f262bd2337de7290b263c90e00c8933e71
parent9d9ae48a0c75d6c5dbe65c21ecf250a86cd46ffc
Bug 7413: (follow-up) teach renew interface about too_soon

This patch ensures that the new staff interface for renewals
recognizes when premature renewals are requested.  If the
AllowRenewalLimitOverride system preference is enabled, staff members
are able to override the block:

To test:

[1] Set up a loan policy with a "no renewal before" value and
    check out an item.
[2] In the renewal page, verify that attempting to renew the loan
    results in an error forbidding the renew.
[3] If AllowRenewalLimitOverride is enabled, the operator should
    also be given the option to override the block.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
circ/renew.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt