--- loncom/interface/lonrequestcourse.pm 2009/08/05 23:44:52 1.4 +++ loncom/interface/lonrequestcourse.pm 2009/08/06 00:49:31 1.5 @@ -1,7 +1,7 @@ # The LearningOnline Network # Request a course # -# $Id: lonrequestcourse.pm,v 1.4 2009/08/05 23:44:52 raeburn Exp $ +# $Id: lonrequestcourse.pm,v 1.5 2009/08/06 00:49:31 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -115,7 +115,7 @@ sub handler { my %trail = ( crstype => 'Course Request Action', codepick => 'Category', - courseinfo => 'Information', + courseinfo => 'Description', enrollment => 'Enrollment', personnel => 'Personnel', review => 'Review', @@ -969,39 +969,55 @@ sub print_review { ''.&Apache::lonlocal::locallocaltime($startenroll).''. ''.&Apache::lonlocal::locallocaltime($endenroll).''; $section_values = ''; + my $secinfo; if ($env{'form.sectotal'} > 0) { for (my $i=0; $i<$env{'form.sectotal'}; $i++) { if ($env{'form.sec_'.$i}) { - $section_values .= $env{'form.secnum_'.$i}; + $secinfo .= ''.$env{'form.secnum_'.$i}.''; if ($env{'form.loncapasec_'.$i} ne '') { - $section_values .= ' => '.$env{'form.loncapasec_'.$i}; + $secinfo .= $env{'form.loncapasec_'.$i}; + } else { + $secinfo .= &mt('None'); } - $section_values .= '
'; + $secinfo .= ''; } } } + if ($secinfo) { + $section_values .= ''. + ''.$secinfo. + '
'. + &mt('Institutional section').''.&mt('LON-CAPA section').'
'; + } $section_values .= ''; + my $xlistinfo; if ($env{'form.crosslisttotal'}) { for (my $i=0; $i<$env{'form.crosslisttotal'}; $i++) { if ($env{'form.crosslist_'.$i}) { - if (ref($codetitles) eq 'ARRAY') { - if (@{$codetitles} > 0) { - foreach my $item (@{$codetitles}) { - $section_values .= $env{'form.crosslist_'.$i.'_'.$item}; + $xlistinfo .= ''; + if (ref($code_order) eq 'ARRAY') { + if (@{$code_order} > 0) { + foreach my $item (@{$code_order}) { + $xlistinfo .= $env{'form.crosslist_'.$i.'_'.$item}; } - } else { - $section_values .= $env{'form.crosslist_'.$i.'_instsec'}; } - } else { - $section_values .= $env{'form.crosslist_'.$i.'_instsec'}; } + $xlistinfo .= $env{'form.crosslist_'.$i.'_instsec'}.''; if ($env{'form.crosslist_'.$i.'_lcsec'}) { - $section_values .= ' => '.$env{'form.crosslist_'.$i.'_lcsec'}; + $xlistinfo .= $env{'form.crosslist_'.$i.'_lcsec'}; + } else { + $xlistinfo .= &mt('None'); } - $section_values .= '
'; + $xlistinfo .= ''; } } } + if ($xlistinfo) { + $section_values .= ''. + ''.$xlistinfo. + '
'. + &mt('Institutional course/section').''.&mt('LON-CAPA section').'
'; + } $section_values .= ''; } } @@ -1085,7 +1101,7 @@ sub print_review { ''.$owneremail.''. ''."\n". &Apache::lonhtmlcommon::row_closure(). - &Apache::lonhtmlcommon::row_title(&mt('Information')). + &Apache::lonhtmlcommon::row_title(&mt('Description')). ''.$inst_headers.''."\n". ''.$inst_values.'
'."\n". &Apache::lonhtmlcommon::row_closure().