[LON-CAPA-cvs] cvs: loncom /interface coursecatalog.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 13 Sep 2006 21:35:46 -0000
albertel Wed Sep 13 17:35:46 2006 EDT
Modified files:
/loncom/interface coursecatalog.pm
Log:
- style
Index: loncom/interface/coursecatalog.pm
diff -u loncom/interface/coursecatalog.pm:1.3 loncom/interface/coursecatalog.pm:1.4
--- loncom/interface/coursecatalog.pm:1.3 Thu Aug 31 08:30:30 2006
+++ loncom/interface/coursecatalog.pm Wed Sep 13 17:35:46 2006
@@ -123,13 +123,13 @@
my @items = ();
my @longitems = ();
if ($idlist{$codetitles[0]} =~ /","/) {
- @items = split/","/,$idlist{$codetitles[0]};
+ @items = split(/","/,$idlist{$codetitles[0]});
} else {
$items[0] = $idlist{$codetitles[0]};
}
if (defined($idlist_titles{$codetitles[0]})) {
if ($idlist_titles{$codetitles[0]} =~ /","/) {
- @longitems = split/","/,$idlist_titles{$codetitles[0]};
+ @longitems = split(/","/,$idlist_titles{$codetitles[0]});
} else {
$longitems[0] = $idlist_titles{$codetitles[0]};
}
@@ -165,7 +165,7 @@
$r->print('<br /><input type="hidden" name="state" value="listing" /><input type="hidden" name="sortby" value="" /><input type="submit" name="catalogfilter" value="'.&mt('Display courses').'" /></form>');
}
if ($env{'form.state'} eq 'listing') {
- $r->print('<br /><br >'.&print_course_listing($codedom));
+ $r->print('<br /><br />'.&print_course_listing($codedom));
}
$r->print(&Apache::loncommon::end_page());
}
@@ -220,7 +220,7 @@
$cleandesc=~s/'/\\'/g;
my ($cdom,$cnum)=split(/\_/,$course);
- my ($desc,$instcode,$owner,$ttype) = split/:/,$courses{$course};
+ my ($desc,$instcode,$owner,$ttype) = split(/:/,$courses{$course});
$owner = &unescape($owner);
my ($ownername,$ownerdom);
if ($owner =~ /:/) {
@@ -290,7 +290,7 @@
my @classids;
my @crosslistings;
$idx{'status'} = &Apache::loncoursedata::CL_STATUS();
- my %status_title = &Apache::lonlocal::texthash (
+ my %status_title = &Apache::lonlocal::texthash(
Expired => 'Previous access',
Active => 'Current access',
Future => 'Future access',
@@ -300,7 +300,7 @@
Active => 0,
Future => 0,
);
- while (my ($student,$data) = each %$classlist) {
+ while (my ($student,$data) = each(%$classlist)) {
$student_count{$data->[$idx{'status'}]} ++;
}
my $seclist = &identify_sections($coursehash{'internal.sectionnums'});
@@ -387,7 +387,7 @@
my ($seclist) = @_;
my @secnums;
if ($seclist =~ /,/) {
- my @sections = split/,/,$seclist;
+ my @sections = split(/,/,$seclist);
foreach my $sec (@sections) {
$sec =~ s/:[^:]*$//;
push(@secnums,$sec);
@@ -395,8 +395,8 @@
} else {
if ($seclist =~ m/^([^:]+):/) {
my $sec = $1;
- if (!grep/^$sec$/,@secnums) {
- push (@secnums,$sec);
+ if (!grep(/^\Q$sec\E$/,@secnums)) {
+ push(@secnums,$sec);
}
}
}
@@ -418,7 +418,7 @@
if (&Apache::lonnet::auto_validate_class_sec($cdom,$cnum,$owner,
$class) eq 'ok') {
if (!grep(/^\Q$sec$\E/,@{$validations{'sections'}})) {
- push (@{$validations{'sections'}},$sec);
+ push(@{$validations{'sections'}},$sec);
$totalitems ++;
}
}
@@ -429,7 +429,7 @@
if (&Apache::lonnet::auto_validate_class_sec($cdom,$cnum,$owner,
$item) eq 'ok') {
if (!grep(/^\Q$item$\E/,@{$validations{'xlists'}})) {
- push (@{$validations{'xlists'}},$item);
+ push(@{$validations{'xlists'}},$item);
$totalitems ++;
}
}