Tracked down two bugs to get the right proximity into the hold copy map hold-prox
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 7 Dec 2012 00:05:59 +0000 (19:05 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 7 Dec 2012 00:05:59 +0000 (19:05 -0500)
commitc428445f2483af3303a0c36b3b0102c4290d8325
treec5ad881b6e6a278800e4234e9c125de4a7b723ae
parented854782e351997d5667c0e4dc7f689a694842d2
Tracked down two bugs to get the right proximity into the hold copy map

The first took a little while because I was learning the lay of the
land and needed Mike's help.  SELECTs in
action.hold_copy_calculated_proximity() didn't quite filter their
result rows hard enough.

The second was more subtle.  After fixing the first bug, all proximities
reaching the copy map after targeting were zero.  This came down to one
place where we mistook a parameter that really means 'copy location' to
mean 'hold pickup lib', and wound up measuring the length of a path
whose two points were both hold pickup lib (so always zero).  Finally
tracked down and repaired.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/asset.pm
Open-ILS/src/sql/Pg/090.schema.action.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.org_prox_adjust.sql