--- rat/lonratedt.pm 2002/09/04 19:11:24 1.31.2.2 +++ rat/lonratedt.pm 2002/08/20 13:02:41 1.32 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Edit Handler for RAT Maps # -# $Id: lonratedt.pm,v 1.31.2.2 2002/09/04 19:11:24 albertel Exp $ +# $Id: lonratedt.pm,v 1.32 2002/08/20 13:02:41 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -38,7 +38,8 @@ use Apache::lonnet; use Apache::lonratsrv; use Apache::lonsequence; -use vars qw(@order @resources); +my @order; +my @resources; # Mapread read maps into global arrays @links and @resources, determines status @@ -317,10 +318,6 @@ sub startfinish { } my ($name,$url,$ext)=split(/\:/,$resources[$order[0]]); $resources[$order[0]]=$name.':'.$url.':'.$ext.':start:res'; - if ($#order==0) { - $resources[$#resources+1]='::false'; - $order[1]=$#resources; - } my ($name,$url,$ext)=split(/\:/,$resources[$order[$#order]]); $resources[$order[$#order]]=$name.':'.$url.':'.$ext.':finish:res'; } @@ -350,6 +347,113 @@ sub storemap { &Apache::lonratsrv::loadmap($fn,&Apache::lonratsrv::savemap($fn,'')); } +sub editscript { + my $mode=shift; + return(<print(<