Bug 7641: Suspend Reserves
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 1 Mar 2012 16:57:58 +0000 (11:57 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 29 Mar 2012 12:37:49 +0000 (14:37 +0200)
commitf446b3d03d574e145bbc8f3e241ce2711c935643
treee88772cc4c2d68f22c7a210d4f4ac15b55ea19ee
parent98c59fc3577b5904fc980781ce805bff875b157f
Bug 7641: Suspend Reserves

Adds the ability to suspend reserves. The new system preference
AutoResumeSuspendedHolds enables the ability to set a date for
a suspended hold to automatically be resumed.

When a hold is suspended, it will continue to increase in priority
as the holds above it are fulfilled. If the first holds in line
to be filled are suspended, the first non-suspened hold in line
will be used when an item can fulfill a hold that has been placed.

http://bugs.koha-community.org/show_bug.cgi?id=7641
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Tested with the preference on and off:
1. placed several holds in the staff client
2. suspended some with a date
3. suspended some without a date
4. triggered hold message by checking in for hold with suspensions
5. the suspended hold was skipped as it should be
6. tested suspending holds in the OPAC w and w/out dates
7. ran the cron to clear suspensions with dates

All the above tests worked as expected. Signing off.
17 files changed:
C4/Reserves.pm
circ/circulation.pl
installer/data/mysql/kohastructure.sql
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt
members/moremember.pl
misc/cronjobs/holds/auto_unsuspend_holds.pl [new file with mode: 0755]
opac/opac-modrequest-suspend.pl [new file with mode: 0755]
opac/opac-user.pl
reserve/modrequest.pl
reserve/modrequest_suspendall.pl [new file with mode: 0755]
reserve/request.pl