--- loncom/homework/hint.pm 2003/02/23 20:37:56 1.36
+++ loncom/homework/hint.pm 2003/04/02 18:51:11 1.37
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# implements the tags that control the hints
#
-# $Id: hint.pm,v 1.36 2003/02/23 20:37:56 www Exp $
+# $Id: hint.pm,v 1.37 2003/04/02 18:51:11 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -53,7 +53,11 @@ sub start_hintgroup {
if ( $numtries < $hinttries ) {
$skiptoend='1';
} else {
- if ($target eq 'web') {$result='
';}
+ if ($target eq 'web' && $Apache::lonhomework::type ne 'exam') {
+ $result='';
+ } elsif ($Apache::lonhomework::type eq 'exam') {
+ &Apache::lonxml::startredirection;
+ }
}
if ($skiptoend) {
&Apache::lonxml::get_all_text("/hintgroup",$parser);
@@ -76,8 +80,10 @@ sub end_hintgroup {
my $hinttries=&Apache::lonnet::EXT("resource.$id.hinttries");
if ( $hinttries eq '') { $hinttries = 1; }
&Apache::lonxml::debug("found :$id:$numtries:$hinttries:");
- if ( $numtries >= $hinttries ) {
+ if ( $numtries >= $hinttries && $Apache::lonhomework::type ne 'exam') {
$result=' | ';
+ } elsif ($Apache::lonhomework::type eq 'exam') {
+ my $garbage = &Apache::lonxml::endredirection;
}
} elsif ($target eq 'edit') {
$result.=&Apache::edit::end_table();
|