--- loncom/homework/structuretags.pm 2010/08/09 23:39:50 1.461.2.1 +++ loncom/homework/structuretags.pm 2010/02/10 20:17:44 1.464 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.461.2.1 2010/08/09 23:39:50 raeburn Exp $ +# $Id: structuretags.pm,v 1.464 2010/02/10 20:17:44 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -254,18 +254,15 @@ sub page_start { my $page_start = &Apache::loncommon::start_page($name,$extra_head, \%body_args); $page_start .= $pageheader; - - unless ($env{'request.gcicontext'} eq 'buildtest') { - if (!defined($found{'body'}) - && $env{'request.state'} ne 'construct' - && ($target eq 'web' || $target eq 'webgrade')) { - - my ($symb,undef,undef,undef,$publicuser)= &Apache::lonnet::whichuser(); - if ($symb eq '' && !$publicuser) { - $page_start .= '

' - .&mt('Browsing resource, all submissions are temporary.') - .'

'; - } + if (!defined($found{'body'}) + && $env{'request.state'} ne 'construct' + && ($target eq 'web' || $target eq 'webgrade')) { + + my ($symb,undef,undef,undef,$publicuser)= &Apache::lonnet::whichuser(); + if ($symb eq '' && !$publicuser) { + $page_start .= '

' + .&mt('Browsing resource, all submissions are temporary.') + .'

'; } } @@ -278,6 +275,7 @@ sub page_start { $form_tag_start='
0) { &Apache::lonnet::cinc('nohist_resourcetracker',\%aggregate, $cdomain,$cname); } - if (keys(%subtracker) > 0) { - &Apache::lonnet::cinc('nohist_submissiontracker',\%subtracker, - $cdomain,$cname); - } } sub checkout_msg { @@ -935,34 +915,28 @@ sub start_problem { if ($env{'request.state'} ne "construct" && ($symb eq '' || $Apache::lonhomework::type eq 'practice')) { $form_tag_start.=''; - unless ($env{'request.gcicontext'} eq 'buildtest') { - $form_tag_start .= ''; - } + $rndseed.'" />'. + ''; if (exists($env{'form.username'})) { $form_tag_start.= ''; } - unless ($env{'request.gcicontext'} eq 'buildtest') { - if ($env{'request.role.adv'}) { - $form_tag_start.= '