Ignore:
Timestamp:
2005-07-06T15:27:45+12:00 (19 years ago)
Author:
kjdon
Message:

Jeffrey's new parsing modifications, committed approx 6 July, 15.16

File:
1 edited

Legend:

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

    r6968 r10218  
    4242
    4343sub new {
    44     my $class = shift (@_);
    45     my $self = new BasClas($class, @_);
    46  
    47     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    48     my $option_list = $self->{'option_list'};
    49     push( @{$option_list}, $options ); 
     44    my ($class) = shift (@_);
     45    my ($classifierslist,$inputargs,$hashArgOptLists) = @_;
     46    push(@$classifierslist, $class);
    5047
    51     if ($self->{'info_only'}) {
    52     # created from classinfo.pl - don't need to parse the arguments
    53     return bless $self, $class;
    54     }
     48    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     49    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
    5550
    56     # classifier information
    57     $self->{'collection'} = $ENV{'GSDLCOLLECTION'};
     51    my $self = (defined $hashArgOptLists)? new BasClas($classifierslist,$inputargs,$hashArgOptLists): new BasClas($classifierslist,$inputargs);
    5852
    59     $self->{'title'} = "Browse";
     53    # Manually set $self parameters.
     54    $self->{'collection'} = $ENV{'GSDLCOLLECTION'}; # classifier information
     55    $self->{'buttonname'} = "Browse";
    6056
    6157    return bless $self, $class;
     
    8076    # use to create macros when the Phind classifier document is displayed.
    8177    my %classifyinfo = ('thistype'=>'Invisible',
    82                         'Title'=>$self->{'title'},
     78                        'Title'=>$self->{'buttonname'},
    8379            'contains'=>[]);
    8480   
Note: See TracChangeset for help on using the changeset viewer.