Changeset 30741

Show
Ignore:
Timestamp:
24.08.2016 11:15:20 (3 years ago)
Author:
kjdon
Message:

lucene is expecting the stored text file to be doc.xml. So output it as such, no matter what the input file was. usually the input will have been doc.xml, but it may not be, eg when using METS as archive format

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/lucene_passes.pl

    r29144 r30741  
    116116    if ($line =~ m/^<Doc.+file=\"(.*?)\".*>$/) { 
    117117        $output_filename = $1; 
    118          
     118        #change the filename to doc.xml, keeping any path 
     119        $output_filename = &util::filename_head($output_filename); 
     120        $output_filename = &util::filename_cat($output_filename, "doc.xml"); 
    119121    } 
    120122