--- loncom/interface/lonmeta.pm 2009/05/28 17:08:32 1.235 +++ loncom/interface/lonmeta.pm 2009/10/23 11:01:49 1.236 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.235 2009/05/28 17:08:32 bisitz Exp $ +# $Id: lonmeta.pm,v 1.236 2009/10/23 11:01:49 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -744,9 +744,13 @@ sub prettyinput { # Create pageheader sub pageheader { - return &Apache::lonhtmlcommon::breadcrumbs() - .&Apache::loncommon::head_subbox( - &Apache::loncommon::CSTR_pageheader()); + my $output = &Apache::lonhtmlcommon::breadcrumbs(); + + if ($env{'request.state'} eq 'construct') { + $output .= &Apache::loncommon::head_subbox( + &Apache::loncommon::CSTR_pageheader()); + } + return $output; } # Main Handler @@ -765,10 +769,13 @@ sub handler { # Breadcrumbs &Apache::lonhtmlcommon::clear_breadcrumbs(); - &Apache::lonhtmlcommon::add_breadcrumb({ - 'text' => 'Construction Space', - 'href' => &Apache::loncommon::authorspace(), - }); + + if ($env{'request.state'} eq 'construct') { + &Apache::lonhtmlcommon::add_breadcrumb({ + 'text' => 'Construction Space', + 'href' => &Apache::loncommon::authorspace(), + }); + } if ($uri=~m:/adm/bombs/(.*)$:) { &Apache::lonhtmlcommon::add_breadcrumb({