Changeset 4844


Ignore:
Timestamp:
2003-07-01T15:06:12+12:00 (21 years ago)
Author:
jrm21
Message:

database plugin doesn't take the "title_sub" option.

File:
1 edited

Legend:

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

    r4785 r4844  
    4949    'type' => "string",
    5050    'deft' => &get_default_process_exp(),
    51     'reqd' => "no" } ,
    52       { 'name' => "title_sub",
    53     'desc' => "Substitution expression to modify string stored as Title. Used by, for example, PSPlug to remove \"Page 1\" etc from text used as the title.",
    54     'type' => "string",
    55     'deft' => "",
    5651    'reqd' => "no" }];
    5752
     
    6156        'args'     => $arguments };
    6257
    63 #  sub print_usage {
    64 #      print STDERR "\n  usage: plugin DBPlug [options]\n\n";
    65 #      print STDERR "  options:\n";
    66 #      print STDERR "\n";
    67 #  }
    68 
    6958sub new {
    7059    my ($class) = @_;
     
    7463    push( @{$option_list}, $options );
    7564
    76     if (!parsargv::parse(\@_,
    77              q^title_sub/.*/^, \$self->{'title_sub'},
    78              "allow_extra_options")) {
    79     print STDERR "\nIncorrect options passed to DBPlug, check your collect.cfg configuration file\n";
    80     $self->print_txt_usage();
    81         die "\n";
    82     }
     65    # no plugin-specific options
     66#    if (!parsargv::parse(\@_, "allow_extra_options")) {
     67#   $self->print_txt_usage();
     68#   die "\n";
     69#    }
    8370
    8471
Note: See TracChangeset for help on using the changeset viewer.