]> git.evergreen-ils.org Git - Evergreen.git/commit
Correct special winter handling in predictions
authorDan Wells <dbw2@calvin.edu>
Tue, 14 Feb 2012 16:09:41 +0000 (11:09 -0500)
committerMike Rylander <mrylander@gmail.com>
Mon, 20 Feb 2012 19:14:42 +0000 (14:14 -0500)
commit29eefd73c3a6926a23328d7fbc53ec4a55bf2d20
treecdc0fcc09195a3d06322b14fec4ff665dcb75de7
parent49d9cd14364d50f0ca1f309b6766d635952c6809
Correct special winter handling in predictions

The current serials prediction code has an exception for handling
cases where 'Winter 2010' is followed by 'Spring 2010' rather than
'Spring 2011'.  This exception assumed the more common case of a
combined subfield $y, e.g.:

$yps21,22,23,24

In doing so, it incorrectly handled less common cases where the $y
is listed separately:

$yps21$yps22$yps23$yps24

This change (with test data) ensures we only check the first $y
for our 'early winter' exception.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/test/mfhddata.txt