Changeset 3540 for trunk/gsdl/perllib/classify/DateList.pm
- Timestamp:
- 2002-11-18T17:43:56+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/DateList.pm
r2916 r3540 33 33 # jrm21 - added option "bymonth", which splits by year and month. 34 34 35 # 12/05/02 Added usage datastructure - John Thompson 36 35 37 package DateList; 36 38 … … 41 43 @ISA = ('BasClas'); 42 44 } 45 46 my $arguments = 47 [ { 'name' => "bymonth", 48 'desc' => "Classify by year and month.", 49 'type' => "flag", 50 'reqd' => "no" } 51 ]; 52 53 my $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 }; 43 58 44 59 sub print_usage { … … 48 63 -bymonth [or bymonth=1] Classify by year and month 49 64 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. 54 71 "; 55 72 } … … 58 75 my $class = shift (@_); 59 76 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 ); 60 81 61 82 $self->{'list'} = {};
Note:
See TracChangeset
for help on using the changeset viewer.