--- loncom/homework/structuretags.pm 2003/07/11 15:10:54 1.195
+++ loncom/homework/structuretags.pm 2003/07/17 13:50:44 1.197
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.195 2003/07/11 15:10:54 sakharuk Exp $
+# $Id: structuretags.pm,v 1.197 2003/07/17 13:50:44 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -39,7 +39,7 @@ use Apache::lonmenu;
BEGIN {
&Apache::lonxml::register('Apache::structuretags',('block','languageblock','instructorcomment','while','randomlist','problem','library','web','tex','part','preduedate','postanswerdate','solved','notsolved','startouttext','endouttext',
-'simpleeditbutton'));
+'simpleeditbutton','definetag'));
}
sub start_web {
@@ -596,6 +596,30 @@ sub end_library {
return $result;
}
+sub start_definetag {
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
+
+ my $result;
+
+ my $name = $token->[2]->{'name'};
+ my $skip=&Apache::lonxml::get_all_text("/definetag",$parser);
+ if ($name=~/^\//) {
+ $result=
+ '
END '.$name.' |
';
+ } else {
+ $result=
+ '
BEGIN '.$name.' |
';
+ }
+ $skip=~s/\\<\;/gs;
+ $skip=~s/\>/\>\;/gs;
+ $result.=''.$skip.' |
';
+ return $result;
+}
+
+sub end_definetag {
+ return '';
+}
+
sub start_block {
my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
@@ -1097,7 +1121,8 @@ sub start_simpleeditbutton {
my $url=$ENV{'REQUEST_URI'};
$url=~s/\?.*$//;
$result=''.
- 'Simple Problem Editor - Note: it can take up to 10 minutes for changes to take effect for all users. |
';
+ 'Simple Problem Editor - Note: it can take up to 10 minutes for changes to take effect for all users.'.
+&Apache::loncommon::help_open_topic('Caching').'
';
}
return $result;
}