[LON-CAPA-cvs] cvs: loncom /interface lonsyllabus.pm

schualex schualex@source.lon-capa.org
Tue, 16 Dec 2008 10:03:56 -0000


schualex		Tue Dec 16 10:03:56 2008 EDT

  Modified files:              
    /loncom/interface	lonsyllabus.pm 
  Log:
  Implement unified style for shown fields by integrating the lontemplate.pm- functions in lonsyllabus.pm. By Niels Neumann & Alexander Schulze
  
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.71 loncom/interface/lonsyllabus.pm:1.72
--- loncom/interface/lonsyllabus.pm:1.71	Fri Dec 12 17:02:47 2008
+++ loncom/interface/lonsyllabus.pm	Tue Dec 16 10:03:56 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Syllabus
 #
-# $Id: lonsyllabus.pm,v 1.71 2008/12/12 17:02:47 raeburn Exp $
+# $Id: lonsyllabus.pm,v 1.72 2008/12/16 10:03:56 schualex Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -367,10 +367,19 @@
 		       $message=&Apache::lonspeller::markeduptext($message);
 		   }
 		   $message=&Apache::lontexconvert::msgtexconverted($message);
-		   if ($target ne 'tex') {
-			&Apache::lontemplate::print_template($r, $syllabusfields{$field}, $message);
-#		       $r->print('<h3>'.$syllabusfields{$field}.'</h3><blockquote>'.
-#			 $message.'</blockquote>');
+
+		   &Apache::lontemplate::start_columnSection($r);
+        	   &Apache::lontemplate::print_content_template($r,$allowed,$target,\%syllabusfields,\%syllabus);
+		  
+ 		   if ($target ne 'tex') {
+   			&Apache::lontemplate::start_ContentBox($r);
+                	&Apache::lontemplate::end_ContentBox($r);
+                	&Apache::lontemplate::end_columnSection($r);
+                	&Apache::lontemplate::start_columnSection($r);
+                	&Apache::lontemplate::start_ContentBox($r);
+                	&Apache::lontemplate::end_ContentBox($r);
+                	&Apache::lontemplate::end_columnSection($r);
+
 		   } else {
 		       $r->print('\\\\\textbf{'.$syllabusfields{$field}.'}\\\\'.
 				 &Apache::lonxml::xmlparse($r,'tex',$message).'\\\\');