--- loncom/interface/coursecatalog.pm 2009/02/07 22:03:45 1.48 +++ loncom/interface/coursecatalog.pm 2009/03/18 20:58:02 1.50 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for displaying the course catalog interface # -# $Id: coursecatalog.pm,v 1.48 2009/02/07 22:03:45 raeburn Exp $ +# $Id: coursecatalog.pm,v 1.50 2009/03/18 20:58:02 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -123,11 +123,16 @@ ENDSCRIPT } } else { my (%add_entries); + my ($currdepth,$deeper) = &get_depth_values(); if ($selitem) { + my $alert = &mt('Choose a subcategory to display'); + if (!$deeper) { + $alert = &mt('Choose a category to display'); + } $catjs .= <print('
'. &additional_filters($codedom,$has_subcats)."\n"); - my ($currdepth,$deeper) = &get_depth_values(); $r->print(''."\n"); for (my $i=0; $i<$deeper; $i++) { @@ -376,7 +380,7 @@ function setElements() { sub cat_header { my ($r,$codedom,$js,$add_entries,$catlinks,$numtitles) = @_; my $start_page = - &Apache::loncommon::start_page('Course Catalog',$js, + &Apache::loncommon::start_page('Other',$js, { 'add_entries' => $add_entries, 'no_inline_link' => 1,});