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

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 14 Aug 2002 20:38:04 -0000


sakharuk		Wed Aug 14 16:38:04 2002 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Passes number of page per sheet to cgi script.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.50 loncom/interface/lonprintout.pm:1.51
--- loncom/interface/lonprintout.pm:1.50	Mon Aug 12 14:06:55 2002
+++ loncom/interface/lonprintout.pm	Wed Aug 14 16:38:04 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.50 2002/08/12 18:06:55 albertel Exp $
+# $Id: lonprintout.pm,v 1.51 2002/08/14 20:38:04 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -140,7 +140,6 @@
     my $laystyle = 'book';
     my $result = '';
     my $number_of_columns = 1;
-#    my $number_of_columns = $ENV{'form.numberofcolumns'};    
  
     if ($choice eq 'Standard LaTeX output for current document') {
       #-- single document - problem, page, html, xml  
@@ -294,11 +293,7 @@
 	}
 	$result = &additional_cleanup($result);
 	
-	
-
-
-
-	
+       	
     }
 #-- corrections for the different page formats
     if ($layout eq 'CBI' and $numberofcolumns eq '1') {
@@ -353,7 +348,7 @@
     } 
     print $temp_file $result;
 $r->print(<<FINALEND);
-<meta http-equiv="Refresh" content="0; url=/cgi-bin/printout.pl?$filename&$laystyle">
+<meta http-equiv="Refresh" content="0; url=/cgi-bin/printout.pl?$filename&$laystyle&$numberofcolumns">
 </body>
 </html>
 FINALEND