]> git.koha-community.org Git - koha.git/commit
bug 2522 [2/3]: C4::Reserves support for request targeting
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 15 Aug 2008 01:59:50 +0000 (20:59 -0500)
committerChris Cormack <chris@bigballofwax.co.nz>
Thu, 3 Sep 2009 21:35:08 +0000 (09:35 +1200)
commit799a663ada336f35cd9c58a2feae0e1a436e1ad4
treec7a26ab9a3901d747792bfa43df9f9c47cb37c64
parent25652bd554a355a4bd978b2f6e659d0eec404ad0
bug 2522 [2/3]: C4::Reserves support for request targeting

_Findgroupreserve, which identifies which hold request an
item should fill, is modified to check to see if
that item is targeted to fill a specific hold request.

It first checks for a targeted match with an item-level hold request,
then a targeted match with a title-level request.  If no
such targeted match exists, it then checks for the top entries
in the holds queue.

The hold targeting map (i.e., the hold_fill_targets table) is
populated by the build_holds_queue.pl batch job.  If that
job is not used, the behavior of _Findgroupreserve
is not changed.

This patch also

* adjusts ModReserveMinusPriority so that it calls
  _FixPriority().
* adjusts circ/returns.pl so that it
  correctly detects transfers.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Reserves.pm
circ/returns.pl