Changeset 22317

Show
Ignore:
Timestamp:
28.06.2010 15:26:26 (9 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

Files:
1 modified

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;