--- loncom/interface/lonblockingstatus.pm 2020/08/10 19:28:21 1.15 +++ loncom/interface/lonblockingstatus.pm 2020/09/22 12:19:15 1.16 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # displays the blocking status table # -# $Id: lonblockingstatus.pm,v 1.15 2020/08/10 19:28:21 raeburn Exp $ +# $Id: lonblockingstatus.pm,v 1.16 2020/09/22 12:19:15 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -44,7 +44,7 @@ sub handler { return OK if $r->header_only; my (%activities,$activity,$origurl); - map { $activities{$_} = 1; } ('boards','chat','com','blogs','groups','port','printout','docs','grades','passwd'); + map { $activities{$_} = 1; } ('boards','chat','com','blogs','groups','port','printout','docs','grades','passwd','search'); # determine what kind of blocking we want details for &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['activity','url']); @@ -52,9 +52,13 @@ sub handler { my $title = 'Communication Blocking Status Information'; - if (($activity eq 'docs') || ($activity eq 'printout')) { + if (($activity eq 'docs') || ($activity eq 'printout') || + ($activity eq 'grades') || ($activity eq 'passwd') || + ($activity eq 'search')) { $title = 'Blocking Status Information'; - $origurl = $env{'form.url'}; + if ($activity eq 'docs') { + $origurl = $env{'form.url'}; + } } $r->print(&Apache::loncommon::start_page($title,undef, {'only_body' => 1})); @@ -120,6 +124,7 @@ sub blockpage { docs => 'Course Content', passwd => 'Changing of passwords', grades => 'Course Gradebook', + search => 'Content Search', ); if ($activity eq 'groups' || $activity eq 'boards') { @@ -127,7 +132,7 @@ sub blockpage { $descs{'boards'} = 'Discussion posts in this community'; $descs{'groups'} = 'Groups in this community'; $descs{'docs'} = 'Community Content'; - $descs{'grades'} = 'Community Gradebook'; + $descs{'grades'} = 'Community Gradebook'; } } @@ -143,7 +148,7 @@ sub blockpage { my $showend = Apache::lonlocal::locallocaltime($endblock); my $output; - + if ( ref($description) ne 'ARRAY' ) { #default: $description is one of the above descriptions if ($activity eq 'docs') { @@ -151,7 +156,8 @@ sub blockpage { . ' view will be unavailable between [_1] and [_2] because' . ' access to selected '.$description.' is being blocked.' ,$showstart, $showend); - } elsif (($activity eq 'printout') || ($activity eq 'passwd') || ($activity eq 'grades')) { + } elsif (($activity eq 'printout') || ($activity eq 'passwd') || + ($activity eq 'grades') || ($activity eq 'search')) { $output = mt( $description . ' will be unavailable between [_1] and [_2] because' . ' this functionality is being blocked.'