Changeset 9853 for trunk/gsdl/perllib/plugins/RecPlug.pm
- Timestamp:
- 2005-05-10T16:55:00+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/RecPlug.pm
r9703 r9853 190 190 sub read { 191 191 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) = @_; 193 193 194 194 my $outhandle = $self->{'outhandle'}; … … 360 360 my $subfile = $dir[$i]; 361 361 my $this_file_base_dir = $base_dir; 362 last if ($maxdocs != -1 && $count>= $maxdocs);362 last if ($maxdocs != -1 && ($count + $total_count) >= $maxdocs); 363 363 next if ($subfile =~ /^\.\.?$/); 364 364 next if ($read_metadata_files && $subfile =~ /metadata\.xml$/); … … 419 419 $count += &plugin::read ($pluginfo, $this_file_base_dir, 420 420 &util::filename_cat($file, $subfile), 421 $out_metadata, $processor, $maxdocs, $gli);421 $out_metadata, $processor, $maxdocs, ($total_count + $count), $gli); 422 422 } 423 423
Note:
See TracChangeset
for help on using the changeset viewer.