MFHD compression fails with pattern-less captions user/dbwells/mfhd_compress_pattern_check
authorDan Wells <dbw2@calvin.edu>
Tue, 27 Sep 2011 16:22:38 +0000 (12:22 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 27 Sep 2011 16:22:38 +0000 (12:22 -0400)
commit1aaade025ca99f72e26885f518c971d27eaa3b30
tree1ed7bdd42038c92b4f94bf52ae21d27a3d6d90db
parent250ec72283a24e4aec4f672f4bbc51dfa2b7e211
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>
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm