Changeset 14233 for gsdl


Ignore:
Timestamp:
2007-07-09T11:57:10+12:00 (17 years ago)
Author:
xiao
Message:

in sub extract_metadata, when reading the value of the argument metadata_fields (may be a list of comma seperated values) from collect.cfg, trim the whitespaces around the comma to make them proper and valid metadata names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/HTMLPlug.pm

    r14089 r14233  
    11871187
    11881188    foreach my $field (split /,/, $self->{'metadata_fields'}) {
     1189        $field =~ s/^\s+//; # remove leading whitespace
     1190        $field =~ s/\s+$//; # remove trailing whitespace
     1191
    11891192    # support tag<tagname>
    11901193    if ($field =~ /^(.*?)<(.*?)>$/) {
Note: See TracChangeset for help on using the changeset viewer.