]> 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)
committerBen Shum <bshum@biblio.org>
Fri, 4 Oct 2013 17:45:02 +0000 (13:45 -0400)
commita420b0ea38e329570b4df6252ce384fa241f2ea7
tree98e5de9887786fb9be8b58c5f1729875bdc517e5
parentebb94c3fd23fbe79f7d1b991431cdc485e2cba00
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: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Holding.pm