Ignore:
Timestamp:
2004-03-08T15:39:43+13:00 (20 years ago)
Author:
kjdon
Message:

all classifiers now use BasClas.buttonname for their buttonname option description.
removed the old print_usage methods and old usage notes.
added in a test for $self->{'info_only'} in new(): if this is set, don't try and parse the arguments cos we are only running classinfo.pl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/AZSectionList.pm

    r6940 r6968  
    5151    'reqd' => "yes" },
    5252      { 'name' => "buttonname",
    53     'desc' => "{AZList.buttonname}",
     53    'desc' => "{BasClas.buttonname}",
    5454    'type' => "string",
    5555    'deft' => "{BasClas.metadata.deft}",
     
    6262        'args'     => $arguments };
    6363
    64 #  sub print_usage {
    65 #      print STDERR "
    66 #    usage: classify AZSectionList [options]
    67 #    options:
    68 
    69 #    -metadata X    (required) Metadata field used for classification,
    70 #                    list will be sorted by this element.
    71 
    72 #    -buttonname X  (OPTIONAL) Title field for this classification.
    73 #                    if not included title field will be Metaname.
    74 
    75 #    -removeprefix regex A prefix to ignore in the Metadata values
    76 #                        for the field when sorting.
    77 #  This is very similar to AZList except it sorts by section level metadata
    78 #  (excluding the top level) instead of just top level metadata.
    79 #  ";
    80 #  }
    8164
    8265sub new {
     
    8770    my $option_list = $self->{'option_list'};
    8871    push( @{$option_list}, $options );
     72   
     73    #if ($self->{'info_only'}) {
     74    # created from classinfo.pl - don't need to parse the arguments
     75    #   return bless $self, $class;
     76    #}
    8977
    9078    return bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.