Show
Ignore:
Timestamp:
08.07.2019 18:15:10 (5 months ago)
Author:
ak19
Message:

Better regex for determining if processor_mode is a legitimate textmode. And added the clarifying comment suggested by Dr Bainbridge

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/doc.pm

    r33302 r33312  
    11851185        # So don't check for exact string match 
    11861186 
    1187         if($doc::cmd_line_mode eq "buildcol" && $doc::processor_mode =~ m/text/) {# && $doc::processor_mode !~ m/infodb/) # if dummy pass important 
     1187        if($doc::cmd_line_mode eq "buildcol" && $doc::processor_mode =~ m/^text/) { # currently known text processor_modes: 
     1188                                                                                    # text, textreindex, possibly textdelete (see ArchivesInfPlugin.pm::read() for last 2). 
     1189                        # OR: ..."buildcol" && $doc::processor_mode !~ m/infodb$/) # if dummy pass important 
    11881190         
    11891191        ###print STDERR "GPS.mapOverlay before decoding, val = " . $value . "\n";