--- loncom/interface/coursecatalog.pm 2008/05/29 04:29:33 1.28
+++ loncom/interface/coursecatalog.pm 2008/05/29 19:58:32 1.30
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler for displaying the course catalog interface
#
-# $Id: coursecatalog.pm,v 1.28 2008/05/29 04:29:33 raeburn Exp $
+# $Id: coursecatalog.pm,v 1.30 2008/05/29 19:58:32 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -154,6 +154,9 @@ sub instcode_course_selector {
my $totcodes = 0;
my $jscript = '';
my ($numtitles,$lasttitle);
+ my %add_entries = (topmargin => "0",
+ marginheight => "0",);
+ my $js;
$totcodes = &Apache::courseclassifier::retrieve_instcodes(\%coursecodes,$codedom);
if ($totcodes > 0) {
$format_reply = &Apache::lonnet::auto_instcode_format($caller,$codedom,\%coursecodes,\%codes,\@codetitles,\%cat_titles,\%cat_order);
@@ -221,10 +224,8 @@ function setCourseId(caller) {
}\n|;
}
}
- my $js = '';
- my %add_entries = (topmargin => "0",
- marginheight => "0",);
+ $js = '';
if (($env{'form.state'} eq 'listing') && ($numtitles > 0)) {
$add_entries{'onLoad'} = 'setElements()';
}
@@ -298,7 +299,13 @@ function setCourseId(caller) {
$r->print('
');
}
} else {
- $r->print('
'.&mt('No official courses to display for [_1].',$domdesc));
+ &cat_header($r,$codedom,$js,\%add_entries,$catlinks,$numtitles);
+ my $cat_maxdepth = $env{'form.catalog_maxdepth'};
+ $r->print('