Ignore:
Timestamp:
2002-11-18T17:43:56+13:00 (21 years ago)
Author:
kjdon
Message:

added John T's changes into CVS - added info to enable retrieval of usage info in xml

File:
1 edited

Legend:

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

    r3400 r3540  
    2424###########################################################################
    2525
     26# 12/05/02 Added usage datastructure - John Thompson
     27
    2628package WordPlug;
    2729
     
    3234}
    3335
     36my $arguments = [ { 'name' => "process_exp",
     37                          'desc' => "A perl regular expression to match against filenames. Matching filenames will be processed by this plugin. Each plugin has its own default process_exp. e.g HTMLPlug defaults to '(?i)\.html?\$' i.e. all documents ending in .htm or .html (case-insensitive).",
     38                          'type' => "string",
     39                          'deft' => q^(?i)\.doc$^,
     40                          'reqd' => "no" } ];
     41
     42my $options = { 'name'     => "WordPlug",
     43                 'desc'     => "",
     44                     'inherits' => "yes",
     45                     'args'     => $arguments };
     46
    3447sub new {
    3548    my $class = shift (@_);
    3649
    3750    my $self = new ConvertToPlug ($class, @_);
     51
     52     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
     53     my $option_list = $self->{'option_list'};
     54     push( @{$option_list}, $options );
    3855
    3956    # wvWare will always produce html files encoded as utf-8
     
    5774
    5875    my $outhandle = $self->{'outhandle'};   
    59     print $outhandle "WordPlug: passing $_[3] on to $self->{'converted_to'}Plug\n"
     76    print $outhandle "WordPlug: passing $_[3] on to $self->{'converted_to'}Plug\n" 
    6077    if $self->{'verbosity'} > 1;
    6178   
Note: See TracChangeset for help on using the changeset viewer.