Fix proximity adjustment calculator
authorMike Rylander <mrylander@gmail.com>
Thu, 16 Jan 2014 18:58:12 +0000 (13:58 -0500)
committerMike Rylander <mrylander@gmail.com>
Thu, 16 Jan 2014 20:24:03 +0000 (15:24 -0500)
commita78bd1b91e5627a229658d71378157741b63b480
treea17f4a1d2341595dd81e511b3877b285420e02a9
parent755547739123fa42676d9f6838de807c3875880b
Fix proximity adjustment calculator

The canonical use case for proximity adjustment is to use it broadly
to effect the local proximity of items within a particular area, in
a like manner, across many parts of the org tree.  However, in cases
where it is lightly used, or used with non-overlapping criteria columns,
there are cases where the adjustment will spread beyond its intended
range of influence.

The changes here create a much stricter and correct test for rule
matching, which will end in the correct choice of rules in all cases.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/090.schema.action.sql