Ignore:
Timestamp:
2003-12-19T15:16:29+13:00 (20 years ago)
Author:
jmt12
Message:

When -gli argument is provided to calling script these modules will now output gli specific, non-language nor verbosity specific, messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/RecPlug.pm

    r5680 r6332  
    146146    if (!parsargv::parse(\@_,
    147147             q^use_metadata_files^, \$self->{'use_metadata_files'},
    148              q^show_progress^, \$self->{'show_progress'}, # Undocumented (for GLI)
    149148             "allow_extra_options")) {
    150149    print STDERR "\nRecPlug uses an incorrect option.\n";
     
    192191sub read {
    193192    my $self = shift (@_);
    194     my ($pluginfo, $base_dir, $file, $in_metadata, $processor, $maxdocs) = @_;
     193    my ($pluginfo, $base_dir, $file, $in_metadata, $processor, $maxdocs, $gli) = @_;
    195194   
    196195    my $outhandle = $self->{'outhandle'};
     
    232231    my (@dir, $subfile);
    233232    my $count = 0;
     233   
    234234    print $outhandle "RecPlug: getting directory $dirname\n" if ($verbosity);
    235235   
     
    308308    # Recursively read each $subfile
    309309    print $outhandle "RecPlug recurring: $subfile\n" if ($verbosity > 2);
    310     print $outhandle "RecPlug - $subfile\n" if ($self->{'show_progress'});
    311310
    312311    $count += &plugin::read ($pluginfo, $base_dir,
    313312                 &util::filename_cat($file, $subfile),
    314                  $out_metadata, $processor, $maxdocs);
     313                 $out_metadata, $processor, $maxdocs, $gli);
    315314    }
    316315    return $count;
Note: See TracChangeset for help on using the changeset viewer.