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/AllList.pm

    r8716 r10218  
    1515
    1616sub new {
    17     my $class = shift (@_);
    18     my $self  = new BasClas($class, @_);
     17    my ($class) = shift (@_);
     18    my ($classifierslist,$inputargs,$hashArgOptLists) = @_;
     19    push(@$classifierslist, $class);
    1920
     21    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     22    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     23
     24    my $self = (defined $hashArgOptLists)? new BasClas($classifierslist,$inputargs,$hashArgOptLists): new BasClas($classifierslist,$inputargs);
     25
     26    # Manually set $self parameters.
    2027    $self->{'list'} = [];
    21     $self->{'title'} = "All Documents";
     28    $self->{'buttonname'} = "All Documents";
    2229
    2330    return bless $self, $class;
     
    4451
    4552    my %classifyinfo = ('childtype'   =>'VList',
    46             'Title'       =>$self->{'title'},
     53            'Title'       =>$self->{'buttonname'},
    4754            'contains'    =>[],
    4855            'classifyOID' =>"oai");
     
    5663       
    5764    my %tempinfo=('childtype'=>'VList',
    58               'Title'=>$self->{'title'},
     65              'Title'=>$self->{'buttonname'},
    5966              'classifyOID' =>"oai.$seqNo",
    6067              'contains'    =>[]);
Note: See TracChangeset for help on using the changeset viewer.