--- loncom/interface/coursecatalog.pm 2006/09/13 21:35:46 1.4 +++ loncom/interface/coursecatalog.pm 2006/09/25 00:16:56 1.5 @@ -60,6 +60,7 @@ sub handler { my $totcodes = 0; my $jscript = ''; my $formname = 'coursecatalog'; + my $domdesc = $Apache::lonnet::domaindescription{$codedom}; $totcodes = &Apache::lonsupportreq::retrieve_instcodes(\%coursecodes,$codedom,$totcodes); if ($totcodes > 0) { if ($ccode eq '') { @@ -108,7 +109,6 @@ function changeSort(caller) { $r->print($start_page); my $numtitles = @codetitles; - my $domdesc = $Apache::lonnet::domaindescription{$codedom}; $r->print('

'.&mt('Display information about official [_1] classes for which LON-CAPA courses have been created:',$domdesc).'

'); $r->print(&mt('Choose which course(s) to list.
')); $r->print('
'); @@ -163,11 +163,17 @@ function changeSort(caller) { } } $r->print('
'); + } else { + $r->print(&Apache::loncommon::start_page('Course Catalog','', + { + 'no_inline_link' => 1,})); + $r->print('
'.&mt('No official courses to display for [_1].',$domdesc)); } if ($env{'form.state'} eq 'listing') { $r->print('

'.&print_course_listing($codedom)); } $r->print(&Apache::loncommon::end_page()); + return OK; } sub print_course_listing {