LP#1664715: Hold ratio template ignores some copies user/stompro/lp1664715-hold-ratio-fix-signoff
authorMike Rylander <mrylander@gmail.com>
Tue, 14 Feb 2017 20:59:53 +0000 (15:59 -0500)
committerJosh Stompro <stomproj@larl.org>
Fri, 7 Jul 2017 14:28:03 +0000 (09:28 -0500)
commit33b6dd5d38ea4738d7e71f5f14c9b7b22dfab0a8
tree33d8f1cdf10163ae735cc1daf7965054b810b1ed
parent3a61058ffa252781d6992aae3a5b7dbc58f2716a
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.

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