--- loncom/homework/structuretags.pm 2024/02/27 19:46:23 1.512.2.24.2.10 +++ loncom/homework/structuretags.pm 2024/02/27 22:23:13 1.512.2.24.2.12 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.512.2.24.2.10 2024/02/27 19:46:23 raeburn Exp $ +# $Id: structuretags.pm,v 1.512.2.24.2.12 2024/02/27 22:23:13 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1574,10 +1574,13 @@ sub access_status_msg { $msg ='\noindent \vskip 1 mm '. $startminipage.'\vskip 0 mm'; if ($status eq 'UNAVAILABLE') { - $msg.=&mt('Unable to determine if this resource is open due to network problems. Please try again later.').'\vskip 0 mm '; + $msg.=&mt('Unable to determine if this resource is open due to network problems. Please try again later.'); + } elsif ($status eq 'CLOSED' || $status eq 'INVALID_ACCESS') { + $msg.=&mt('Problem is not open to be viewed. It')." $accessmsg"; } else { - $msg.=&mt('Problem is not open to be viewed. It')." $accessmsg \\vskip 0 mm "; + $msg.=&mt('Problem is not open to be viewed.'); } + $msg .= " \\vskip 0 mm "; } return $msg; } @@ -1973,7 +1976,7 @@ sub start_problem { $result .= '

'. &mt('A problem occurred when trying to start the timer.').'

'; } - $result .= &access_status_msg('problem',$status,$symb,$target,$ipused,$accessmsg); + $result .= &access_status_msg('problem',$status,$symb,$target,'',$accessmsg); } elsif ($status eq 'NEEDS_CHECKIN') { my $bodytext=&Apache::lonxml::get_all_text("/problem",$parser, $style);