[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 21 May 2003 14:57:31 -0000


sakharuk		Wed May 21 10:57:31 2003 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  Added <hideweboutput> tag to hide any information between <hideweboutput> and </hideweboutput>. This is used for physnet.sty style file.
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.133 loncom/xml/londefdef.pm:1.134
--- loncom/xml/londefdef.pm:1.133	Mon May 12 16:13:36 2003
+++ loncom/xml/londefdef.pm	Wed May 21 10:57:31 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.133 2003/05/12 20:13:36 www Exp $
+# $Id: londefdef.pm,v 1.134 2003/05/21 14:57:31 sakharuk Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -3123,6 +3123,26 @@
     } 
     return $currentstring;
 }
+
+
+#-- <hideweboutput> tag
+sub start_hideweboutput {
+    my ($target,$token) = @_;
+    if ($target eq 'web') {
+	&Apache::lonxml::startredirection();     
+    } 
+    return '';
+}
+
+sub end_hideweboutput {
+    my ($target,$token) = @_;
+    my $currentstring = '';
+    if ($target eq 'web') {
+	$currentstring = &Apache::lonxml::endredirection();    
+    } 
+    return '';
+}
+
 
 sub image_replication {
     my $src = shift;