--- rat/lonratparms.pm 2002/05/29 18:52:57 1.10 +++ rat/lonratparms.pm 2002/06/14 19:38:24 1.12 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Set parameters inside of the RAT # -# $Id: lonratparms.pm,v 1.10 2002/05/29 18:52:57 stredwic Exp $ +# $Id: lonratparms.pm,v 1.12 2002/06/14 19:38:24 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -54,7 +54,7 @@ sub handler { # Get query string for limited number of parameters &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, - ['url','params','resid']); + ['url','parms','resid']); # ------------------------------------------------------------------- Read file @@ -73,6 +73,17 @@ sub handler { } } +# -------------------------------------- Additional parms for certain resources + + if ($uri=~/\.(sequence|page)\.meta$/) { + $content{'parameter_randompick'}=''; + $type{'parameter_randompick'}='int_pos'; + $display{'parameter_randompick'}='Randomly pick number of resources'; + } else { + $content{'parameter_mapalias'}=''; + $type{'parameter_mapalias'}='string'; + $display{'parameter_mapalias'}='Resource alias name for conditions'; + } # ---------------------------------------------------------- Current Parameters foreach (split(/\:/,$ENV{'form.parms'})) {