[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /homework structuretags.pm

raeburn raeburn at source.lon-capa.org
Wed Jul 3 15:28:35 EDT 2024


raeburn		Wed Jul  3 19:28:35 2024 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/homework	structuretags.pm 
  Log:
  - For 2.11
    Include changes in 1.585 (modified).
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.512.2.26 loncom/homework/structuretags.pm:1.512.2.27
--- loncom/homework/structuretags.pm:1.512.2.26	Wed Jul  3 18:58:15 2024
+++ loncom/homework/structuretags.pm	Wed Jul  3 19:28:35 2024
@@ -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.26 2024/07/03 18:58:15 raeburn Exp $
+# $Id: structuretags.pm,v 1.512.2.27 2024/07/03 19:28:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1720,10 +1720,13 @@
 		$result.='\noindent \vskip 1 mm '.
 		    $startminipage.'\vskip 0 mm';
 		if ($status eq 'UNAVAILABLE') {
-		    $result.=&mt('Unable to determine if this resource is open due to network problems. Please try again later.').'\vskip 0 mm ';
+		    $result.=&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') {
+		    $result.=&mt('Problem is not open to be viewed. It')." $accessmsg";
 		} else {
-		    $result.=&mt('Problem is not open to be viewed. It')." $accessmsg \\vskip 0 mm ";
+		    $result.=&mt('Problem is not open to be viewed.');
 		}
+		$result .= " \\vskip 0 mm ";
 	    }
 	} elsif ($status eq 'NEEDS_CHECKIN') {
 	    my $bodytext=&Apache::lonxml::get_all_text("/problem",$parser,




More information about the LON-CAPA-cvs mailing list