Changeset 18301


Ignore:
Timestamp:
2009-01-05T17:40:19+13:00 (15 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 "]".

File:
1 edited

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!
Note: See TracChangeset for help on using the changeset viewer.