MFHD compression fails with pattern-less captions
authorDan Wells <dbw2@calvin.edu>
Tue, 27 Sep 2011 16:22:38 +0000 (12:22 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 28 Sep 2011 19:38:06 +0000 (15:38 -0400)
commitdb9458ed487219cfe028783f751440ebcc9477b4
treebfe788cdcd951b9671d2d18891cebbda599e9784
parent9f8afcec24a50ee743823e96d1dd68597fa1fdef
MFHD compression fails with pattern-less captions

The current code assumes that if you try to compress a range of
MFHD holdings, you actually have the necessary pattern information.
This commit introduces a very basic check to avoid the most common
failure case.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/OpenILS/Utils/MFHD.pm
Open-ILS/src/perlmods/OpenILS/Utils/MFHD/Caption.pm