Changeset 23829

Show
Ignore:
Timestamp:
28.03.2011 13:47:46 (8 years ago)
Author:
ak19
Message:

Display string for Source also needs to be in normalised composed form, since all display strings including doc text are to be stored in that form (so searching is also consistent).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/BasePlugin.pm

    r23759 r23829  
    971971         
    972972    # Source is the UTF8 display name - not necessarily the name of the file on the system 
     973    if ($ENV{'GSDLOS'} =~ m/^darwin$/i) { 
     974    # on Darwin want all display strings to be in composed form, then can search on that 
     975    $url_encoded_filename = normalize('C', $url_encoded_filename); # Normalisation Form 'C' (composition) 
     976    } 
    973977    $doc_obj->set_utf8_metadata_element($this_section, "Source", $url_encoded_filename);  
    974978