Changeset 18301

Show
Ignore:
Timestamp:
05.01.2009 17:40:19 (10 years ago)
Author:
mdewsnip
Message:

Fixed bug regarding square brackets in exploded metadata values. These were left as '/' in the metadata.xml files, meaning that they couldn't be edited in the GLI, and wouldn't display in Greenstone. Now these are converted to "[" and "]".

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/explode_metadata_database.pl

    r17598 r18301  
    455455    next if ($field =~ /\^all$/);  # ISISPlug specific! 
    456456 
     457    # Square brackets in metadata values need to be escaped so they don't confuse Greenstone/GLI 
     458    $value =~ s/\[/&\#091;/g; 
     459    $value =~ s/\]/&\#093;/g; 
     460 
    457461    # Make $value XML-safe 
    458462    $value =~ s/&/&/g;  # May mess up existing entities!