--- loncom/homework/structuretags.pm 2009/06/09 12:56:27 1.449
+++ loncom/homework/structuretags.pm 2009/12/06 21:18:24 1.461
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.449 2009/06/09 12:56:27 bisitz Exp $
+# $Id: structuretags.pm,v 1.461 2009/12/06 21:18:24 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -212,8 +212,21 @@ sub page_start {
if ($env{'environment.remote'} ne 'off') {
$body_args{'only_body'} = 1;
}
- $pageheader = &Apache::lonhtmlcommon::breadcrumbs() # FIXME add breadcrumbs
- .&Apache::loncommon::head_subbox(
+ # Breadcrumbs for Construction Space
+ &Apache::lonhtmlcommon::clear_breadcrumbs();
+ &Apache::lonhtmlcommon::add_breadcrumb({
+ 'text' => 'Construction Space',
+ 'href' => &Apache::loncommon::authorspace(),
+ });
+ # breadcrumbs (and tools) will be created
+ # in start_page->bodytag->innerregister
+
+# FIXME Where are we?
+# &Apache::lonhtmlcommon::add_breadcrumb({
+# 'text' => 'Problem Editing', # 'Problem Testing'
+# 'href' => '',
+# });
+ $pageheader =&Apache::loncommon::head_subbox(
&Apache::loncommon::CSTR_pageheader());
}
} elsif (!defined($found{'body'})) {
@@ -241,16 +254,19 @@ sub page_start {
my $page_start = &Apache::loncommon::start_page($name,$extra_head,
\%body_args);
$page_start .= $pageheader;
- 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.")."
";
- $page_start .= $help;
- }
+
+ 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') { @@ -260,7 +276,8 @@ sub page_start { my $form_tag_start; if (!defined($found{'form'})) { $form_tag_start='