"; - - if (&$choiceFunc($curRes)) { - if (!$curVal) { - # Set this to the first one if they have no previous - # selection. - $curVal = $curRes->{ID}; - } - - $isChoosable = 1; - $result .= "{ID} eq $curVal) { - $result .= " checked"; - } - $result .= ' value="' . $curRes->{ID} . '" />'; - } - - $result .= " | "; - - for ($i = 0; $i < $depth; $i++) { - $result .= $padding; + # Create the composite function that renders the column on the nav map + my $renderColFunc = sub { + my ($resource, $part, $params) = @_; + + if (!&$choiceFunc($resource)) { + return ' | '; + } else { + my $col = " | {$resource->{ID}}) { + $col .= "checked "; } - - #$result .= ""; - $result .= $curRes->compTitle . " |
There are no valid resources to select in this course. The entire course will be selected by default (as if 1you selected "Set for Whole Course" on the previous screen).
"; - $result .= "\n"; - } - - $result .= "(Note: I need to add the icons in.)
"; $result .= $self->{MESSAGE_AFTER} if (defined $self->{MESSAGE_AFTER}); return $result;