--- loncom/interface/groupsort.pm 2013/08/08 12:08:01 1.68.6.6
+++ loncom/interface/groupsort.pm 2012/06/30 23:02:20 1.69
@@ -2,7 +2,7 @@
# The LON-CAPA group sort handler
# Allows for sorting prior to import into RAT.
#
-# $Id: groupsort.pm,v 1.68.6.6 2013/08/08 12:08:01 raeburn Exp $
+# $Id: groupsort.pm,v 1.69 2012/06/30 23:02:20 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -152,23 +152,12 @@ sub readfromfile {
&Apache::lonnet::filelocation('',$env{'form.readfile'}));
} else {
my $parser = HTML::TokeParser->new(\$cont);
- my ($token,$donechk,$allmaps);
- $allmaps = {};
+ my $token;
while ($token = $parser->get_token) {
if ($token->[0] eq 'S') {
if ($token->[1] eq 'resource') {
if ($env{'form.recover'}) {
if ($token->[2]->{'type'} ne 'zombie') { next; }
- if ($token->[2]->{'src'} =~ /\.(page|sequence)$/) {
- if (($env{'request.course.id'}) &&
- ($env{'form.readfile'} =~ m{/default(|_\d+)\.(page|sequence)$})) {
- unless ($donechk) {
- $allmaps = &Apache::loncommon::allmaps_incourse();
- $donechk = 1;
- }
- }
- if ($allmaps->{$token->[2]->{'src'}}) { next; }
- }
} else {
if ($token->[2]->{'type'} eq 'zombie') { next; }
}
@@ -192,6 +181,7 @@ sub readfromfile {
}
}
+
# ---------------------------------------------------------------- Main Handler
sub handler {
my $r = shift;
@@ -339,8 +329,8 @@ END
if ($env{'form.recover'}) {
$r->print(<