bug 2522 [3/3]: populate hold_fill_targets
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 15 Aug 2008 01:59:51 +0000 (20:59 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 18 Aug 2008 12:15:49 +0000 (07:15 -0500)
commit516ba77b8b9d8cd40453253eedd46ca749d026d1
treef328435887cb41906a06e521dac3615e45ee9407
parentc6e2bcf67d92bbf3297bcf3fbcd43bfd50f528bb
bug 2522 [3/3]: populate hold_fill_targets

This batch job now automatically populates the
holds request targeting table hold_fill_targets.

This patch is essentially a revamp of the job,
and includes fixes for the following bugs:

2281 (holds queue report including unavailable items)
2331 (holds queue report not working with item-level
      holds)
2332 (holds queue script should attempt to fill
      many requests as possible).

Several functions in this batch job are candidates
for being moved to C4::Reserves:

GetBibsWithPendingHoldRequests()
GetPendingHoldRequestsForBib()
GetItemsAvailableToFillHoldRequestsForBib()
MapItemsToHoldRequests()

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
misc/cronjobs/holds/build_holds_queue.pl