--- loncom/interface/coursecatalog.pm 2010/10/07 14:41:49 1.65 +++ loncom/interface/coursecatalog.pm 2010/12/20 22:56:56 1.66 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for displaying the course catalog interface # -# $Id: coursecatalog.pm,v 1.65 2010/10/07 14:41:49 raeburn Exp $ +# $Id: coursecatalog.pm,v 1.66 2010/12/20 22:56:56 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1017,7 +1017,13 @@ sub courseinfo_row { if (($info->{'selfenroll_start'} > 0) && ($info->{'selfenroll_start'} > $now)) { $output .= ''.&mt('Starts: [_1]',''.$showstart.'').'
'.&mt('Ends: [_1]',''.$showend.'').''; } else { - $output .= ''.&mt('Enroll in course').''; + $output .= ''.&mt('Enroll in course').'
'; + if ($info->{'selfenroll_end'} == 0) { + $output .= &mt('Available permanently'); + } elsif ($info->{'selfenroll_end'} > $now) { + $output .= &mt('Self-enrollment ends: [_1]',''.$showend.''); + } + $output .= ''; } $selfenroll = 1; }