Relax MFHD subfield 'a' requirement for caption/patterns user/dbwells/serials_relax_mfhd_a_requirement
authorDan Wells <dbw2@calvin.edu>
Thu, 3 Oct 2013 21:54:03 +0000 (17:54 -0400)
committerDan Wells <dbw2@calvin.edu>
Thu, 3 Oct 2013 21:54:03 +0000 (17:54 -0400)
commitabf3076668255c8129c8562203ca12335dfa185c
tree0655a806f8e37f409888b33089f3322063bcc6a0
parentba743246932dd7586d43225f8efeeabcaac9ba33
Relax MFHD subfield 'a' requirement for caption/patterns

If going by the book, every caption/pattern field would have a
subfield 'a', since the data from subfield 'i' would be moved to
'a' if 'a' was empty.  Since that is arcane, and our own wizards
used to bend this rule, let's make some minor adjustments to our
expectations:

1) When calculating date progression, don't expect there to be an 'a'
subfield which needs to be "carried" into.
2) When determining whether a field is 'open-ended', check the first
availabile enum/chron subfield rather than hard-coding the check to
'a'.

These changes do not affect the display formatters, so strings
generated from 'a'-less caption/pattern combos are not exactly right,
but they suffice.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Holding.pm