';
+ $output .= ' ';
if (($env{'form.currcat_0'} ne 'instcode::0') &&
($env{'form.currcat_0'} ne '') && ($has_subcats)) {
my $include_subcat_status;
@@ -566,6 +1082,8 @@ sub additional_filters {
my $selfenroll_text;
if ($env{'form.currcat_0'} eq 'communities::0') {
$selfenroll_text = &mt('Only show communities which currently allow self-enrollment (or will allow it in the future)');
+ } elsif ($env{'form.currcat_0'} eq 'placement::0') {
+ $selfenroll_text = &mt('Only show placement tests which currently allow self-enrollment (or will allow it in the future)');
} else {
$selfenroll_text = &mt('Only show courses which currently allow self-enrollment (or will allow it in the future)');
}
@@ -573,7 +1091,7 @@ sub additional_filters {
' ';
- if ($is_dc) {
+ if ($is_dc || $canviewall) {
my ($titlesref,$orderref) = &get_statustitles('filters');
my $showdetails_status;
if ($env{'form.showdetails'}) {
@@ -584,7 +1102,6 @@ sub additional_filters {
$showhidden_status = 'checked="checked" ';
}
my @currstatuses = &Apache::loncommon::get_env_multiple('form.showcounts');
- my $dc_title = &Apache::lonnet::plaintext('dc');
my ($details_text,$hidden_text,$statusdisplay,$cellborder);
my $wasactivedisplay = 'none';
if ($env{'form.showdetails'}) {
@@ -595,25 +1112,31 @@ sub additional_filters {
}
} else {
$statusdisplay = 'none';
- $cellborder = 'border-left: 0px';
+ $cellborder = 'border-left: 0px;';
}
+ $cellborder .= ' vertical-align: top;';
if ($env{'form.currcat_0'} eq 'communities::0') {
- $details_text = &mt('Show full details for each community ([_1] only)',$dc_title);
- $hidden_text = &mt('Include communities set to be hidden from catalog ([_1] only)',$dc_title);
+ $details_text = &mt('Show full details for each community (domain staff only)');
+ $hidden_text = &mt('Include communities set to be hidden from catalog (domain staff only)');
+ } elsif ($env{'form.currcat_0'} eq 'placement::0') {
+ $details_text = &mt('Show full details for each placement test (domain staff only)');
+ $hidden_text = &mt('Include placement tests set to be hidden from catalog (domain staff only)');
} else {
- $details_text = &mt('Show full details for each course ([_1] only)',$dc_title);
- $hidden_text = &mt('Include courses set to be hidden from catalog ([_1] only)',$dc_title);
+ $details_text = &mt('Show full details for each course (domain staff only)');
+ $hidden_text = &mt('Include courses set to be hidden from catalog (domain staff only)');
+ }
+ if ($is_dc) {
+ $output .= ''.
+ ' '."\n";
}
$output .= ''.
- ' '."\n".
- ''.
' | '."\n".
- ''.
- ' ';
+ $details_text.' '."\n".
+ ''.
+ ' ';
if (ref($orderref) eq 'ARRAY') {
if (@{$orderref} > 0) {
foreach my $type (@{$orderref}) {
@@ -643,13 +1166,14 @@ sub additional_filters {
date => 'immediately prior to specific date:',
);
my @statuses = &Apache::loncommon::get_env_multiple('form.showcounts');
- $output .= ' ';
+ my $wasactivetext;
if ($checked) {
- $output .= &get_wasactive_text();
+ $wasactivetext = &get_wasactive_text();
}
- $output .= ''.
- ' '.
- ' ';
+ $output .= ''."\n".
+ ' ';
+ $output .= ' ';
}
$output .= ' ';
}
}
}
- $output .= ' | ';
+ $output .= '';
} else {
- $output .= '';
+ $output .= '';
}
- $output .= '