Bug 8559 - conflicting item statuses - Force cancel or revert
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 17 Sep 2012 13:06:38 +0000 (09:06 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 29 Nov 2012 07:38:24 +0000 (20:38 +1300)
commita882974417f047b79c2d386c958c83ca1806f5f0
treed786989e2502e445eeda6fbc6ddfa16db49fcb1f
parentbd1f7f03c33139725236263fd93b394e665d532d
Bug 8559 - conflicting item statuses - Force cancel or revert

If a librarian checks out a waiting hold to a different patron
it gives the item conflicting statuses. The item will show as both
checked out to the different patron, and waiting for the original
patron.

This patch fixes this by not allowing this situation to occurr. If
a librarian attempts to issue an item that is waiting for a different
patron, the system will force the librarian to choose to
a) not issue the item
b) issue the item, and cancel the waiting hold
c) issue the item, and revert the waiting hold

In this scenario, reverting the waiting hold means to push it back
on the reserves queue as a hold with a priority of 1, which will push
the priorities of any existing holds back by 1 as well. It will become
an item level hold for the given item, as we cannot know if the hold
was item-level or bib-level given the data we have about the hold.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
All three cases tested, correct outcome each time

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Reserves.pm
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt