[LON-CAPA-cvs] cvs: loncom /interface lonsyllabus.pm
amueller
amueller@source.lon-capa.org
Sat, 26 Sep 2009 20:07:58 -0000
amueller Sat Sep 26 20:07:58 2009 EDT
Modified files:
/loncom/interface lonsyllabus.pm
Log:
-only added some comments.
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.97 loncom/interface/lonsyllabus.pm:1.98
--- loncom/interface/lonsyllabus.pm:1.97 Sun Sep 20 22:04:57 2009
+++ loncom/interface/lonsyllabus.pm Sat Sep 26 20:07:58 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Syllabus
#
-# $Id: lonsyllabus.pm,v 1.97 2009/09/20 22:04:57 amueller Exp $
+# $Id: lonsyllabus.pm,v 1.98 2009/09/26 20:07:58 amueller Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -182,6 +182,7 @@
}
if ($forcestudent or $target eq 'tex') { $allowed=0; }
}
+ #store what the user typed in
if (($allowed) && ($env{'form.storesyl'})) {
foreach my $syl_field (keys(%syllabusfields)) {
my $field=$env{'form.'.$syl_field};
@@ -190,6 +191,7 @@
$field=~s/^\s+//s;
$field=~s/\<br\s*\/*\>$//s;
$field=&Apache::lonfeedback::clear_out_html($field,1);
+ #here it will be stored
$syllabus{$syl_field}=$field;
if ($syl_field eq 'lll_includeurl') { # clean up included URLs
my $field='';
@@ -420,6 +422,7 @@
}
$message=&Apache::lontexconvert::msgtexconverted($message);
if ($target ne 'tex') {
+ #output of syllabusfields will be generated here.
&Apache::lontemplate::print_template($r, $syllabusfields{$field}, $message,$allowed,'LC_Box');
} else {
$r->print('\\\\\textbf{'.$syllabusfields{$field}.'}\\\\'.