--- loncom/imspackages/imsexport.pm 2012/03/31 12:02:29 1.9 +++ loncom/imspackages/imsexport.pm 2013/11/12 04:54:57 1.11 @@ -1,6 +1,6 @@ # The LearningOnline Network # -# $Id: imsexport.pm,v 1.9 2012/03/31 12:02:29 raeburn Exp $ +# $Id: imsexport.pm,v 1.11 2013/11/12 04:54:57 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -33,6 +33,7 @@ use Apache::loncommon; use Apache::lonhtmlcommon; use Apache::lonnavmaps; use Apache::loncourserespicker; +use Apache::londocs; use Apache::lonlocal; use Cwd; use LONCAPA qw(:DEFAULT :match); @@ -114,7 +115,9 @@ sub exportcourse { } $r->print(&Apache::loncommon::start_page('Export '.$crstype.' to IMS Package')); $r->print(&Apache::lonhtmlcommon::breadcrumbs('IMS Export')); + $r->print(&Apache::londocs::startContentScreen('tools')); $r->print($outcome); + $r->print(&Apache::londocs::endContentScreen()); $r->print(&Apache::loncommon::end_page()); } else { $r->print(&Apache::loncourserespicker::create_picker($navmap,'imsexport', @@ -670,6 +673,7 @@ sub simpleproblem { %values = &evaloptionhash($options); $output .= qq| + $qtext |; @@ -698,8 +702,9 @@ sub simpleproblem { } else { $output .= qq| + $qtext - + |; for (my $k=0; $k<10; $k++) { my $iter = $k+1; @@ -724,14 +729,14 @@ sub simpleproblem { |; } - } elsif ($qtype eq 'stringanswer') { + } elsif ($qtype eq 'string') { my $stringanswer = $qparms{$prefix.'stringanswer'}; my $stringtype=$qparms{$prefix.'stringtype'}; $output .= qq| - - + $qtext + |; if ($hint) { $output .= ' @@ -745,6 +750,55 @@ sub simpleproblem { |; + } elsif ($qtype eq 'numerical') { + my $sigfigs = $qparms{$prefix.'numericalsigfigs'}; + my $unit = $qparms{$prefix.'numericalunit'}; + my $answer = $qparms{$prefix.'numericalanswer'}; + my $tolerance = $qparms{$prefix.'numericaltolerance'}; + my $format = $qparms{$prefix.'numericalformat'}; + my $scriptblock = $qparms{$prefix.'numericalscript'}; + $output .= qq| + +|; + if ($scriptblock) { + $output .= qq| +|; + } + $output .= qq| +$qtext +|; + } + if ($sigfigs) { + $output .= qq| + |; + } + $output .= qq| + |; + if ($hint) { + $output .= qq| + + + '.$hint.' + + |; + } + $output .= qq| + + +|; } else { $output .= qq|