--- loncom/interface/courseclassifier.pm 2011/02/25 02:40:42 1.13 +++ 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.13 2011/02/25 02:40:42 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') { @@ -869,7 +895,7 @@ sub instcode_search_str { } sub instcode_from_selectors { - my ($cdom) = @_; + my ($cdom,$noregexps) = @_; my $instcode; my $caller = 'global'; my (%coursecodes,%codes,@codetitles,%cat_titles,%cat_order, @@ -890,7 +916,11 @@ sub instcode_from_selectors { my $category = $local_to_standard{$loctitle}; if ($category ne '') { if ($env{'form.'.$category} eq '-1' ) { - $instcode .= $codedefaults{$category}; + if ($noregexps) { + $instcode .= ' '; + } else { + $instcode .= $codedefaults{$category}; + } } else { $instcode .= $env{'form.'.$category}; }