]> git.evergreen-ils.org Git - Evergreen.git/commit
Relax MFHD subfield 'a' requirement for caption/patterns
authorDan Wells <dbw2@calvin.edu>
Thu, 3 Oct 2013 21:54:03 +0000 (17:54 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 22 Nov 2013 14:11:35 +0000 (09:11 -0500)
commit72d3d9a11171975ee4c4b3cf23bc99edc102eba8
tree21a568c29fa6b4370219b80007940b17f3a60cb4
parent9d1320eb454230bc0091efd5b2f1b64b2e5fb16c
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>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Holding.pm