[LON-CAPA-cvs] cvs: loncom /interface lonsyllabus.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Fri, 11 Jun 2004 15:41:36 -0000
sakharuk Fri Jun 11 11:41:36 2004 EDT
Modified files:
/loncom/interface lonsyllabus.pm
Log:
Announcements are parsed correctly for the 'tex' target.
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.34 loncom/interface/lonsyllabus.pm:1.35
--- loncom/interface/lonsyllabus.pm:1.34 Tue Jun 8 11:20:05 2004
+++ loncom/interface/lonsyllabus.pm Fri Jun 11 11:41:36 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Syllabus
#
-# $Id: lonsyllabus.pm,v 1.34 2004/06/08 15:20:05 sakharuk Exp $
+# $Id: lonsyllabus.pm,v 1.35 2004/06/11 15:41:36 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -109,8 +109,14 @@
$Apache::lonnet::domaindescription{$cdom}.'}\\\\');
}
# -------------------------------------------------------------- Announcements?
- $r->print(&Apache::lonannounce::showday(time,2,
+ if ($target ne 'tex') {
+ $r->print(&Apache::lonannounce::showday(time,2,
&Apache::lonannounce::readcalendar($cdom.'_'.$cnum)));
+ } else {
+ $r->print(&Apache::lonxml::xmlparse($r,'tex',
+ &Apache::lonannounce::showday(time,2,
+ &Apache::lonannounce::readcalendar($cdom.'_'.$cnum))));
+ }
# -------------------------------------------------------- Get course personnel
my %coursepersonnel=&Apache::lonnet::get_course_adv_roles($cdom.'/'.$cnum);
if ($target ne 'tex') {