Changeset 81


Ignore:
Timestamp:
1998-12-18T13:40:41+13:00 (25 years ago)
Author:
sjboddie
Message:

fixed minor bug in create_index_mapping()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/mgbuilder.pm

    r69 r81  
    203203    # next comes a processed version of the subcollection if there is one.
    204204    # the processed version contains the first character and the next
    205     # consonant if there's only one field, other wise the first character
     205    # consonant if there's only one field, otherwise the first character
    206206    # of the first two fields
    207207    if (defined ($subcollection) && $subcollection =~ /\w/) {
     
    212212        $dirname .= join("", @fields);
    213213        } else {
    214         $subcollection =~ s/^(.).*?([bcdfghjklmnpqrstvwxyz]).*$/$1$2/i;
     214        $subcollection =~ s/^(.).*?([bcdfghjklmnpqrstvwxyz]?).*$/$1$2/i;
    215215        $dirname .= $subcollection;
    216216        }
Note: See TracChangeset for help on using the changeset viewer.