Ignore:
Timestamp:
2004-03-15T11:47:57+13:00 (20 years ago)
Author:
davidb
Message:

Code add to remove white space from around metadata values
that takes account of line breaks in XML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/AZCompactList.pm

    r6985 r7042  
    266266    foreach $metavalue (@$metavalues)
    267267    {
     268        # Tidy up use of white space in metavalue for classifying
     269        $metavalue =~ s/^\s*//s;
     270        $metavalue =~ s/\s*$//s;
     271        $metavalue =~ s/\n/ /s;
     272        $metavalue =~ s/\s{2,}/ /s;
     273
    268274        # if this document doesn't contain the metadata element we're
    269275        # sorting by we won't include it in this classification
Note: See TracChangeset for help on using the changeset viewer.