Ignore:
Timestamp:
2003-06-20T14:22:34+12:00 (21 years ago)
Author:
mdewsnip
Message:

Tidied up and structures (representing the options of the plugin) in preparation for removing the print_usage() routines.

File:
1 edited

Legend:

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

    r3508 r4744  
    3737    unshift (@INC, "$ENV{'GSDLHOME'}/perllib/cpan");
    3838}
     39
     40my $arguments =
     41    [ { 'name' => "metadata_mapping",
     42    'desc' => "Name of file that includes mapping details from MARC values to Greenstone metadata names. Defaults to 'marctodc.txt' found in the site's etc directory.",
     43    'type' => "string",
     44    'deft' => "marctodc.txt",
     45    'reqd' => "no" } ];
     46
     47my $options = { 'name'     => "MARCPlug",
     48        'desc'     => "",
     49        'inherits' => "Yes",
     50        'args'     => $arguments };
    3951
    4052use MARC::Record; 
     
    6779
    6880    $self->{'mm_file'} = $metadata_mapping; # relative to etc dir
     81
     82    # 14-05-02 To allow for proper inheritance of arguments - John Thompson
     83    my $option_list = $self->{'option_list'};
     84    push( @{$option_list}, $options );
    6985
    7086    return bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.