[Koha-bugs] [Bug 7413] Allow OPAC renewal x days before due date

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 31 11:52:08 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7413

--- Comment #11 from Holger Meißner <h.meissner.82 at web.de> ---
Created attachment 24928
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=24928&action=edit
Bug 7413: Add new error "too_soon" in CanBookBeRenewed

This patch modifies CanBookBeRenewed in Ciculation.pm, so that based
on issuingrules.norenewalbefore a new error "too_soon" can be
returned.
For this error intranet HTML templates will display "Not renewable
yet" instead of "Not renewable".

To test:
1) Create an issuing rule with "No renewal before" set to value X
   and "Unit" set to days.
2) Confirm that items can't be renewed if current date is more than
   X days before due date.
3) Confirm that items can be renewed if "No renewal before" is
   undefined or current date is X or less days before due date.
4) Confirm that "Renewals allowed (count)" has priority, i.e. if
   the number of allowed renewals is exceeded "Not renewable" is
   displayed, no matter what "No renewal before" is set to.
5) Test the same things with "Unit" set to hours.
6) Test for both circulation.tt and moremember.tt.

Sponsored-by: Hochschule für Gesundheit (hsg), Germany

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list