]> 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:15:19 +0000 (14:15 -0500)
commit4702fc69f66f941ff65c3d11032be145f9c51b9b
tree8673f87e8c85551e8b774937983430680ac06f34
parent2b807e13f408dc09262b1cb84a96c31d9fb7385a
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/OpenILS/Utils/MFHD/Caption.pm
Open-ILS/src/perlmods/OpenILS/Utils/MFHD/test/mfhddata.txt