--- loncom/interface/lonpickcourse.pm 2009/11/04 14:12:19 1.90 +++ loncom/interface/lonpickcourse.pm 2009/12/02 18:33:27 1.91 @@ -1,7 +1,7 @@ # The LearningOnline Network # Pick a course # -# $Id: lonpickcourse.pm,v 1.90 2009/11/04 14:12:19 raeburn Exp $ +# $Id: lonpickcourse.pm,v 1.91 2009/12/02 18:33:27 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -589,27 +589,29 @@ sub build_filters { $filter->{'sincefilter'} = $env{'form.sincefilter'}; $filter->{'sincefilter'} =~ s/[^\d-]//g; if (!$filter->{'sincefilter'}) { $filter->{'sincefilter'}=-1; } - $sincefilterform=&Apache::loncommon::select_form($filter->{'sincefilter'}, - 'sincefilter',('-1'=>'', - '86400' => 'today', - '604800' => 'last week', - '2592000' => 'last month', - '7776000' => 'last three months', - '15552000' => 'last six months', - '31104000' => 'last year', - 'select_form_order' => - ['-1','86400','604800','2592000','7776000', - '15552000','31104000'])); - - my %lt = ( - 'cac' => &mt("$type Activity"), - 'cde' => &mt("$type Title"), - 'cdo' => &mt("$type Domain"), - 'ins' => &mt('Institutional Code'), - 'inc' => &mt('Institutional Categorization'), - 'cow' => &mt("$type Owner/Co-owner"), - 'cop' => &mt("$type Personnel Includes"), - 'cog' => &mt('Type') + $sincefilterform=&Apache::loncommon::select_form( + $filter->{'sincefilter'}, + 'sincefilter', + ( '-1' => '', + '86400' => &mt('today'), + '604800' => &mt('last week'), + '2592000' => &mt('last month'), + '7776000' => &mt('last three months'), + '15552000' => &mt('last six months'), + '31104000' => &mt('last year'), + 'select_form_order' => + ['-1','86400','604800','2592000','7776000', + '15552000','31104000'])); + + my %lt = &Apache::lonlocal::texthash( + 'cac' => "$type Activity", + 'cde' => "$type Title", + 'cdo' => "$type Domain", + 'ins' => 'Institutional Code', + 'inc' => 'Institutional Categorization', + 'cow' => "$type Owner/Co-owner", + 'cop' => "$type Personnel Includes", + 'cog' => 'Type', ); if (($env{'form.form'} eq 'ccrs') || ($env{'form.form'} eq 'requestcrs')) {