--- loncom/interface/lonnavmaps.pm 2002/03/16 09:11:01 1.33 +++ loncom/interface/lonnavmaps.pm 2002/06/24 14:28:10 1.36 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavmaps.pm,v 1.33 2002/03/16 09:11:01 albertel Exp $ +# $Id: lonnavmaps.pm,v 1.36 2002/06/24 14:28:10 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -278,7 +278,8 @@ sub addresource { } my $brepriv=&Apache::lonnet::allowed('bre',$resource); if ($hash{'src_'.$rid}) { - if (($brepriv eq '2') || ($brepriv eq 'F')) { + if ((($brepriv eq '2') && (!$hash{'randomout_'.$rid})) + || ($brepriv eq 'F')) { my $pprefix=''; if ($resource=~/\.(problem|exam|quiz|assess|survey|form)$/) { $pprefix=&astatus($rid); @@ -612,6 +613,11 @@ sub handler { my $indent;my $indentstr; my $linkid; my $rid=$colcont[$j]; + $rid=~/(\d+)\.(\d+)$/; + my $src= + &Apache::lonnet::declutter($hash{'src_'.$1.'.'.$2}); + my $symb= + &Apache::lonnet::declutter($hash{'map_id_'.$1}).'___'.$2.'___'.$src; my $add=''; my $adde=''; my $hwk=''; @@ -622,6 +628,12 @@ sub handler { $rid=$1; $add=''; $adde=''; + if (($ENV{'user.adv'}) && + ($parmhash{$symb.'.0.parameter_randompick'})) { + $adde=' (randomly select '. + $parmhash{$symb.'.0.parameter_randompick'}. + ')'; + } } if ($rid=~/^j(.+)/) { $rid=$1; } if ($rid=~/^p(\d)(\d)\"([\w\: \(\)\/\,]*)\"(.+)/) { @@ -667,11 +679,6 @@ sub handler { $adde= ' <'.$adde; } - my $src= - &Apache::lonnet::declutter($hash{'src_'.$rid}); - $rid=~/^(\d+)\.(\d+)$/; - my $symb= - &Apache::lonnet::declutter($hash{'map_id_'.$1}).'___'.$2.'___'.$src; if ($discussiontimes{$symb}>$lastcheck) { $adde= ''. @@ -706,7 +713,9 @@ sub handler { if (!$linkid) { $linkid=$rid; } $r->print($add.$indentstr); if ($rid) { - $r->print(''. + $r->print(''. $hwk.$hash{'title_'.$rid}.$hwke.''); } $r->print($adde); 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.