Changeset 22317


Ignore:
Timestamp:
2010-06-28T15:26:26+12:00 (12 years ago)
Author:
kjdon
Message:

metadata extracted when exploding or when processing a file may have ex. in some cases. Need to remove this before writing to metadata.xml file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/explode_metadata_database.pl

    r20943 r22317  
    411411    foreach my $pair (@$record_metadata) {
    412412        my ($field, $value) = (@$pair);
    413 
     413        $field =~ s/^ex\.//; # remove ex. if present
    414414        $value =~ s/\\\\/\\/g;
    415415        my $document_file_full;
     
    509509    next if ($field =~ /\^all$/);  # ISISPlug specific!
    510510
     511    # strip off any ex.
     512    $field =~ s/^ex\.//;
     513
    511514    # Square brackets in metadata values need to be escaped so they don't confuse Greenstone/GLI
    512515    $value =~ s/\[/&\#091;/g;
Note: See TracChangeset for help on using the changeset viewer.