--- loncom/interface/lonstatistics.pm 2010/11/09 15:01:53 1.148.2.6 +++ loncom/interface/lonstatistics.pm 2013/03/06 11:39:00 1.157 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.148.2.6 2010/11/09 15:01:53 raeburn Exp $ +# $Id: lonstatistics.pm,v 1.157 2013/03/06 11:39:00 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -64,6 +64,7 @@ use Apache::lonpercentage; use Apache::lonstudentsubmissions(); use Apache::lonsurveyreports(); use Apache::longradinganalysis(); +use Apache::lonquickgrades(); use LONCAPA; # @@ -405,25 +406,25 @@ sub StudentDataSelect { $Str .= 'size="'.$numvisible.'" >'."\n"; # # Deal with 'all' - $Str .= ' \n"; } $Str .= "\n"; return $Str; @@ -456,20 +457,11 @@ sub selected_sequences_with_assessments return ('Can not open Coursemap'); } # - my $mapurl; - if (&Apache::loncommon::needs_gci_custom()) { - my $cid = $env{'request.course.id'}; - if ($cid) { - $mapurl = '/uploaded/'.$env{'course.'.$cid.'.domain'}.'/'.$env{'course.'.$cid.'.num'}.'/default_1261144274.sequence'; - } - } - my @sequences = $navmap->retrieveResources($mapurl, + my @sequences = $navmap->retrieveResources(undef, sub { shift->is_map(); },1,0,1); - unless (&Apache::loncommon::needs_gci_custom()) { - my $toplevelseq = $navmap->getById('0.0'); - if (!grep(/^\Q$toplevelseq\E$/,@sequences)) { - unshift(@sequences,$toplevelseq); - } + my $toplevelseq = $navmap->getById('0.0'); + if (!grep(/^\Q$toplevelseq\E$/,@sequences)) { + unshift(@sequences,$toplevelseq); } my @sequences_with_assessments; @@ -513,15 +505,13 @@ sub map_select { $form .= 'multiple="multiple" '; } $form .= 'size="'.$numvisible.'" >'."\n"; - unless (&Apache::loncommon::needs_gci_custom()) { - # - # Put in option for 'all' - $form .= ' \n"; @@ -571,10 +557,10 @@ sub SectionSelect { # # Loop through the sequences foreach my $s (@Sections) { - $Str .= '