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

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 28 Mar 2005 11:57:48 -0000


foxr		Mon Mar 28 06:57:48 2005 EDT

  Modified files:              
    /loncom/homework	response.pm 
  Log:
  Add latent support for printing all foils of e.g. option response problems:
  this is being done via the addition of print.showallfoils to the
  or check in sub showallfoils
  
  
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.114 loncom/homework/response.pm:1.115
--- loncom/homework/response.pm:1.114	Wed Feb 23 19:36:10 2005
+++ loncom/homework/response.pm	Mon Mar 28 06:57:48 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # various response type definitons response definition
 #
-# $Id: response.pm,v 1.114 2005/02/24 00:36:10 albertel Exp $
+# $Id: response.pm,v 1.115 2005/03/28 11:57:48 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -513,7 +513,8 @@
     if (defined($ENV{'form.showallfoils'})) {
 	my ($symb)=&Apache::lonxml::whichuser();
 	if ($ENV{'request.state'} eq 'construct' || 
-	    ($ENV{'user.adv'} && $symb eq '')) {
+	    ($ENV{'user.adv'} && $symb eq '')    ||
+            ($ENV{'print.showallfoils'})  ) {
 	    return 1;
 	}
     }