Ignore:
Timestamp:
2000-07-13T10:21:53+12:00 (24 years ago)
Author:
sjboddie
Message:

merged changes to trunk into New_Config_Format branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/New_Config_Format-branch/gsdl/perllib/plugins/IndexPlug.pm

    r809 r1279  
    5454use plugin;
    5555use BasPlug;
    56 use lang;
    5756use doc;
    5857use util;
     
    6362}
    6463
     64use strict;
     65
    6566sub new {
    6667    my ($class) = @_;
    67     $self = new BasPlug ();
     68    my $self = new BasPlug ("IndexPlug", @_);
    6869
    6970    return bless $self, $class;
     
    7677    return 1;
    7778}
    78 
    7979
    8080# return number of files processed, undef if can't process
     
    104104    # process each document
    105105    my $count = 0;
    106     foreach $docfile (keys (%$list)) {
     106    foreach my $docfile (keys (%$list)) {
    107107    last if ($maxdocs != -1 && $count >= $maxdocs);
    108108    $metadata = {}; # at present we can do this as metadata
     
    113113    # note that $list->{$docfile} is an array reference
    114114    if ($docfile !~ /key:/i) {
     115        my $i = 0;
    115116        for ($i = 0; $i < scalar (@{$list->{$docfile}}); $i ++) {
    116117        if ($list->{$docfile}->[$i] =~ /^<([^>]+)>(.+)$/) {
Note: See TracChangeset for help on using the changeset viewer.