--- loncom/interface/lonsyllabus.pm 2010/03/10 14:20:53 1.108 +++ loncom/interface/lonsyllabus.pm 2010/08/07 19:23:51 1.110 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.108 2010/03/10 14:20:53 wenzelju Exp $ +# $Id: lonsyllabus.pm,v 1.110 2010/08/07 19:23:51 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -282,10 +282,20 @@ ENDSCRIPT #----------Print last update my $lastmod=$syllabus{'uploaded.lastmodified'}; $lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); - my $who = &Apache::loncommon::aboutmewrapper( - &Apache::loncommon::plainname($syllabus{'uploaded.name'}, - $syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'}, - $syllabus{'uploaded.domain'}); + my $who; + if (($env{'user.name'} ne 'public') && ($env{'user.domain'} ne 'public')) { + $who = &Apache::loncommon::aboutmewrapper( + &Apache::loncommon::plainname($syllabus{'uploaded.name'}, + $syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'}, + $syllabus{'uploaded.domain'}); + } else { + # Public user? + # Only display name of user, but no link to personal information page + $who = &Apache::loncommon::plainname( + $syllabus{'uploaded.name'}, + $syllabus{'uploaded.domain'}); + } + if ($target ne 'tex') { $r->print('
'.&mt('Last updated').': '. $lastmod . ' '. @@ -376,7 +386,6 @@ ENDSCRIPT $r->print('
'. ''); } - my @htmlids=(); my $url_include_handler = sub { my ($r, $field, $message, $group, $data_ref, $fields_ref, $target, $allowed) = @_; my %data = %{$data_ref}; @@ -418,11 +427,11 @@ ENDSCRIPT } }; my %custom_hash = ( 'lll_includeurl' => $url_include_handler ); - @htmlids = &Apache::lontemplate::print_template_fields($r, \%syllabus, \%syllabusfields, + &Apache::lontemplate::print_template_fields($r, \%syllabus, \%syllabusfields, $target, $allowed, Apache::lontemplate->RICH_TEXT_DETECT_HTML, \%custom_hash); if ($allowed) { $r->print('
'. - &Apache::lonhtmlcommon::htmlareaselectactive(@htmlids)); + &Apache::lonhtmlcommon::htmlareaselectactive()); } } else { if ($target ne 'tex') {$r->print('

');} else {$r->print('\par ');}