]> 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:12:03 +0000 (09:12 -0500)
commitda75e94d037be0de04469b9140770a5201c1a8b5
treeb62dced2b14732ec0f9caadb1ac372a1f93e9efd
parent77256cc92f1d97484fd4e850f3942b6656582a5f
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