Bug 10493: Add renewal script
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 19 Jun 2013 09:28:01 +0000 (05:28 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 22 Oct 2013 17:04:03 +0000 (17:04 +0000)
commit2e4411e77f54cc4d67c43e6862dff31f7593950e
treede8a3620c9c81b031aa7aade41b8f0c0fedcf38b
parenteb0e1e6bba31a2e741ed9b074ba7e1c9dd0c6083
Bug 10493: Add renewal script

This patch adds a renewal tool that functions similar to the returns where a
librarian can continuously scan items for renewal. This script blocks
renewals that are impossible, and allow the same renewal overrides
as circulation.pl

Test plan:
 1) Apply the patches for bug 8798
 2) Apply this patch
 3) Browse to /cgi-bin/koha/circ/renew.pl
 4) Enter an invalid barcode, you should get an error message
 5) Enter a valid, but not checked out barcode, you should get an error
    message.
 6) Enter a valid barcode that is checkout out and should be renewable,
    you should get a success message.
 7) Enable AllowRenewalLimitOverride
 8) Enter a barcode for an item that has been renewed too many times
 9) You should get a warning which you can override.
10) Disable AllowRenewalLimitOverride
11) Repeat steap 8
12) You should get a blocking error message
11) Enter a barcode for an item with unfilled holds on it,
    you should get an overridable warning

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Passes all tests and QA script, some issues have been
addressed in follow-ups.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Circulation.pm
C4/Items.pm
C4/Reserves.pm
Koha/Schema/Result/Issue.pm
Koha/Schema/Result/Item.pm
circ/renew.pl [new file with mode: 0755]
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt [new file with mode: 0644]