version 1.97, 2001/06/26 21:45:28
|
version 1.100, 2001/07/05 15:53:09
|
Line 70 $evaluate = 1;
|
Line 70 $evaluate = 1;
|
# data structure for eidt mode, determines what tags can go into what other tags |
# data structure for eidt mode, determines what tags can go into what other tags |
%insertlist=(); |
%insertlist=(); |
|
|
#stores the list of active tag namespaces |
# stores the list of active tag namespaces |
@namespace=(); |
@namespace=(); |
|
|
|
# has the dynamic menu been updated to know about this resource |
|
$Apache::lonxml::registered=0; |
|
|
sub xmlbegin { |
sub xmlbegin { |
my $output=''; |
my $output=''; |
if ($ENV{'browser.mathml'}) { |
if ($ENV{'browser.mathml'}) { |
Line 102 sub fontsettings() {
|
Line 105 sub fontsettings() {
|
} |
} |
|
|
sub registerurl { |
sub registerurl { |
if ($ENV{'REQUEST_URI'}!~/^\/(res\/)*adm\//) { |
my $forcereg=shift; |
|
if ($Apache::lonxml::registered) { return ''; } |
|
if (($ENV{'REQUEST_URI'}!~/^\/(res\/)*adm\//) || ($forcereg)) { |
my $hwkadd=''; |
my $hwkadd=''; |
if ($ENV{'REQUEST_URI'}=~/\.(problem|exam|quiz|assess|survey|form)$/) { |
if ($ENV{'REQUEST_URI'}=~/\.(problem|exam|quiz|assess|survey|form)$/) { |
if (&Apache::lonnet::allowed('vgr',$ENV{'request.course.id'})) { |
if (&Apache::lonnet::allowed('vgr',$ENV{'request.course.id'})) { |
Line 464 sub callsub {
|
Line 469 sub callsub {
|
|
|
sub setup_globals { |
sub setup_globals { |
my ($target)=@_; |
my ($target)=@_; |
|
$Apache::lonxml::registered = 0; |
if ($target eq 'meta') { |
if ($target eq 'meta') { |
$Apache::lonxml::redirection = 0; |
$Apache::lonxml::redirection = 0; |
$Apache::lonxml::metamode = 1; |
$Apache::lonxml::metamode = 1; |
Line 910 sub register_insert {
|
Line 916 sub register_insert {
|
$tagnum++; |
$tagnum++; |
} |
} |
} |
} |
|
|
|
sub description { |
|
my ($token)=@_; |
|
return $insertlist{$insertlist{"$token->[1].num"}.'.description'}; |
|
} |
1; |
1; |
__END__ |
__END__ |
|
|