--- loncom/interface/lonsyllabus.pm 2009/09/20 22:04:57 1.97 +++ loncom/interface/lonsyllabus.pm 2009/09/26 20:07:58 1.98 @@ -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 @@ ENDSCRIPT } 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 @@ ENDSCRIPT $field=~s/^\s+//s; $field=~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 @@ ENDSCRIPT } $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}.'}\\\\'.