--- loncom/homework/structuretags.pm 2010/07/29 21:16:40 1.471
+++ loncom/homework/structuretags.pm 2010/08/07 19:24:03 1.473
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.471 2010/07/29 21:16:40 raeburn Exp $
+# $Id: structuretags.pm,v 1.473 2010/08/07 19:24:03 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -401,8 +401,6 @@ sub problem_edit_footer {
'.
-
- &Apache::lonhtmlcommon::htmlareaselectactive(&Apache::lonhtmlcommon::get_htmlareafields()).
"\n\n".&Apache::loncommon::end_page();
}
@@ -649,7 +647,7 @@ item store_aggregates()
sub store_aggregates {
my ($symb,$courseid) = @_;
- my %aggregate;
+ my (%aggregate,%anoncounter);
my @parts;
my $cdomain = $env{'course.'.$env{'request.course.id'}.'.domain'};
my $cname = $env{'course.'.$env{'request.course.id'}.'.num'};
@@ -680,7 +678,7 @@ sub store_aggregates {
}
if (($Apache::lonhomework::results{'resource.'.$part.'.type'} eq 'anonsurvey') ||
($Apache::lonhomework::results{'resource.'.$part.'.type'} eq 'anonsurveycred')) {
- $aggregate{$symb."\0".$part."\0anonymous"} = 1;
+ $anoncounter{$symb."\0".$part} = 1;
my $needsrelease = $Apache::lonnet::needsrelease{'parameter:type:'.$Apache::lonhomework::results{'resource.'.$part.'.type'}};
if ($needsrelease) {
my $curr_required = $env{'course.'.$env{'request.course.id'}.'.internal.releaserequired'};
@@ -700,6 +698,10 @@ sub store_aggregates {
&Apache::lonnet::cinc('nohist_resourcetracker',\%aggregate,
$cdomain,$cname);
}
+ if (keys(%anoncounter) > 0) {
+ &Apache::lonnet::cinc('nohist_anonsurveys',\%anoncounter,
+ $cdomain,$cname);
+ }
}
sub checkout_msg {
@@ -1179,7 +1181,6 @@ sub end_problem {
if ($target ne 'tex' &&
$env{'form.answer_output_mode'} ne 'tex') {
$result.="";
- $result.= &Apache::lonhtmlcommon::htmlareaselectactive(&Apache::lonhtmlcommon::get_htmlareafields());
}
if ($target eq 'web') {
$result.= &Apache::loncommon::end_page({'discussion' => 1});