--- loncom/interface/lonsyllabus.pm 2007/07/27 00:24:50 1.62 +++ loncom/interface/lonsyllabus.pm 2008/07/11 14:55:21 1.64 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.62 2007/07/27 00:24:50 albertel Exp $ +# $Id: lonsyllabus.pm,v 1.64 2008/07/11 14:55:21 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -149,9 +149,14 @@ sub handler { foreach (split(/\,/,$coursepersonnel{$element})) { my ($puname,$pudom)=split(/\:/,$_); if ($target ne 'tex') { - $r->print(' '.&Apache::loncommon::aboutmewrapper( - &Apache::loncommon::plainname($puname, - $pudom),$puname,$pudom)); + my $courseperson = &Apache::loncommon::plainname($puname,$pudom); + if (($env{'user.name'} eq '') || ($env{'user.name'} eq 'public') || + ($env{'user.domain'} eq '') || ($env{'user.domain'} eq 'public')) { + $r->print(' '.$courseperson); + } else { + $r->print(' '.&Apache::loncommon::aboutmewrapper($courseperson), + $puname,$pudom); + } } else { $r->print(' '.&Apache::loncommon::plainname($puname, $pudom).' '); @@ -189,7 +194,7 @@ sub handler { } if ($allowed) { $r->print('

'. -&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes','Help with filling in text boxes').'

'.&mt('This syllabus can be publicly viewed at') +&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes')).'

'.&mt('This syllabus can be publicly viewed at') .' http://'. &Apache::lonnet::hostname($homeserver).$r->uri.''. &Apache::loncommon::help_open_topic('Syllabus_ExtLink').'

'. @@ -327,7 +332,7 @@ sub handler { if ($allowed) { $r->print('
'); + ' '); } } } @@ -338,7 +343,7 @@ sub handler { if ($target ne 'tex') {$r->print('

');} else {$r->print('\\\\');} } else { if ($target ne 'tex') {$r->print('

');} else {$r->print('\par ');} - $r->print('No syllabus information provided.'); + $r->print(&mt('No syllabus information provided.')); if ($target ne 'tex') {$r->print('

');} } if ($target ne 'tex') {