]> 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)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 18 Aug 2008 12:15:52 +0000 (07:15 -0500)
commit8b487806658a106979b188418c2ff03ede9f08df
tree8d0e8bc7c5232207d59d36b6093c3e48d602cc19
parent516ba77b8b9d8cd40453253eedd46ca749d026d1
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