--- loncom/interface/lonstatistics.pm 2010/12/05 17:27:30 1.148.2.7 +++ loncom/interface/lonstatistics.pm 2014/02/14 17:09:55 1.159 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.148.2.7 2010/12/05 17:27:30 raeburn Exp $ +# $Id: lonstatistics.pm,v 1.159 2014/02/14 17:09:55 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,27 +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) { - my $cdom = $env{'course.'.$cid.'.domain'}; - if ($cdom =~ /^\w+citest$/) { - my $sequence = &Apache::loncommon::get_citest_map($cdom); - my $cnum = $env{'course.'.$cid.'.num'}; - if ($sequence) { - $mapurl = '/uploaded/'.$cdom.'/'.$cnum.'/'.$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; @@ -520,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"; @@ -578,10 +557,10 @@ sub SectionSelect { # # Loop through the sequences foreach my $s (@Sections) { - $Str .= '