--- loncom/homework/structuretags.pm 2009/11/27 21:20:44 1.444.4.2.2.1 +++ loncom/homework/structuretags.pm 2009/05/15 14:48:35 1.445 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.444.4.2.2.1 2009/11/27 21:20:44 www Exp $ +# $Id: structuretags.pm,v 1.445 2009/05/15 14:48:35 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -225,7 +225,7 @@ sub page_start { if ($bgcolor eq '' ) { $bgcolor = '#FFFFFF'; } $body_args{'bgcolor'} = $bgcolor; - $body_args{'no_title'} = 1; +# $body_args{'no_title'} = 1; $body_args{'force_register'} = 1; $body_args{'add_entries'} = \%add_entries; if ($env{'environment.remote'} eq 'off' @@ -237,17 +237,17 @@ sub page_start { my $page_start = &Apache::loncommon::start_page($name,$extra_head, \%body_args); -# 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) { + my $help = &Apache::loncommon::help_open_topic("Ambiguous_Reference"); + $help=&mt("Browsing resource, all submissions are temporary.")."$lt{'id_expln'}
-$lt{'warning'}
+ +$lt{'warning'}
+