--- loncom/interface/lonaboutme.pm 2004/05/03 19:04:49 1.22 +++ loncom/interface/lonaboutme.pm 2004/07/15 21:08:45 1.28 @@ -1,7 +1,7 @@ # The LearningOnline Network # "About Me" Personal Information # -# $Id: lonaboutme.pm,v 1.22 2004/05/03 19:04:49 sakharuk Exp $ +# $Id: lonaboutme.pm,v 1.28 2004/07/15 21:08:45 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -107,7 +107,7 @@ ENDDOCUMENT $allowed=(($ENV{'user.name'} eq $cnum) && ($ENV{'user.domain'} eq $cdom)); - if ($forcestudent) { $allowed=0; } + if ($forcestudent or $target eq 'tex') { $allowed=0; } if ($allowed) { if ($target ne 'tex') { @@ -153,10 +153,14 @@ ENDDOCUMENT if ($syllabus{'uploaded.photourl'}) { &Apache::lonnet::allowuploaded('/adm/aboutme', $syllabus{'uploaded.photourl'}); - $r->print(''); + my $image=''; + if ($target eq 'tex') { + $image=&Apache::lonxml::xmlparse($r,'tex',$image); + } + $r->print($image); } - if ($allowed & $target ne 'tex') { + if ($allowed) { $r->print( '
'. '

'.&mt('Upload a Photo').'

'. @@ -176,9 +180,9 @@ ENDDOCUMENT $message.''); } else { $r->print('\\\\\textbf{'.$syllabusfields{$_}.'}\\\\'. - &Apache::lonxml::xmlparse($r,' ',$message).'\\\\'); + &Apache::lonxml::xmlparse($r,'tex',$message).'\\\\'); } - if ($allowed and $target ne 'tex') { + if ($allowed) { $r->print('
'); if ($target ne 'tex') { $r->print('

'. &mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'

'. @@ -205,9 +210,7 @@ ENDDOCUMENT $r->print(&Apache::loncommon::noteswrapper('Add Records',$cnum,$cdom)); } else { $r->print('\\\\\textbf{'.&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'}\\\\'.&mt('Shared by course faculty and staff').'\\\\\\\\'); - my $mess=&Apache::lonmsg::disfacetoface($r,$cnum,$cdom); - # $r->print(' '.&Apache::lonxml::xmlparse($r,' ',$mess).' '); - $r->print(' >>>>'.$mess.'<<<< '); + &Apache::lonmsg::disfacetoface($r,$cnum,$cdom); } } }