Show
Ignore:
Timestamp:
07.10.2016 16:38:10 (3 years ago)
Author:
ak19
Message:

Unless new line endings (particularly carriage return characters missing line feeds) are removed from the end of the ex.Title metadata, the ex.Title is not displayed in GLI's enrich panel, even though it's stored (with the carriage return) in doc.xml.

Files:
1 modified

Legend:

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

    r28563 r30857  
    112112    } 
    113113    $title =~ /^\s*([^\n]*)/s; $title=$1; 
     114    $title =~ s/\t/ /g; 
     115    $title =~ s/\r?\n?$//s; # remove any carriage returns and/or line feeds at line end,  
     116       # else the metadata won't appear in GLI even though it will appear in doc.xml 
    114117    if (length($title) > 100) { 
    115118    $title = substr ($title, 0, 100) . "...";