--- loncom/interface/lonsyllabus.pm 2003/02/10 16:22:28 1.11 +++ loncom/interface/lonsyllabus.pm 2003/02/20 19:41:26 1.13 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.11 2003/02/10 16:22:28 www Exp $ +# $Id: lonsyllabus.pm,v 1.13 2003/02/20 19:41:26 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -97,7 +97,8 @@ ENDDOCUMENT if ($forcestudent) { $allowed=0; } } if ($allowed) { - $r->print('

This syllabus can be publically viewed at http://'. + $r->print('

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

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

'. '

Show Student View'. @@ -171,11 +172,9 @@ ENDDOCUMENT # embed style? my ($curfext)=($filelink=~/\.([^\.]+)$/); my $embstyle=&Apache::loncommon::fileembstyle($curfext); - if ($embstyle eq 'ssi') { + if (($embstyle eq 'ssi') || ($curfext=~/\/$/)) { # make ssi call and remove everything but the body contents - $output=&Apache::lonnet::ssi($filelink); - $output=~s/^.*\]*\>//si; - $output=~s/\<\/body\s*\>.*$//si; + $output=&Apache::lonnet::ssi_body($filelink); } elsif ($embstyle eq 'img') { # embed as an image $output='';