--- loncom/interface/lonnavmaps.pm 2003/02/07 21:55:44 1.140 +++ loncom/interface/lonnavmaps.pm 2003/02/07 22:17:51 1.142 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavmaps.pm,v 1.140 2003/02/07 21:55:44 bowersj2 Exp $ +# $Id: lonnavmaps.pm,v 1.142 2003/02/07 22:17:51 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -997,6 +997,10 @@ sub render { my $in24Hours = $now + 24 * 60 * 60; my $rownum = 0; + # export "here" marker information + $args->{'here'} = $here; + $args->{'hereType'} = $hereType; + while ($depth > 0) { if ($curRes == $it->BEGIN_MAP()) { $depth++; } if ($curRes == $it->END_MAP()) { $depth--; } @@ -2496,7 +2500,7 @@ sub getErrors { =pod -=item * B(): Returns a list reference containing sorted strings corresponding to each part of the problem. To count the number of parts, use the list in a scalar context, and subtract one if greater then two. (One part problems have a part 0. Multi-parts have a part 0, plus a part for each part. Filtering part 0 if you want it is up to you.) +=item * B(): Returns a list reference containing sorted strings corresponding to each part of the problem. To count the number of parts, use the list in a scalar context, and subtract one if greater than two. (One part problems have a part 0. Multi-parts have a part 0, plus a part for each part. Filtering part 0 if you want it is up to you.) =item * B(): Returns the number of parts of the problem a student can answer. Thus, for single part problems, returns 1. For multipart, it returns the number of parts in the problem, not including psuedo-part 0. Thus, B may return an array with fewer parts in it then countParts might lead you to believe.