[LON-CAPA-cvs] cvs: loncom(GCI_3) /interface lonstatistics.pm

raeburn raeburn@source.lon-capa.org
Mon, 11 Jan 2010 04:11:52 -0000


raeburn		Mon Jan 11 04:11:52 2010 EDT

  Modified files:              (Branch: GCI_3)
    /loncom/interface	lonstatistics.pm 
  Log:
  - Customization for GCI_3 - anonymity.
    - Links to Submission Reports and Survey Reports excluded from Statistics Menu.
    - Access to Submission Reports disabled.
  
  
Index: loncom/interface/lonstatistics.pm
diff -u loncom/interface/lonstatistics.pm:1.148.2.2 loncom/interface/lonstatistics.pm:1.148.2.3
--- loncom/interface/lonstatistics.pm:1.148.2.2	Wed Jan  6 19:41:49 2010
+++ loncom/interface/lonstatistics.pm	Mon Jan 11 04:11:52 2010
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstatistics.pm,v 1.148.2.2 2010/01/06 19:41:49 raeburn Exp $
+# $Id: lonstatistics.pm,v 1.148.2.3 2010/01/11 04:11:52 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -766,7 +766,9 @@
              icon => 'coprplot.png',
              linktext => ('Correct Problems Plot'),
              linktitle => ('Display a histogram of student performance in the course.')},
-         ]},
+         ]});
+    unless(&Apache::loncommon::needs_gci_custom()) {
+        push(@reports,
         {categorytitle => 'Reports',
          items => [
             {url => '/adm/statistics?reportSelected=student_submission_reports',
@@ -781,6 +783,7 @@
 			 linktext => ('Survey Reports'),
              linktitle => ('Prepare reports on survey results.')},
          ]});
+    }
     
 return &Apache::lonhtmlcommon::generate_menu(@reports);
  
@@ -924,10 +927,14 @@
             &Apache::lonsubmissiontimeanalysis::BuildSubmissionTimePage($r,$c);
         } elsif($GoToPage eq 'student_submission_reports') {
             &Apache::lonhtmlcommon::add_breadcrumb
-                ({href=>
-                  '/adm/statistics?reportselected=student_submission_reports',
-                  text=>'Student Submission Reports'});
-            &Apache::lonstudentsubmissions::BuildStudentSubmissionsPage($r,$c);
+            ({href=>
+              '/adm/statistics?reportselected=student_submission_reports',
+              text=>'Student Submission Reports'});
+            if ($gcicustom) {
+                $r->print(&mt('Only aggregate performance data are available for Concept Tests.'));
+            } else {
+                &Apache::lonstudentsubmissions::BuildStudentSubmissionsPage($r,$c);
+            }
         } elsif($GoToPage eq 'survey_reports') {
             &Apache::lonhtmlcommon::add_breadcrumb
                 ({href=>
@@ -945,7 +952,7 @@
                 ({href=>'/adm/statistics?reportselected=student_assessment',
                   text=>'Chart'});
             if ($gcicustom) {
-                $r->print(&mt('Only aggregate performance data is available for Concept Tests.'));  
+                $r->print(&mt('Only aggregate performance data are available for Concept Tests.'));  
             } else {
                 &Apache::lonstudentassessment::BuildStudentAssessmentPage($r,$c);
             }