[LON-CAPA-cvs] cvs: loncom /html/adm/help/tex Chart_Output_Data.tex /interface/statistics lonstudentassessment.pm

matthew lon-capa-cvs@mail.lon-capa.org
Tue, 19 Apr 2005 01:28:25 -0000


matthew		Mon Apr 18 21:28:25 2005 EDT

  Modified files:              
    /loncom/interface/statistics	lonstudentassessment.pm 
    /loncom/html/adm/help/tex	Chart_Output_Data.tex 
  Log:
  Bug 2159: use 'd' to indicate a draft solution was saved.
  Also changed to using 'u' to indicate an ungraded solution.
  Updated help text.
  Fixed buglet where lonstatistics::section_enrollment_description was called
  with a bad parameter.
  
  
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.123 loncom/interface/statistics/lonstudentassessment.pm:1.124
--- loncom/interface/statistics/lonstudentassessment.pm:1.123	Fri Apr  8 09:44:43 2005
+++ loncom/interface/statistics/lonstudentassessment.pm	Mon Apr 18 21:28:25 2005
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstudentassessment.pm,v 1.123 2005/04/08 13:44:43 albertel Exp $
+# $Id: lonstudentassessment.pm,v 1.124 2005/04/19 01:28:25 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1060,7 +1060,7 @@
     my $sectionstring = '';
     my @Sections = &Apache::lonstatistics::get_selected_sections();
     $excel_sheet->write($header_row,$cols_output++,
-                        &Apache::lonstatistics::section_and_enrollment_description('plain text'),
+                        &Apache::lonstatistics::section_and_enrollment_description('plaintext'),
                         $format->{'h3'});
     #
     # Put the date in there too
@@ -1814,7 +1814,7 @@
                 } elsif ($status eq 'incorrect_by_override') {
                     $symbol = '-';
                 } elsif ($status eq 'ungraded_attempted') {
-                    $symbol = '#';
+                    $symbol = 'u';
                 } elsif ($status eq 'incorrect_attempted' ||
                          $tries > 0)  {
                     $symbol = '.';
@@ -1931,13 +1931,19 @@
             if (length($symbol) > 1) {
                 $symbol = '*';
             }
-            if (exists($resource_data->{'resource.'.$part.'.solved'})) {
+            if (exists($resource_data->{'resource.'.$part.'.solved'}) &&
+                $resource_data->{'resource.'.$part.'.solved'} ne '') {
                 my $status = $resource_data->{'resource.'.$part.'.solved'};
                 if ($status eq 'excused') {
                     $symbol = 'x';
                     $max -= $weight; # Do not count 'excused' problems.
+                } elsif ($status eq 'ungraded_attempted') {
+                    $symbol = 'u';
                 }
                 $hasdata = 1;
+            } elsif ($resource_data->{'resource.'.$part.'.award'} eq 'DRAFT') {
+                $symbol = 'd';
+                $hasdata = 1;
             } elsif (!exists($resource_data->{'resource.'.$part.'.awarded'})){
                 # Unsolved.  Did they try?
                 if (exists($resource_data->{'resource.'.$part.'.tries'})){
@@ -1986,13 +1992,13 @@
 #######################################################
 sub CreateLegend {
     my $Str = "<p><pre>".
-              "   1  correct by student in 1 try\n".
-              "   7  correct by student in 7 tries\n".
+              " digit score or number of tries to get correct ".
               "   *  correct by student in more than 9 tries\n".
 	      "   +  correct by hand grading or override\n".
               "   -  incorrect by override\n".
 	      "   .  incorrect attempted\n".
-	      "   #  ungraded attempted\n".
+	      "   u  ungraded attempted\n".
+              "   d  draft answer saved but not submitted\n".
               "      not attempted (blank field)\n".
 	      "   x  excused".
               "</pre><p>";
Index: loncom/html/adm/help/tex/Chart_Output_Data.tex
diff -u loncom/html/adm/help/tex/Chart_Output_Data.tex:1.4 loncom/html/adm/help/tex/Chart_Output_Data.tex:1.5
--- loncom/html/adm/help/tex/Chart_Output_Data.tex:1.4	Tue Sep 14 18:04:42 2004
+++ loncom/html/adm/help/tex/Chart_Output_Data.tex	Mon Apr 18 21:28:25 2005
@@ -9,9 +9,17 @@
     The overall scores on each sequence are displayed.
 \item \textbf{Scores Per Problem} 
     The students scores on every assessment in the selected sequences are
-    displayed.  A digit signifies the student received that many points on the
-    problem.  A '*' indicates the score was not a single digit.  The Excel 
+    displayed.  student received that many points on the problem.  
+    A '*' indicates the score was not a single digit.  The Excel 
     output does not have this limitation and shows all scores properly.
+\begin{tabular}{cl} 
+\textbf{0-9}&Current student score on the problem. \\
+\textbf{*}&Student score on the problem was not a single digit (Excel and CSV output do not have this limitation. \\
+\textbf{u}&Student answer has been submitted but has not been graded. \\
+\textbf{d}&Student saved a draft solution but has not submitted a solution.\\
+\textbf{x}&Student was excused from the problem. \\
+\textbf{blank}&Student has not attempted the problem. \\
+\end{tabular}
 \item \textbf{Tries}
     The number of tries a student required to complete each problem 
     successfully is displayed.  The values are displayed as follows:
@@ -22,7 +30,7 @@
 \textbf{x}& Student was excused from the problem. \\
 \textbf{+}& Problem was marked correct by override. \\
 \textbf{-}& Problem was marked incorrect by override. \\
-\textbf{\#}& Student has submitted to a handgraded problem. \\
+\textbf{u}& Student has submitted to a handgraded problem which has not been graded. \\
 \textbf{blank}& Student did not attempt the problem. \\
 \end{tabular}
 \item \textbf{Parts Correct}