--- loncom/publisher/Attic/lonconstruct.pm 2003/09/21 03:32:06 1.14 +++ loncom/publisher/Attic/lonconstruct.pm 2004/12/01 17:10:55 1.25 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Page Wrapper for Construction # -# $Id: lonconstruct.pm,v 1.14 2003/09/21 03:32:06 taceyjo1 Exp $ +# $Id: lonconstruct.pm,v 1.25 2004/12/01 17:10:55 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -85,8 +85,6 @@ sub Debug { } - - # ================================================================ Main Handler sub handler { @@ -99,12 +97,11 @@ sub handler { return OK if $r->header_only; my $lowerframe=$r->path_info; - &Debug($r, "Initial URL for lower frame: ".$lowerframe); $lowerframe=~s/^\//\/\~/; &Debug($r, "Lower frame URL afer ~ subst: ".$lowerframe); - $lowerframe= &HTML::Entities::encode($lowerframe); - &Debug($r, "LOwer frame URL after quote subst: ".$lowerframe); + $lowerframe= &HTML::Entities::encode($lowerframe,'<>&"'); + &Debug($r, "Lower frame URL after quote subst: ".$lowerframe); # # Are we forcing edit mode? @@ -121,6 +118,15 @@ sub handler { $lowerframe.='?editmode=Edit&problemmode=Edit'; } +# +# Checking to see if we should display the topframe +# + my $toprows = 0; + my $topsrc = ''; + if ($ENV{'environment.remote'} ne 'off') { + $toprows = '110'; + $topsrc = '/adm/localize/adm/publisher.html'; + } $r->print(< LON-CAPA Construction Space @@ -128,8 +134,8 @@ sub handler { var lastknownpriv="$lowerframe"; - - + +