--- loncom/interface/lonindexer.pm 2002/03/06 20:28:19 1.35 +++ loncom/interface/lonindexer.pm 2002/03/19 19:55:52 1.39 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.35 2002/03/06 20:28:19 matthew Exp $ +# $Id: lonindexer.pm,v 1.39 2002/03/19 19:55:52 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -107,7 +107,8 @@ sub handler { # -------------------------------------- see if called from an interactive mode # Get the parameters from the query string - &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}); + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, + ['catalogmode','launch','acts','mode','form','element']); #------------------------------------------------------------------- my $closebutton=''; my $groupimportbutton=''; @@ -163,14 +164,14 @@ END # selection is made. # $element is the name of the element in $formname which receives # the URL. - &Apache::lonxml::debug('Checking mode, form, element'); + # &Apache::lonxml::debug('Checking mode, form, element'); &setvalues(\%hash,'form_mode' ,\%ENV,'form.mode' ); &setvalues(\%hash,'form_form' ,\%ENV,'form.form' ); &setvalues(\%hash,'form_element',\%ENV,'form.element'); my $mode = $ENV{'form.mode'}; my ($form,$element); - if ($mode eq 'edit') { + if ($mode eq 'edit' || $mode eq 'parmset') { $form = $ENV{'form.form'}; $element = $ENV{'form.element'}; } @@ -183,7 +184,7 @@ END # by default (ie. if $mode is undefined). This is the easy # way out. Hopefully in the future I'll find a way to get # the calls dealt with in a more comprehensive manner. - if (!defined($mode) || $mode ne 'edit') { + if (!defined($mode) || ($mode ne 'edit' && $mode ne 'parmset')) { $catalogmodefunctions=<<"END"; function select_data(title,url) { changeTitle(title); @@ -208,7 +209,7 @@ function changeURL(val) { } } END - } else { # we are in 'edit' mode + } elsif ($mode eq 'edit') { # we are in 'edit' mode $catalogmodefunctions=<