Fix logic in get_compressed_holdings()
authorDan Wells <dbw2@calvin.edu>
Wed, 8 May 2013 19:09:41 +0000 (15:09 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 9 Aug 2013 15:21:55 +0000 (11:21 -0400)
commit22c4108b384ca0f1d6dc9d75bcef92b4fb6e8e12
treee115fecf4cae977b5cf3da3ac6143ae16b29e11b
parent2f246e5268f430d8f8855f2c63874ddbb62d57d5
Fix logic in get_compressed_holdings()

[This commit has been squashed for merging. LFW]

  * This commit rearranges some of the logic branches to protect
    against an unusual case of having two holding statements with
    the same start value, but one being open-ended and one not.

  * The logic in get_combined_holdings() was a little sloppy and
    repeated some steps unnecessarily.  This cleans things up.

    See the test case in the previous commit for more clarity.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD.pm