--- loncom/homework/edit.pm 2001/07/18 20:27:22 1.19
+++ loncom/homework/edit.pm 2001/11/07 21:24:15 1.23
@@ -21,7 +21,10 @@ sub tag_start {
my $result='';
if ($target eq "edit") {
my $tag=$token->[1];
- if (!$description) { $description="<$tag>"; }
+ if (!$description) {
+ $description=&Apache::lonxml::description($token);
+ if (!$description) { $description="<$tag>"; }
+ }
$result.= &start_table($token)."
$description |
Delete".
&deletelist($target,$token)
@@ -30,6 +33,9 @@ sub tag_start {
&insertlist($target,$token).
" |
\n";
+# | ".
+# &movebuttons($target,$token).
+# " |
\n";
}
return $result;
}
@@ -54,7 +60,7 @@ sub start_table {
my $tag = $token->[1];
my $tagnum;
foreach my $namespace (reverse @Apache::lonxml::namespace) {
- my $testtag=$Apache::lonxml::namespace['-1'].'::'.$tag;
+ my $testtag=$namespace.'::'.$tag;
$tagnum=$Apache::lonxml::insertlist{"$testtag.num"};
if (defined($tagnum)) { last; }
}
@@ -74,6 +80,15 @@ sub end_table {
return $result;
}
+sub movebuttons {
+ my ($target,$token) = @_;
+ my $result='';
+ $result.='';
+ return $result;
+}
+
sub deletelist {
my ($target,$token) = @_;
my $result = " |