--- loncom/interface/lonsyllabus.pm 2017/03/14 21:27:51 1.138.2.2 +++ loncom/interface/lonsyllabus.pm 2016/02/20 00:12:40 1.140 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.138.2.2 2017/03/14 21:27:51 raeburn Exp $ +# $Id: lonsyllabus.pm,v 1.140 2016/02/20 00:12:40 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -116,7 +116,7 @@ sub handler { } unless ($allowed && $forceedit) { my $file=&Apache::lonnet::filelocation("",$item); - if ($file =~ /\.(tex|x?html?)$/) { + if ($file =~ /\.(tex|x?html?)$/) { my $filetype = $1; my $filecontents=&Apache::lonnet::getfile($file); if ($filecontents eq -1) { @@ -168,17 +168,8 @@ sub handler { &mt('Print the syllabus directly from your web browser'). '\end{document}'); } else { - my $brcrum; - if ($env{'form.folderpath'} =~ /^supplemental/) { - my $title = $env{'form.title'}; - if ($title eq '') { - $title = &mt('Syllabus'); - } - $brcrum = - &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); - } - $r->print(&Apache::lonwrapper::wrapper($item,$brcrum,$env{'request.use_absolute'}, - undef,$is_pdf,&mt('Syllabus'))); + $r->print(&Apache::lonwrapper::wrapper($item,undef,$env{'request.use_absolute'}, + undef,$is_pdf,undef,&mt('Syllabus'))); } } return OK; @@ -192,20 +183,12 @@ sub handler { '\end{document}'); } else { my $is_ext = 1; - my ($is_pdf,$brcrum); + my $is_pdf; if ($external =~ /\.pdf$/i) { $is_pdf = 1; } - if ($env{'form.folderpath'} =~ /^supplemental/) { - my $title = $env{'form.title'}; - if ($title eq '') { - $title = &mt('Syllabus'); - } - $brcrum = - &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); - } - $r->print(&Apache::lonwrapper::wrapper($external,$brcrum,$env{'request.use_absolute'}, - $is_ext,$is_pdf,&mt('Syllabus'))); + $r->print(&Apache::lonwrapper::wrapper($external,undef,$env{'request.use_absolute'}, + $is_ext,$is_pdf,undef,&mt('Syllabus'))); } return OK; }