From | Don Gourley |
Date | Wed, 15 Oct 2003 08:45:07 -0400 (EDT) |
Subject | [greenstone-devel] bug in AZList.pm |
I've found what I think is a bug in AZList.pm. It seems that
if the last un-compacted subsection of a list is a letter (not 0-9) and has more than 30 entries in it (ie. > $max), then the compactlist() subroutine will add an empty list of OIDs to it using the $currentlastletter from the previous compacted section. This results in an incorrect last label in the HList as described in a discussion on greenstone-users under the subject "Title list W-P?". My fix for this was to put the epilogue code in compactlist()
# add final OIDs to last sub-classification if there aren't many otherwise
return $compactedhash; Many thanks to Stephen DeGabrielle for showing me how to debug
Regards,
|