Changeset 12895


Ignore:
Timestamp:
2006-09-28T13:05:34+12:00 (18 years ago)
Author:
mdewsnip
Message:

More minor changes.

File:
1 edited

Legend:

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

    r12894 r12895  
    247247
    248248    # The root node of the classification hierarchy
    249     my $childtype = $self->{$first_metadata_group . ".list_type"};
    250249    my %classifier_node = ( 'thistype' => "Invisible",
    251                 'childtype' => $childtype,
     250                'childtype' => $self->{$first_metadata_group . ".list_type"},
    252251                'Title' => $self->{'buttonname'},
    253252                'contains' => [] );
    254253
    255     # Recursively create the classification hierarchy, one level for each metadata element
    256     &add_az_list($self, \@metadata_groups, \@OIDs, \%classifier_node);
     254    # Recursively create the classification hierarchy, one level for each metadata group
     255    &add_level($self, \@metadata_groups, \@OIDs, \%classifier_node);
    257256    return \%classifier_node;
    258257}
    259258
    260259
    261 sub add_az_list
     260sub add_level
    262261{
    263262    my $self = shift(@_);
     
    452451        if (@metadata_groups > 0) {
    453452        my $next_metadata_group = $metadata_groups[0];
    454         my $childtype = $self->{$next_metadata_group . ".list_type"};
    455         $child_classifier_node{'childtype'} = $childtype;
    456         &add_az_list($self, \@metadata_groups, \@OIDs, \%child_classifier_node);
     453        $child_classifier_node{'childtype'} = $self->{$next_metadata_group . ".list_type"};
     454        &add_level($self, \@metadata_groups, \@OIDs, \%child_classifier_node);
    457455        }
    458456        # Otherwise just add the documents as children of this list
Note: See TracChangeset for help on using the changeset viewer.