--- loncom/interface/Attic/lonchart.pm 2002/07/08 16:50:03 1.58 +++ loncom/interface/Attic/lonchart.pm 2002/07/09 15:43:49 1.59 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # (Publication Handler # -# $Id: lonchart.pm,v 1.58 2002/07/08 16:50:03 stredwic Exp $ +# $Id: lonchart.pm,v 1.59 2002/07/09 15:43:49 stredwic Exp $ # # Copyright Michigan State University Board of Trustees # @@ -84,10 +84,9 @@ display options back to default values. =head1 CODE LAYOUT DESCRIPTION -The code is broken down into five components: formatting data for printing, -downloading data from servers, processing data, helper functions, -and the central processing functions. The module is broken into chunks -for each component. +The code is broken down into three components: formatting data for printing, +helper functions, and the central processing functions. The module is broken +into chunks for each component. =head1 PACKAGES USED @@ -105,6 +104,7 @@ use strict; use Apache::Constants qw(:common :http); use Apache::lonnet(); use Apache::loncommon(); +use Apache::loncoursedata(); use HTML::TokeParser; use GDBM_File; @@ -152,7 +152,7 @@ sub FormatStudentInformation { my $Str=''; for(my $index=0; $index<(scalar @$studentInformation); $index++) { - if(!&ShouldShowColumn($cache, 'heading'.$index)) { + if(!&ShouldShowColumn($cache, 'ChartHeading'.$index)) { next; } my $data=$cache->{$name.':'.$studentInformation->[$index]}; @@ -236,7 +236,7 @@ sub FormatStudentData { my $problemsSolved = 0; my $numberOfParts = 0; foreach my $sequence (split(/\:/,$CacheData{'orderedSequences'})) { - if(!&ShouldShowColumn(\%CacheData, 'sequence'.$sequence)) { + if(!&ShouldShowColumn(\%CacheData, 'ChartSequence'.$sequence)) { next; } @@ -390,7 +390,7 @@ sub CreateTableHeadings { my $Str='