--- loncom/interface/lonstatistics.pm 2010/01/06 19:41:49 1.148.2.2 +++ loncom/interface/lonstatistics.pm 2010/01/11 04:11:52 1.148.2.3 @@ -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 @@ sub CreateMainMenu { 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 @@ sub CreateMainMenu { linktext => ('Survey Reports'), linktitle => ('Prepare reports on survey results.')}, ]}); + } return &Apache::lonhtmlcommon::generate_menu(@reports); @@ -924,10 +927,14 @@ ENDSTYLE &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 @@ ENDSTYLE ({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); }