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/classify/DateList.pm

    r2916 r3540  
    3333# jrm21 - added option "bymonth", which splits by year and month.
    3434
     35# 12/05/02 Added usage datastructure - John Thompson
     36
    3537package DateList;
    3638
     
    4143    @ISA = ('BasClas');
    4244}
     45
     46my $arguments =
     47[ {     'name' => "bymonth",
     48    'desc' => "Classify by year and month.",
     49    'type' => "flag",
     50    'reqd' => "no" }
     51];
     52
     53my $options =
     54{   'name'     => "DateList",
     55    'desc'     => "Classifier plugin for sorting by date. Always sorts by 'Date' metadata. Date is assumed to be in the form yyyymmdd.",
     56    'inherits' => "Yes",
     57    'args'     => $arguments };
    4358
    4459sub print_usage {
     
    4863    -bymonth  [or bymonth=1]    Classify by year and month
    4964
    50   Classifier plugin for sorting by date, and assumes that 'Date' metadata
    51   exists. Date is assumed to be in the form yyyymmdd (all digits).
    52   By default dates are classified by year.
    53 
     65    Classifier plugin for sorting by date.
     66    Always sorts by 'Date' metadata.
     67    Date is assumed to be in the form yyyymmdd (all digits).
     68    By default dates are split by year - this should change.
     69
     70    Any errors are Dana's problem.
    5471";
    5572}
     
    5875    my $class = shift (@_);
    5976    my $self = new BasClas($class, @_);
     77
     78     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
     79     my $option_list = $self->{'option_list'};
     80     push( @{$option_list}, $options );
    6081
    6182    $self->{'list'} = {};
Note: See TracChangeset for help on using the changeset viewer.