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:09 +0000 (14:14 -0500)
commit451db56e10bd402cbb663ca18cc3d59ba6858705
treed270e2cec84f300e79ca17119b0e654f435c5358
parentc428b52fd33a231aac0959279c07a1188576bfd3
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