Ignore:
Timestamp:
1999-06-30T15:35:07+12:00 (25 years ago)
Author:
sjboddie
Message:
  • removed old infodb stuff
  • changed the way classifiers work
  • added maxdocs and allclassifications options
  • no longer get doctype from collect.cfg but instead set it directly in plugins that don't use the default
File:
1 edited

Legend:

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

    r171 r315  
    3232
    3333sub read {
    34     my ($pluginfo, $base_dir, $file, $metadata, $processor) = @_;
     34    my ($pluginfo, $base_dir, $file, $metadata, $processor, $maxdocs) = @_;
     35
     36    my $rv = 0;
    3537
    3638    # pass this file by each of the plugins in turn until one
    3739    # is found which will process it
    3840    foreach $plugobj (@$pluginfo) {
    39     if ($plugobj->read($pluginfo, $base_dir, $file,
    40                $metadata, $processor)) {
    41         return;
    42     }
     41    $rv = $plugobj->read($pluginfo, $base_dir, $file,
     42                 $metadata, $processor, $maxdocs);
     43    return $rv if defined $rv;
    4344    }
    44 
     45   
    4546    if ($processor->{'verbosity'} >= 2) {
    4647    print STDERR "WARNING - no plugin could process " .
    4748        &util::filename_cat($base_dir,$file) . "\n";
    4849    }
     50    return 0;
    4951}
    5052
Note: See TracChangeset for help on using the changeset viewer.