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:37:47 +0000 (15:37 -0400)
commite9cd94c0831322cae41b16b6b0a08565fe3ea7ff
treeef2eab1242cb589b756c9bf101a9b66f1c3873c7
parentafe2848074bd8c3979d6ec25f40c6dd50123e243
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/lib/OpenILS/Utils/MFHD.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm