--- loncom/homework/structuretags.pm 2002/11/07 16:10:47 1.133
+++ loncom/homework/structuretags.pm 2002/11/22 19:46:36 1.138
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.133 2002/11/07 16:10:47 sakharuk Exp $
+# $Id: structuretags.pm,v 1.138 2002/11/22 19:46:36 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -101,6 +101,14 @@ sub page_start {
}
}
$body_tag_start.='>';
+ if ($target eq 'web' && $ENV{'request.state'} ne 'construct') {
+ my ($symb)=&Apache::lonxml::whichuser();
+ if ($symb eq '') {
+ my $help = &Apache::loncommon::help_open_topic("Ambiguous_Reference");
+ $help="Browsing or ambiguous reference, submissions ignored $help
";
+ $body_tag_start.=$help;
+ }
+ }
}
my $form_tag_start;
if (!defined($found{'form'})) {
@@ -110,10 +118,12 @@ sub page_start {
return ($result,$head_tag_start,$body_tag_start,$form_tag_start);
}
+use Time::HiRes();
sub get_resource_name {
my ($parstack,$safeeval)=@_;
- my $name=&Apache::lonxml::get_param('name',$parstack,$safeeval);
- if ($name eq '') {
+ my $name=&Apache::lonnet::gettitle();
+ &Apache::lonnet::logthis("Got $name");
+ if ($name eq '') {
$name=&Apache::lonnet::EXT('resource.title');
if ($name eq 'con_lost') { $name = ''; }
}
@@ -130,6 +140,7 @@ sub setup_rndseed {
$rndseed=time;
$ENV{'form.rndseed'}=$rndseed;
}
+ &Apache::lonxml::debug("Setting rndseed to $rndseed");
&Apache::run::run('$external::randomseed='.$rndseed.';',$safeeval);
}
return $rndseed;
@@ -141,13 +152,13 @@ sub problem_edit_header {
+ +
';
}
sub problem_edit_footer {
- return ' + return ' |