--- loncom/interface/lonsimplepage.pm 2007/07/13 00:29:21 1.51 +++ loncom/interface/lonsimplepage.pm 2008/01/28 10:32:47 1.54 @@ -1,7 +1,7 @@ # The LearningOnline Network # Simple Page Editor # -# $Id: lonsimplepage.pm,v 1.51 2007/07/13 00:29:21 albertel Exp $ +# $Id: lonsimplepage.pm,v 1.54 2008/01/28 10:32:47 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -91,7 +91,7 @@ sub handler { my %curr_group = (); my %groupinfo = (); if ($db_name =~ /^grppage_/) { - my ($group)=(split(m{/},$r->uri))[4]; + $group = (split(m{/},$r->uri))[4]; $group =~ s/\W//g; my %curr_groups = &Apache::longroup::coursegroups($dom,$crs,$group); if (!%curr_groups) { @@ -286,7 +286,8 @@ sub handler { '

Upload a Photo

'. ''. ''. - '
'); + '
'. + ''); } foreach my $field (sort(keys(%syllabusfields))) { if (($syllabus{$field}) || ($allowed) || @@ -298,7 +299,11 @@ sub handler { if ($allowed) { $message=&Apache::lonspeller::markeduptext($message); } - $message=&Apache::lontexconvert::msgtexconverted($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('
'); @@ -326,8 +331,10 @@ 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}.'

')); }