[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

foxr foxr@source.lon-capa.org
Sun, 19 Jun 2011 13:34:47 -0000


foxr		Sun Jun 19 13:34:47 2011 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Finish testing/making work multiple student cases.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.592 loncom/interface/lonprintout.pm:1.593
--- loncom/interface/lonprintout.pm:1.592	Thu Jun 16 11:59:16 2011
+++ loncom/interface/lonprintout.pm	Sun Jun 19 13:34:46 2011
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.592 2011/06/16 11:59:16 foxr Exp $
+# $Id: lonprintout.pm,v 1.593 2011/06/19 13:34:46 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3354,11 +3354,16 @@
     # that so we're going to generate a stub that says there are no
     # incomplete resources for the person.
     #
-    if ($actually_printed == 0) {
 
+    &Apache::lonnet::logthis("Number printed: $actually_printed");
+    if ($actually_printed == 0) {
+	&Apache::lonnet::logthis("Remove? $remove_latex_header");
 	$current_output  = &encapsulate_minipage("\\vskip -10mm \nNo incomplete resources\n \\vskip 100 mm { }\n");
-	$current_output = &print_latex_header() . $current_output;
-
+	if ($remove_latex_header eq "NO") {
+	    $current_output = &print_latex_header() . $current_output;
+	} else {
+	    $current_output = &latex_header_footer_remove($current_output);
+	}
     }
 
     if ($syllabus_first) {