Changeset 10190


Ignore:
Timestamp:
2005-06-28T14:51:36+12:00 (19 years ago)
Author:
kjdon
Message:

reversed the order, in format_string_en, of the 'remove everything not alphanum' and 'remove leading articles' (which depends on word breaks which have been removed in the first line

File:
1 edited

Legend:

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

    r9956 r10190  
    5757    }
    5858    }
    59 
     59   
    6060    return $metavalue;
    6161}
     
    7070sub format_string_en {
    7171    my $stringref = shift;
    72 
    7372    $$stringref = lc($$stringref);
    7473    $$stringref =~ s/&[^\;]+\;//g; # html entities
     74    $$stringref =~ s/^\s*(the|a|an)\b//; # articles
    7575    $$stringref =~ s/[^[:alnum:]]//g;
    76     $$stringref =~ s/^\s*(the|a|an)\b//; # articles
    7776    $$stringref =~ s/\s+/ /g;
    7877    $$stringref =~ s/^\s+//;
Note: See TracChangeset for help on using the changeset viewer.