version 1.400, 2008/04/21 15:27:34
|
version 1.403, 2008/05/30 21:33:21
|
Line 3626 sub dump_course_id_handler {
|
Line 3626 sub dump_course_id_handler {
|
my $userinput = "$cmd:$tail"; |
my $userinput = "$cmd:$tail"; |
|
|
my ($udom,$since,$description,$instcodefilter,$ownerfilter,$coursefilter, |
my ($udom,$since,$description,$instcodefilter,$ownerfilter,$coursefilter, |
$typefilter,$regexp_ok,$rtn_as_hash,$selfenrollonly) =split(/:/,$tail); |
$typefilter,$regexp_ok,$rtn_as_hash,$selfenrollonly,$catfilter) =split(/:/,$tail); |
my $now = time; |
my $now = time; |
if (defined($description)) { |
if (defined($description)) { |
$description=&unescape($description); |
$description=&unescape($description); |
Line 3667 sub dump_course_id_handler {
|
Line 3667 sub dump_course_id_handler {
|
if (defined($regexp_ok)) { |
if (defined($regexp_ok)) { |
$regexp_ok=&unescape($regexp_ok); |
$regexp_ok=&unescape($regexp_ok); |
} |
} |
|
if (defined($catfilter)) { |
|
$catfilter=&unescape($catfilter); |
|
} |
my $unpack = 1; |
my $unpack = 1; |
if ($description eq '.' && $instcodefilter eq '.' && $coursefilter eq '.' && |
if ($description eq '.' && $instcodefilter eq '.' && $coursefilter eq '.' && |
$typefilter eq '.') { |
$typefilter eq '.') { |
Line 3705 sub dump_course_id_handler {
|
Line 3708 sub dump_course_id_handler {
|
next; |
next; |
} |
} |
} |
} |
|
if ($catfilter ne '') { |
|
next if ($items->{'category'} ne $catfilter); |
|
} |
} |
} |
} else { |
} else { |
|
next if ($catfilter ne ''); |
|
next if ($selfenrollonly); |
$is_hash = 0; |
$is_hash = 0; |
my @courseitems = split(/:/,$value); |
my @courseitems = split(/:/,$value); |
$lasttime = pop(@courseitems); |
$lasttime = pop(@courseitems); |
next if ($lasttime<$since); |
if ($hashref->{$lasttime_key} eq '') { |
|
next if ($lasttime<$since); |
|
} |
($val{'descr'},$val{'inst_code'},$val{'owner'},$val{'type'}) = @courseitems; |
($val{'descr'},$val{'inst_code'},$val{'owner'},$val{'type'}) = @courseitems; |
} |
} |
my $match = 1; |
my $match = 1; |