--- loncom/interface/lonsimplepage.pm 2008/01/28 10:32:47 1.54 +++ loncom/interface/lonsimplepage.pm 2008/03/20 12:06:51 1.56 @@ -1,7 +1,7 @@ # The LearningOnline Network # Simple Page Editor # -# $Id: lonsimplepage.pm,v 1.54 2008/01/28 10:32:47 foxr Exp $ +# $Id: lonsimplepage.pm,v 1.56 2008/03/20 12:06:51 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -216,7 +216,9 @@ sub handler { if ($allowed) { $r->print('

'. - &Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes','Help with filling in text boxes').'
'.&mt('Show Student View').''. + &Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes')) + .'
' + .''.&mt('Show Student View').''. &Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView').'

'); } elsif ($privileged and $target ne 'tex') { my $edittext = &mt('Edit'); @@ -283,9 +285,9 @@ sub handler { $r->print( '
'. ''. - '

Upload a Photo

'. + '

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

'. ''. - ''. + ''. '
'. ''); } @@ -299,11 +301,9 @@ sub handler { if ($allowed) { $message=&Apache::lonspeller::markeduptext($message); } - &Apache::lonnet::logthis("Prior to texconvert: '$message'"); if ($target ne 'tex') { $message=&Apache::lontexconvert::msgtexconverted($message); } - &Apache::lonnet::logthis("After texconvert: '$message'"); if ($field eq 'abb_links' && $group ne '') { $r->print('
'); @@ -320,9 +320,9 @@ sub handler { if ($allowed) { if ($env{'form.grade_target'} ne 'tex') { $r->print( - '
Title
'); + ''); } else { my $safeinit; $r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit)); @@ -331,10 +331,8 @@ sub handler { } else { if (($field ne 'bbb_content') || ($allowed)) { if ($target ne 'tex') { - &Apache::lonnet::logthis("contents in web presentation '$syllabusfields{$field}'"); $r->print('

'.$syllabusfields{$field}.'

'); } else { - &Apache::lonnet::logthis("contents in tex presentation '$syllabusfields{$field}'"); my $safeinit; $r->print(&Apache::lonxml::xmlparse($r,'tex','

'.$syllabusfields{$field}.'

')); } @@ -350,7 +348,7 @@ sub handler { if ($target ne 'tex') { $r->print('
'); + ''); } else { my $safeinit; $r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit));