--- loncom/interface/courseclassifier.pm 2011/02/25 02:07:46 1.12 +++ loncom/interface/courseclassifier.pm 2014/03/11 21:42:18 1.16 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Utilities for classifying courses based on institutional code # -# $Id: courseclassifier.pm,v 1.12 2011/02/25 02:07:46 raeburn Exp $ +# $Id: courseclassifier.pm,v 1.16 2014/03/11 21:42:18 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -579,7 +579,7 @@ sub build_instcode_selectors { @longitems = @items; } $output .= ''.$codetitles->[$k].'
'."\n". - ''. + &mt('Yes').''.(' 'x3).'
'. + &build_instcode_selectors($numtitles,$lasttitle,\%cat_items,$codetitles, + \%cat_titles,\%cat_order)."\n". + ''."\n". + ''."\n"; + } + return ($output,$jscript,$numtitles); +} + sub recurse_options { my ($currkey,$currlist,$level,$cat,$cat_options,$data,$by_year,$by_sem,$by_dept) = @_; if (ref($currlist) eq 'HASH') { @@ -688,6 +714,8 @@ sub build_javascript { sub javascript_select_filler { my ($formname,$scripttext,$codetitles,$longtitles_str,$allidlist,$officialjs) = @_; + my $all = &mt('All'); + my $nocrs = &mt('No courses'); my $output = < -1) { - document.$formname.Number.options[0] = new Option('All','0',false,false); + document.$formname.Number.options[0] = new Option('$all','0',false,false); for (var k=0; k