[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 03 Sep 2002 01:19:13 -0000


albertel		Mon Sep  2 21:19:13 2002 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - <library> shows the edit envirnoment only if not inside a <problem>
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.109 loncom/homework/structuretags.pm:1.110
--- loncom/homework/structuretags.pm:1.109	Thu Aug 29 17:21:09 2002
+++ loncom/homework/structuretags.pm	Mon Sep  2 21:19:13 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.109 2002/08/29 21:21:09 albertel Exp $
+# $Id: structuretags.pm,v 1.110 2002/09/03 01:19:13 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -462,7 +462,8 @@
   } elsif ($target eq 'modified') {
     $result=$token->[4];
     $result.=&Apache::edit::handle_insert();
-  } elsif ($target eq 'web' && $ENV{'request.state'} eq "construct" ) {
+  } elsif ($target eq 'web' && $$tagstack[0] ne 'problem' &&
+	   $ENV{'request.state'} eq "construct" ) {
     ($result,$head_tag_start,$body_tag_start,$form_tag_start)=
       &page_start($target,$token,$tagstack,$parstack,$parser,$safeeval);
     my $name=&get_resource_name($parstack,$safeeval);
@@ -536,7 +537,7 @@
   return "";
 }
 
-# <randomlist> 
+# <randomlist show="1"> 
 #  <tag1>..</tag1>
 #  <tag2>..</tag2>
 #  <tag3>..</tag3>