Changeset 12895
- Timestamp:
- 2006-09-28T13:05:34+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/GenericList.pm
r12894 r12895 247 247 248 248 # The root node of the classification hierarchy 249 my $childtype = $self->{$first_metadata_group . ".list_type"};250 249 my %classifier_node = ( 'thistype' => "Invisible", 251 'childtype' => $ childtype,250 'childtype' => $self->{$first_metadata_group . ".list_type"}, 252 251 'Title' => $self->{'buttonname'}, 253 252 'contains' => [] ); 254 253 255 # Recursively create the classification hierarchy, one level for each metadata element256 &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); 257 256 return \%classifier_node; 258 257 } 259 258 260 259 261 sub add_ az_list260 sub add_level 262 261 { 263 262 my $self = shift(@_); … … 452 451 if (@metadata_groups > 0) { 453 452 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); 457 455 } 458 456 # Otherwise just add the documents as children of this list
Note:
See TracChangeset
for help on using the changeset viewer.