Ignore:
Timestamp:
2008-06-05T09:29:32+12:00 (16 years ago)
Author:
kjdon
Message:

plugin overhaul: plugins renamed to xxPlugin, and in some cases the names are made more sensible. They now use the new base plugins. Hopefully we have better code reuse. Some of the plugins still need work done as I didn't want to spend another month doing this before committing it. Alos, I haven't really tested anything yet...

File:
1 edited

Legend:

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

    r15865 r15872  
    11###########################################################################
    22#
    3 # IndexPlug.pm --
     3# IndexPlugin.pm --
    44# A component of the Greenstone digital library software
    55# from the New Zealand Digital Library Project at the
     
    5050# named 'Subject'.
    5151
    52 # 12/05/02 Added usage datastructure - John Thompson
    53 
    54 package IndexPlug;
     52package IndexPlugin;
    5553
    5654use plugin;
    57 use BasPlug;
     55use BasePlugin;
    5856use doc;
    5957use util;
     
    6462
    6563sub BEGIN {
    66     @IndexPlug::ISA = ('BasPlug');
     64    @IndexPlugin::ISA = ('BasePlugin');
    6765}
    6866
    69 my $arguments = [
    70          ];
     67#my $arguments = [
     68#        ];
    7169
    72 my $options = { 'name'     => "IndexPlug",
    73         'desc'     => "{IndexPlug.desc}",
     70my $options = { 'name'     => "IndexPlugin",
     71        'desc'     => "{IndexPlugin.desc}",
    7472        'abstract' => "no",
    7573        'inherits' => "yes" };
     
    8078    push(@$pluginlist, $class);
    8179
    82     if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
    83     if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     80    #push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});
     81    push(@{$hashArgOptLists->{"OptList"}},$options);
    8482
    85     my $self = new BasPlug($pluginlist, $inputargs, $hashArgOptLists);
     83    my $self = new BasePlugin($pluginlist, $inputargs, $hashArgOptLists);
    8684
    8785    return bless $self, $class;
     
    110108
    111109    # found an index.txt file
    112     print STDERR "<Processing n='$file' p='IndexPlug'>\n" if ($gli);
    113     print $outhandle "IndexPlug: processing $indexfile\n";
     110    print STDERR "<Processing n='$file' p='IndexPlugin'>\n" if ($gli);
     111    print $outhandle "IndexPlugin: processing $indexfile\n";
    114112
    115113    # read in the index.txt
Note: See TracChangeset for help on using the changeset viewer.