--- rat/lonratparms.pm 2003/09/29 14:31:00 1.16 +++ rat/lonratparms.pm 2003/10/23 21:01:54 1.19 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Set parameters inside of the RAT # -# $Id: lonratparms.pm,v 1.16 2003/09/29 14:31:00 www Exp $ +# $Id: lonratparms.pm,v 1.19 2003/10/23 21:01:54 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -91,12 +91,6 @@ sub handler { $type{'parameter_mapalias'}='string'; $display{'parameter_mapalias'}='Resource alias name for conditions'; } - if ($uri=~/\.(problem|exam|quiz|assess|survey|form|library)\.meta$/) { - $content{'parameter_hiddenparts'}=''; - $type{'parameter_hiddenparts'}='string'; - $display{'parameter_hiddenparts'}= - 'A comma separted list of Part Ids to not display.'; - } # ---------------------------------------------------------- Current Parameters foreach (split(/\:/,$ENV{'form.parms'})) { @@ -108,10 +102,10 @@ sub handler { # --------------------------------------------------- Print input screen header my $pjump_def = &Apache::lonhtmlcommon::pjump_javascript_definition(); my $bodytag=&Apache::loncommon::bodytag('Set Resource Parameters in Map'); - my %lt=&Apache::loncommon::texthash('pa' => 'Parameter', - 'de' => 'Default', - 'va' => 'Value', - 'se' => 'Set'); + my %lt=&Apache::lonlocal::texthash('pa' => 'Parameter', + 'de' => 'Default', + 'va' => 'Value', + 'se' => 'Set'); $r->print(< @@ -157,9 +151,9 @@ $bodytag ENDDOCUMENT - %display=&Apache::lonlocal::texthash(%display); +### %display=&Apache::lonlocal::texthash(%display); my $enter=&mt('Enter'); - foreach (keys(%content)) { + foreach (sort(keys(%content))) { my $cur=$content{$_}; # Should if(defined($value{$_})) be if(exists($value{$_})) ? if (defined($value{$_})) { $cur=$value{$_}; };
$lt{'pa'}$lt{'de'}$lt{'va'}$lt{'se'}?