--- loncom/interface/groupsort.pm 2002/01/17 12:17:50 1.6 +++ loncom/interface/groupsort.pm 2002/05/09 23:07:36 1.9 @@ -2,7 +2,7 @@ # The LON-CAPA group sort handler # Allows for sorting prior to import into RAT. # -# $Id: groupsort.pm,v 1.6 2002/01/17 12:17:50 harris41 Exp $ +# $Id: groupsort.pm,v 1.9 2002/05/09 23:07:36 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -46,6 +46,9 @@ my $iconpath; # variable to be accessibl # ---------------------------------------------------------------- Main Handler sub handler { my $r = shift; + + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, + ['acts','catalogmode','mode']); # color scheme my $fileclr = '#ffffe6'; @@ -55,7 +58,38 @@ sub handler { $r->send_http_header; return OK if $r->header_only; - # output start of web page +# finish_import looks different for graphical or "simple" RAT + my $finishimport=''; + if ($ENV{'form.mode'} eq 'simple') { + $finishimport=(<print(< @@ -75,24 +109,7 @@ function placeResourceInLastRow (title,u } opener.linkmode=opener.mostrecent; } -function finish_import() { - var linkflag=false; - for (var num=0; num