Ignore:
Timestamp:
2005-05-10T16:55:00+12:00 (19 years ago)
Author:
kjdon
Message:

fixed up maxdocs - now pass an extra parameter to the read function

File:
1 edited

Legend:

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

    r9703 r9853  
    190190sub read {
    191191    my $self = shift (@_);
    192     my ($pluginfo, $base_dir, $file, $in_metadata, $processor, $maxdocs, $gli) = @_;
     192    my ($pluginfo, $base_dir, $file, $in_metadata, $processor, $maxdocs, $total_count, $gli) = @_;
    193193   
    194194    my $outhandle = $self->{'outhandle'};
     
    360360    my $subfile = $dir[$i];
    361361    my $this_file_base_dir = $base_dir;
    362     last if ($maxdocs != -1 && $count >= $maxdocs);
     362    last if ($maxdocs != -1 && ($count + $total_count) >= $maxdocs);
    363363    next if ($subfile =~ /^\.\.?$/);
    364364    next if ($read_metadata_files && $subfile =~ /metadata\.xml$/);
     
    419419    $count += &plugin::read ($pluginfo, $this_file_base_dir,
    420420                 &util::filename_cat($file, $subfile),
    421                  $out_metadata, $processor, $maxdocs, $gli);
     421                 $out_metadata, $processor, $maxdocs, ($total_count + $count), $gli);
    422422    }
    423423
Note: See TracChangeset for help on using the changeset viewer.