Ignore:
Timestamp:
2006-09-28T11:26:23+12:00 (18 years ago)
Author:
mdewsnip
Message:

Changed the ".use_hlist" entries to ".list_type", for simplicity.

File:
1 edited

Legend:

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

    r12891 r12892  
    101101    my $partition_size_within_level = $self->{'partition_size_within_level'};
    102102    my $sort_leaf_nodes_using = $self->{'sort_leaf_nodes_using'};
    103     my $use_hlist_for = $self->{'use_hlist_for'};
    104103
    105104    # The metadata elements to use (required)
     
    129128    }
    130129
    131     # Whether to use an hlist or a vlist for each level in the hierarchy
     130    # Whether to use an hlist or a vlist for each level in the hierarchy (default: vlist)
    132131    foreach my $metadata_group (@metadata_groups) {
    133     $self->{$metadata_group . ".use_hlist"} = "f";
    134     }
    135     foreach my $metadata_group (split(/\,/, $use_hlist_for)) {
    136     $self->{$metadata_group . ".use_hlist"} = "t";
     132    $self->{$metadata_group . ".list_type"} = "VList";
     133    }
     134    foreach my $metadata_group (split(/\,/, $self->{'use_hlist_for'})) {
     135    $self->{$metadata_group . ".list_type"} = "HList";
    137136    }
    138137
     
    256255
    257256    # The root node of the classification hierarchy
    258     my $childtype = (($self->{$first_metadata_group . ".use_hlist"} eq "t") ? "HList" : "VList");
     257    my $childtype = $self->{$first_metadata_group . ".list_type"};
    259258    my %classifyinfo = ( 'thistype' => "Invisible",
    260259             'childtype' => $childtype,
     
    461460        if (@metadata_groups > 0) {
    462461        my $next_metadata_group = $metadata_groups[0];
    463         my $childtype = (($self->{$next_metadata_group . ".use_hlist"} eq "t") ? "HList" : "VList");
     462        my $childtype = $self->{$next_metadata_group . ".list_type"};
    464463        $subclassifyinfo{'childtype'} = $childtype;
    465464        &add_az_list($self, \@metadata_groups, \@OIDs, \%subclassifyinfo);
Note: See TracChangeset for help on using the changeset viewer.