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

version 1.8, 2006/02/06 23:55:03 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 18  $stringanswer=&EXT('resource.0.stringans Line 19  $stringanswer=&EXT('resource.0.stringans
 unless ($stringanswer) { $stringanswer=''; }  unless ($stringanswer) { $stringanswer=''; }
 $stringtype=&EXT('resource.0.stringtype');  $stringtype=&EXT('resource.0.stringtype');
 unless ($stringtype) { $stringtype='cs'; }  unless ($stringtype) { $stringtype='cs'; }
   $numericalanswer=&EXT('resource.0.numericalanswer');
   unless ($numericalanswer) { $numericalanswer=''; }
   $numericaltolerance=&EXT('resource.0.numericaltolerance');
   unless ($numericaltolerance) { $numericaltolerance='5%'; }
   $numericalsigfigs=&EXT('resource.0.numericalsigfigs');
   unless ($numericalsigfigs) { $numericalsigfigs='1,15'; }
   $numericalunit=&EXT('resource.0.numericalunit');
   unless ($numericalunit) { $numericalunit=''; }
   $numericalformat=&EXT('resource.0.numericalformat');
   unless ($numericalformat) { $numericalformat=''; }
   $numericalscript=&EXT('resource.0.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 121  unless ($stringtype) { $stringtype='cs'; Line 139  unless ($stringtype) { $stringtype='cs';
   
 <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 130  unless ($stringtype) { $stringtype='cs'; Line 148  unless ($stringtype) { $stringtype='cs';
 </stringresponse>  </stringresponse>
 </part>  </part>
   
 </block>  <part id="numerical">
   <script type="loncapa/perl">
   $tag='script';
   &xmlparse("<$tag type='loncapa/perl'>$numericalscript</$tag>");
   </script>
   <startouttext /><parse>&EXT('resource.0.questiontext')</parse><br /><endouttext />
   <numericalresponse unit="$numericalunit" format="$numericalformat" answer="$numericalanswer" id="numericalsegment">
   <responseparam name="tol" type="tolerance" default="$numericaltolerance" description="Numerical Tolerance" />
   <responseparam name="sig" type="int_range,0-16" default="$numericalsigfigs" description="Significant Figures" />
   <textline>
   </textline>
   <hintgroup>
   <startouttext /><parse>&EXT('resource.0.hinttext')</parse><endouttext />
   </hintgroup>
   </numericalresponse>
   </part>
   
   </block>
 </problem>  </problem>
   
   

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


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