--- loncom/interface/coursecatalog.pm 2015/05/19 18:07:35 1.87 +++ loncom/interface/coursecatalog.pm 2018/04/29 00:31:25 1.88.2.2 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for displaying the course catalog interface # -# $Id: coursecatalog.pm,v 1.87 2015/05/19 18:07:35 raeburn Exp $ +# $Id: coursecatalog.pm,v 1.88.2.2 2018/04/29 00:31:25 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -80,7 +80,7 @@ sub handler { my %domconfig = &Apache::lonnet::get_dom('configuration',['coursecategories'],$codedom); my $knownuser = &user_is_known(); - my $canviewall = &canview_all(); + my $canviewall = &canview_all($knownuser,$codedom); my ($cathash,$cattype); if (ref($domconfig{'coursecategories'}) eq 'HASH') { @@ -295,6 +295,7 @@ ENDTOGGJS if (!$deeper) { $alert = &mt('Choose a category to display'); } + &js_escape(\$alert); $catjs .= <