--- loncom/homework/structuretags.pm 2004/10/12 22:55:22 1.270 +++ loncom/homework/structuretags.pm 2004/12/10 17:50:30 1.275 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.270 2004/10/12 22:55:22 albertel Exp $ +# $Id: structuretags.pm,v 1.275 2004/12/10 17:50:30 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -88,7 +88,11 @@ sub page_start { &Apache::lonxml::fontsettings(); } my $body_tag_start; - if (!defined($found{'body'})) { + if (!defined($found{'body'}) && $ENV{'request.state'} eq 'construct' + && $ENV{'environment.remote'} eq 'off') { + $body_tag_start=&Apache::loncommon::bodytag(); + $body_tag_start.=&Apache::lonxml::message_location(); + } elsif (!defined($found{'body'})) { $body_tag_start='
'; + $form_tag_start='