[LON-CAPA-cvs] cvs: rat / lonratparms.pm

www lon-capa-cvs@mail.lon-capa.org
Fri, 14 Jun 2002 19:38:24 -0000


www		Fri Jun 14 15:38:24 2002 EDT

  Modified files:              
    /rat	lonratparms.pm 
  Log:
  Entry of additional map parameters (only available in map-edit)
  
  
Index: rat/lonratparms.pm
diff -u rat/lonratparms.pm:1.11 rat/lonratparms.pm:1.12
--- rat/lonratparms.pm:1.11	Thu May 30 09:54:15 2002
+++ rat/lonratparms.pm	Fri Jun 14 15:38:24 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Set parameters inside of the RAT
 #
-# $Id: lonratparms.pm,v 1.11 2002/05/30 13:54:15 www Exp $
+# $Id: lonratparms.pm,v 1.12 2002/06/14 19:38:24 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -73,6 +73,17 @@
       }
   }
 
+# -------------------------------------- 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'})) {