- Timestamp:
- 2000-07-13T10:21:53+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New_Config_Format-branch/gsdl/perllib/plugins/IndexPlug.pm
r809 r1279 54 54 use plugin; 55 55 use BasPlug; 56 use lang;57 56 use doc; 58 57 use util; … … 63 62 } 64 63 64 use strict; 65 65 66 sub new { 66 67 my ($class) = @_; 67 $self = new BasPlug ();68 my $self = new BasPlug ("IndexPlug", @_); 68 69 69 70 return bless $self, $class; … … 76 77 return 1; 77 78 } 78 79 79 80 80 # return number of files processed, undef if can't process … … 104 104 # process each document 105 105 my $count = 0; 106 foreach $docfile (keys (%$list)) {106 foreach my $docfile (keys (%$list)) { 107 107 last if ($maxdocs != -1 && $count >= $maxdocs); 108 108 $metadata = {}; # at present we can do this as metadata … … 113 113 # note that $list->{$docfile} is an array reference 114 114 if ($docfile !~ /key:/i) { 115 my $i = 0; 115 116 for ($i = 0; $i < scalar (@{$list->{$docfile}}); $i ++) { 116 117 if ($list->{$docfile}->[$i] =~ /^<([^>]+)>(.+)$/) {
Note:
See TracChangeset
for help on using the changeset viewer.