version 1.205, 2006/11/14 22:12:58
|
version 1.206, 2006/11/14 22:55:19
|
Line 2107 sub start_Dimension {
|
Line 2107 sub start_Dimension {
|
if (!&skip_dimension_parsing($dim)) { |
if (!&skip_dimension_parsing($dim)) { |
&enable_dimension_parsing($dim); |
&enable_dimension_parsing($dim); |
} |
} |
return &internal_location($dim); |
# return &internal_location($dim); |
} |
} |
|
|
sub start_QuestionText { |
sub start_QuestionText { |
Line 2195 sub end_Dimension {
|
Line 2195 sub end_Dimension {
|
my $instance=&get_instance($dim); |
my $instance=&get_instance($dim); |
my $version=&get_version(); |
my $version=&get_version(); |
if ($target eq 'web') { |
if ($target eq 'web') { |
$result .= "\n".'<div class="LC_question">'."\n"; |
|
$result .= &nested_parse(\$dimension{$dim}{'intro'},[@_]); |
$result .= &nested_parse(\$dimension{$dim}{'intro'},[@_]); |
my @instances = $instance; |
my @instances = $instance; |
if (&Apache::response::showallfoils()) { |
if (&Apache::response::showallfoils()) { |
Line 2272 sub end_Dimension {
|
Line 2271 sub end_Dimension {
|
# $result=~s/\Q$internal_location\E/$dim_info/; |
# $result=~s/\Q$internal_location\E/$dim_info/; |
} |
} |
} |
} |
$result .= "\n</div>\n"; |
if ($result !~ /^\s*$/s) { |
|
$result = "\n".'<div class="LC_question">'. |
|
"\n".$result."\n</div>\n"; |
|
} |
} elsif ($target eq 'webgrade') { |
} elsif ($target eq 'webgrade') { |
# in case of any side effects that we need |
# in case of any side effects that we need |
&nested_parse(\$dimension{$dim}{'intro'},[@_]); |
&nested_parse(\$dimension{$dim}{'intro'},[@_]); |
Line 2609 sub start_Criteria {
|
Line 2611 sub start_Criteria {
|
$dimension{$dim}{'result'} .= &internal_location($id); |
$dimension{$dim}{'result'} .= &internal_location($id); |
} else { |
} else { |
&Apache::lonxml::debug(" not stashing $dim $id"); |
&Apache::lonxml::debug(" not stashing $dim $id"); |
$result .= &internal_location($id); |
#$result .= &internal_location($id); |
} |
} |
} |
} |
&Apache::lonxml::debug("Criteria $id with $dim"); |
&Apache::lonxml::debug("Criteria $id with $dim"); |