version 1.22, 2002/10/16 20:50:08
|
version 1.23, 2002/11/21 22:35:32
|
Line 118 sub start_displayweight {
|
Line 118 sub start_displayweight {
|
$Apache::outputtags::showonce{'displayweight'}=1; |
$Apache::outputtags::showonce{'displayweight'}=1; |
} |
} |
my $status=$Apache::inputtags::status['-1']; |
my $status=$Apache::inputtags::status['-1']; |
if (($status =~ /CAN.*_ANSWER/) && ($target eq 'web')) { |
if (($status =~ /CAN.*_ANSWER/) && ($target eq 'web' || $target eq 'tex')) { |
my $id = $Apache::inputtags::part; |
my $id = $Apache::inputtags::part; |
my $weight = &Apache::lonnet::EXT("resource.$id.weight"); |
my $weight = &Apache::lonnet::EXT("resource.$id.weight"); |
&Apache::lonxml::debug("duedatebox found $weight for $id"); |
&Apache::lonxml::debug("duedatebox found $weight for $id"); |
if (!defined($weight)) { $weight=1; } |
if (!defined($weight) || ($weight eq '')) { $weight=1; } |
$result.=$weight; |
$result.=$weight; |
} elsif ( $target eq 'edit' ) { |
} elsif ( $target eq 'edit' ) { |
$result=&Apache::edit::tag_start($target,$token); |
$result=&Apache::edit::tag_start($target,$token); |