1 package SGN
::View
::Cvterm
;
14 my $name = $cvterm->name;
15 my $id = $cvterm->cvterm_id;
16 return qq{<a href
="/cvterm/$id/view">$name</a
>};
22 my $sorted_tree = shift;
23 my @direct_children = $cvterm->children->all;
25 my %children_hash = map { $_->subject->name , $_->subject } @direct_children;
26 foreach my $term_name (sort keys %children_hash ) {
27 push @
$sorted_tree , $term_name if !grep (/^$term_name$/ , @
$sorted_tree);
28 sort_onto_tree
( $children_hash{$term_name} , $sorted_tree)