Diff for /loncom/homework/simpleproblem.problem between versions 1.11 and 1.12

version 1.11, 2009/08/17 19:46:49 version 1.12, 2011/01/18 21:20:15
Line 2 Line 2
 <simpleeditbutton />  <simpleeditbutton />
 <script type="loncapa/perl">  <script type="loncapa/perl">
 $questiontype=&EXT('resource.0.hiddenparts');  $questiontype=&EXT('resource.0.hiddenparts');
   if ($questiontype eq '!placeholder') { $questiontype=''; }
 $max=&EXT('resource.0.maxfoils');  $max=&EXT('resource.0.maxfoils');
 unless ($max) { $max=10; }  unless ($max) { $max=10; }
 $randomize=&EXT('resource.0.randomize');  $randomize=&EXT('resource.0.randomize');
Line 32  $numericalscript=&EXT('resource.0.numeri Line 33  $numericalscript=&EXT('resource.0.numeri
 unless ($numericalscript) { $numericalscript=''; }  unless ($numericalscript) { $numericalscript=''; }
 </script>  </script>
   
 <block condition="!$questiontype">   <parameter name="hiddenparts" id="11" type="string" default="!placeholder" description="List of hidden parts" />
   
   <block condition="!$questiontype"> 
 <startouttext />  <startouttext />
 <h1>Simple Problem Placeholder</h1>  <h1>Problem Placeholder</h1>
 <endouttext />  <endouttext />
   <part id="placeholder">
   <stringresponse id="placeholdersegment">
   </stringresponse>
   </part>
 </block>  </block>
   
 <block condition="$questiontype">   <block condition="$questiontype"> 
Line 133  unless ($numericalscript) { $numericalsc Line 139  unless ($numericalscript) { $numericalsc
   
 <part id="string">   <part id="string"> 
 <startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext />  <startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext />
 <stringresponse id="stringsegment" answer="$stringanswer" type="$stringtype">  <stringresponse answer="$stringanswer" id="stringsegment" type="$stringtype">
 <textline>  <textline>
 </textline>  </textline>
 <hintgroup>  <hintgroup>
Line 148  $tag='script'; Line 154  $tag='script';
 &xmlparse("<$tag type='loncapa/perl'>$numericalscript</$tag>");  &xmlparse("<$tag type='loncapa/perl'>$numericalscript</$tag>");
 </script>  </script>
 <startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext />  <startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext />
 <numericalresponse id="numericalsegment" answer="$numericalanswer" unit="$numericalunit" format="$numericalformat">  <numericalresponse unit="$numericalunit" format="$numericalformat" answer="$numericalanswer" id="numericalsegment">
 <responseparam type="tolerance" default="$numericaltolerance" name="tol" description="Numerical Tolerance" />  <responseparam name="tol" type="tolerance" default="$numericaltolerance" description="Numerical Tolerance" />
 <responseparam name="sig" type="int_range,0-16" default="$numericalsigfigs" description="Significant Figures" />  <responseparam name="sig" type="int_range,0-16" default="$numericalsigfigs" description="Significant Figures" />
 <textline>  <textline>
 </textline>  </textline>
Line 160  $tag='script'; Line 166  $tag='script';
 </part>  </part>
   
 </block>  </block>
   
 </problem>  </problem>
   
   

Removed from v.1.11  
changed lines
  Added in v.1.12


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>