--- loncom/interface/lonbulletin.pm 2009/12/22 06:32:04 1.57
+++ loncom/interface/lonbulletin.pm 2010/03/29 13:34:40 1.59
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Bulletin Board Handler
#
-# $Id: lonbulletin.pm,v 1.57 2009/12/22 06:32:04 faziophi Exp $
+# $Id: lonbulletin.pm,v 1.59 2010/03/29 13:34:40 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -184,6 +184,9 @@ sub handler {
if (($group ne '') && ($env{'form.group'} eq $group)) {
$query_str.='&group='.$group.'&'.$refarg;
}
+ if ($env{'form.register'}) {
+ $query_str .= '®ister='.$env{'form.register'};
+ }
#Function Box for Edit Mode.
my $functionbox = &Apache::lonhtmlcommon::start_funclist();
$functionbox .= &Apache::lonhtmlcommon::add_item_funclist(
@@ -196,6 +199,9 @@ sub handler {
if (($group ne '') && ($env{'form.group'} eq $group)) {
$query_str.='&group='.$group.'&'.$refarg;
}
+ if ($env{'form.register'}) {
+ $query_str .= '®ister='.$env{'form.register'};
+ }
#Functionbox for Student view.
my $functionbox = &Apache::lonhtmlcommon::start_funclist();
$functionbox .= &Apache::lonhtmlcommon::add_item_funclist(
@@ -277,39 +283,10 @@ sub handler {
elsif($syllabus{'uploaded.photourl'} && $target ne 'tex'){
$r->print('');
}
- foreach my $field (sort(keys(%syllabusfields))) {
- if (($syllabus{$field}) || ($allowed)) {
- my $message=$syllabus{$field};
- if (!&Apache::lonfeedback::contains_block_html($message)) {
- &Apache::lonfeedback::newline_to_br(\$message);
- } else {
- $message = &Apache::lonfeedback::tidy_html($message);
- }
- $message=&Apache::lonhtmlcommon::raw_href_to_link($message);
- if ($allowed) {
- $message=&Apache::lonspeller::markeduptext($message);
- }
- $message=&Apache::lontexconvert::msgtexconverted($message);
- unless ($field eq 'aaa_title') {
- if ($target ne 'tex') {
- #output of syllabusfields will be generated here.
- &Apache::lontemplate::print_start_template($r,$syllabusfields{$field},'LC_Box');
- $r->print($message);
- if ($allowed) {
- $r->print("