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/GAPlugin.pm

    r15865 r15872  
    11###########################################################################
    22#
    3 # GAPlug.pm
     3# GAPlugin.pm
    44# A component of the Greenstone digital library software
    55# from the New Zealand Digital Library Project at the
     
    2929# to their DTD.
    3030
    31 package GAPlug;
    32 
    33 use XMLPlug;
     31package GAPlugin;
     32
     33use ReadXMLFile;
    3434
    3535use strict;
     
    3737
    3838sub BEGIN {
    39     @GAPlug::ISA = ('XMLPlug');
     39    @GAPlugin::ISA = ('ReadXMLFile');
    4040}
    4141
     
    4949my $arguments =
    5050    [ { 'name' => "process_exp",
    51     'desc' => "{BasPlug.process_exp}",
     51    'desc' => "{BasePlugin.process_exp}",
    5252    'type' => "regexp",
    5353    'deft' => &get_default_process_exp(),
    5454    'reqd' => "no" } ];
    5555
    56 my $options = { 'name'     => "GAPlug",
    57         'desc'     => "{GAPlug.desc}",
     56my $options = { 'name'     => "GAPlugin",
     57        'desc'     => "{GAPlugin.desc}",
    5858        'abstract' => "no",
    5959        'inherits' => "yes",
     
    6565    push(@$pluginlist, $class);
    6666
    67     if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
    68     if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
    69 
    70     my $self = new XMLPlug($pluginlist, $inputargs, $hashArgOptLists);
     67    push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});
     68    push(@{$hashArgOptLists->{"OptList"}},$options);
     69
     70    my $self = new ReadXMLFile($pluginlist, $inputargs, $hashArgOptLists);
    7171
    7272    $self->{'section'} = "";
     
    106106
    107107    my $outhandle = $self->{'outhandle'};
    108     print $outhandle "GAPlug: processing $self->{'file'}\n" if $self->{'verbosity'} > 1;
    109     print STDERR "<Processing n='$self->{'file'}' p='GAPlug'>\n" if $self->{'gli'};
     108    print $outhandle "GAPlugin: processing $self->{'file'}\n" if $self->{'verbosity'} > 1;
     109    print STDERR "<Processing n='$self->{'file'}' p='GAPlugin'>\n" if $self->{'gli'};
    110110
    111111}
Note: See TracChangeset for help on using the changeset viewer.