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:51 +0000 (15:24 -0500)
commit70cde9a407f47234c424d96c8db289c45b4503a2
tree8c39ae94644fbe8a042581468c97bbf7a9ab68cd
parent7a8348216405d4e9c74aa2b3996c74f98edd4efe
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