]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1664715: Hold ratio template ignores some copies
authorMike Rylander <mrylander@gmail.com>
Tue, 14 Feb 2017 20:59:53 +0000 (15:59 -0500)
committerKathy Lussier <klussier@masslnc.org>
Mon, 24 Jul 2017 14:46:45 +0000 (10:46 -0400)
commit5ed2320b3f78a4f537f00a384ddb6873e48b6dfa
tree8d476546fb6c21c2a7166e5d5af2d8a8a6bfa796
parent12e8af8bf4209fb8e99382294b3badf97ba91c79
LP#1664715: Hold ratio template ignores some copies

The relatively new report template "Hold/Copy Ratio per Bib and Pickup Library
(and Descendants)" only includes copies that are at locations that are
actually pickup libraries of holds. For instance, if you have two branches (A
and B) in a system, each with 10 copies attached to a bib, but a hold only at
branch A, the ratio calculated at the system level sees 10 copies rather than
twenty. This has the effect of inflating the hold side of the hold/copy ratio.

The SQL definition is adjusted here to count copies across the entire branch
of the org tree per bib, rather than through a join that restricts to those
branches that are pickup libraries for a relevant hold.

Upgrade note: Report templates using the Hold/Copy Ratio at Pickup Library
and Descendants data source will need to be re-created to benefit from this
bug fix.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/examples/fm_IDL.xml