[LON-CAPA-cvs] cvs: rat /client parameter.html loncom/interface lonparmset.pm loncom/publisher packages.tab

raeburn raeburn@source.lon-capa.org
Sat, 18 Dec 2010 23:18:50 -0000


raeburn		Sat Dec 18 23:18:50 2010 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
    /loncom/publisher	packages.tab 
    /rat/client	parameter.html 
  Log:
  - New Question Type - randomizetry
     - New Variation displayed after N tries (default N=1).
  - New Parameter - randomizeontries (sets N for randomizetry).
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.502 loncom/interface/lonparmset.pm:1.503
--- loncom/interface/lonparmset.pm:1.502	Thu Dec 16 17:03:42 2010
+++ loncom/interface/lonparmset.pm	Sat Dec 18 23:18:39 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.502 2010/12/16 17:03:42 raeburn Exp $
+# $Id: lonparmset.pm,v 1.503 2010/12/18 23:18:39 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1376,6 +1376,7 @@
         'handgrade' => 'grading',
         'maxtries' => 'tries',
         'hinttries' => 'tries',
+        'randomizeontries' => 'tries',
         'type' => 'problem_appearance',
         'problemstatus' => 'problem_appearance',
         'display' => 'problem_appearance',
Index: loncom/publisher/packages.tab
diff -u loncom/publisher/packages.tab:1.61 loncom/publisher/packages.tab:1.62
--- loncom/publisher/packages.tab:1.61	Tue Jan  6 15:09:24 2009
+++ loncom/publisher/packages.tab	Sat Dec 18 23:18:45 2010
@@ -19,6 +19,8 @@
 part&hinttries&default:1
 part&type&display:Question Type
 part&type&type:string_questiontype
+part&randomizeontries&display:Tries before new Variation (if Qn. Type=randomizetry)
+part&randomizeontries&type:int_pos
 part&acc&display:Client IP/Name Access Control
 part&acc&type:string_ip
 part&problemstatus&type:string_problemstatus
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.58 rat/client/parameter.html:1.59
--- rat/client/parameter.html:1.58	Mon May 17 22:31:29 2010
+++ rat/client/parameter.html	Sat Dec 18 23:18:50 2010
@@ -5,7 +5,7 @@
 The LearningOnline Network with CAPA
 Parameter Input Window
 //
-// $Id: parameter.html,v 1.58 2010/05/17 22:31:29 raeburn Exp $
+// $Id: parameter.html,v 1.59 2010/12/18 23:18:50 raeburn Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -648,7 +648,10 @@
                 ' type="radio" '+callradiostringeval('anonsurveycred'));
            if (svalue=='anonsurveycred') { choicewrite(' checked="checked"'); }
            choicewrite('> Anonymous Survey (credit for submission)</label><br />');
-
+           choicewrite('<label><input name="stringval" value="randomizetry"'+
+                ' type="radio" '+callradiostringeval('randomizetry'));
+           if (svalue=='randomizetry') { choicewrite(' checked="checked"'); }
+           choicewrite('> New Randomization Each N Tries (default N=1)</label><br />');
            choicewrite('<label><input name="stringval" value="library"'+
                ' type="radio" '+callradiostringeval('library'));
            if (svalue=='library') { choicewrite(' checked="checked"'); }