Changeset 15089

Show
Ignore:
Timestamp:
18.03.2008 11:35:32 (11 years ago)
Author:
anna
Message:

Call Chinese character segmentation when handling metadata values from metadata.xml, if separate_cjk is specified.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/metadatautil.pm

    r15004 r15089  
    117117    my ($plug,$mname,$mvalue,$md_accumulate) = @_; 
    118118 
     119    if ($plug->{'separate_cjk'}) { 
     120    # segment the Chinese words 
     121    $mvalue = &cnseg::segment($mvalue); 
     122    } 
     123 
    119124    if (defined $plug->{'saved_metadata'}->{$mname}) { 
    120125    if ($md_accumulate) {