--- loncom/publisher/Attic/lonconstruct.pm 2002/09/16 13:05:49 1.9 +++ loncom/publisher/Attic/lonconstruct.pm 2003/11/18 04:08:15 1.19 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Page Wrapper for Construction # -# $Id: lonconstruct.pm,v 1.9 2002/09/16 13:05:49 www Exp $ +# $Id: lonconstruct.pm,v 1.19 2003/11/18 04:08:15 taceyjo1 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -99,16 +99,40 @@ 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); + &Debug($r, "Lower frame URL after quote subst: ".$lowerframe); + +# +# Are we forcing edit mode? +# + &Apache::loncommon::get_unprocessed_cgi + ($ENV{'QUERY_STRING'},['forceedit']); + if ($ENV{'form.forceedit'}) { + $lowerframe.='?editmode=Edit&problemmode=EditXML'; + } + &Apache::loncommon::get_unprocessed_cgi + ($ENV{'QUERY_STRING'},['forceColoredit']); + if ($ENV{'form.forceColoredit'}) { + $lowerframe.='?editmode=Edit&problemmode=Edit'; + } + &Apache::loncommon::get_unprocessed_cgi + ($ENV{'QUERY_STRING'},['decompress']); + if ($ENV{'form.decompress'}) { + &Apache::lonnet::appenv('cgi.path' => $r->path_info); + $lowerframe="http://$ENV{SERVER_NAME}/cgi-bin/decompress.pl"; + + } $r->print(< -LON-CAPA Construction Space +LON-CAPA Construction Space + +