--- loncom/homework/lonhomework.pm 2005/07/13 19:48:07 1.213 +++ loncom/homework/lonhomework.pm 2005/08/16 16:31:14 1.216 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.213 2005/07/13 19:48:07 albertel Exp $ +# $Id: lonhomework.pm,v 1.216 2005/08/16 16:31:14 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -94,9 +94,9 @@ sub get_target { if ( defined($env{'form.submitted'}) && ( !defined($env{'form.resetdata'})) && ( !defined($env{'form.newrandomization'}))) { - return ('grade', 'web'); + return ('grade', 'web','answer'); } else { - return ('web'); + return ('web','answer'); } } elsif ($env{'request.state'} eq "construct") { if ( defined($env{'form.grade_target'}) ) { @@ -668,7 +668,7 @@ sub analyze { } } if (scalar(keys(%allparts)) == 0 ) { - $request->print('

'.&mt('Found no analyzable respones in this problem, currently only Numerical, Formula and String response styles are supported.').'

'); + $request->print('

'.&mt('Found no analyzable responses in this problem, currently only Numerical, Formula and String response styles are supported.').'

'); } &Apache::lonhtmlcommon::Close_PrgWin($request,\%prog_state); &analyze_footer($request); @@ -773,7 +773,7 @@ sub renderpage { my $result = &Apache::lonxml::xmlparse($request, $target, $problem, &setup_vars($target),%mystyle); undef($Apache::lonhomework::parsing_a_problem); - if (!$output) { $result = '';&Apache::lonxml::message_location().'c'; } + if (!$output) { $result = ''; } #$request->print("Result follows:"); if ($target eq 'modified') { &handle_save_or_undo($request,\$problem,\$result);