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

foxr lon-capa-cvs@mail.lon-capa.org
Fri, 27 Jan 2006 22:07:15 -0000


foxr		Fri Jan 27 17:07:15 2006 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Remove log spew.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.417 loncom/interface/lonprintout.pm:1.418
--- loncom/interface/lonprintout.pm:1.417	Thu Jan 26 19:06:52 2006
+++ loncom/interface/lonprintout.pm	Fri Jan 27 17:07:10 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.417 2006/01/27 00:06:52 foxr Exp $
+# $Id: lonprintout.pm,v 1.418 2006/01/27 22:07:10 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -687,7 +687,6 @@
     my $topmargintoinsert = '';
     if ($topmargin ne '0') {$topmargintoinsert='\setlength{\topmargin}{'.$topmargin.'}';}
     my $fancypagestatement='';
-    &Apache::lonnet::logthis("1: columns = $numberofcolumns");
     if ($numberofcolumns eq '2') {
 	$fancypagestatement="\\fancyhead{}\\fancyhead[LO]{\\textbf{$name} $courseidinfo \\hfill \\thepage \\\\ \\textit{$assignment}}";
     } else {
@@ -967,12 +966,12 @@
 #    A reference to a page break hash.
 #
 #
-use Data::Dumper;
-sub dump_helper_vars {
-    my ($helper) = @_;
-    my $helpervars = Dumper($helper->{'VARS'});
-    &Apache::lonnet::logthis("Dump of helper vars:\n $helpervars");
-}
+#use Data::Dumper;
+#sub dump_helper_vars {
+#    my ($helper) = @_;
+#    my $helpervars = Dumper($helper->{'VARS'});
+#    &Apache::lonnet::logthis("Dump of helper vars:\n $helpervars");
+#}
 
 sub get_page_breaks  {
     my ($helper) = @_;
@@ -1040,7 +1039,6 @@
     my %page_breaks  = &get_page_breaks($helper);
 
     my $format_from_helper = $helper->{'VARS'}->{'FORMAT'};
-    &dump_helper_vars($helper);
     my ($result,$selectionmade) = ('','');
     my $number_of_columns = 1; #used only for pages to determine the width of the cell
     my @temporary_array=split /\|/,$format_from_helper;
@@ -1333,7 +1331,6 @@
 		    my $courseidinfo = &get_course();
 		    if (defined($courseidinfo)) { $courseidinfo=' - '.$courseidinfo }
 		    $prevassignment=$assignment;
-		    &Apache::lonnet::logthis("2: Number of columns: $numberofcolumns");
 		    if ($numberofcolumns eq '1') {
 			$result .='\newpage \noindent\parbox{\minipagewidth}{\noindent\\lhead{\\textit{\\textbf{'.$name.'}}'.$courseidinfo.' \\hfill \\thepage \\\\ \\textit{'.$assignment.'}}} \vskip 5 mm ';
 		    } else {
@@ -1830,7 +1827,6 @@
     if ($usersection ne '') {$courseidinfo.=' - Sec. '.$usersection}
     my $currentassignment=&Apache::lonxml::latex_special_symbols($helper->{VARS}->{'assignment'},'header');
     if ($current_output=~/\\documentclass/) {
-	&Apache::lonnet::logthis("3: Number of columns = $columns_in_format");
 	if ($columns_in_format == 1) {
 	    $current_output =~ s/\\begin{document}/\\setlength{\\topmargin}{1cm} \\begin{document}\\noindent\\parbox{\\minipagewidth}{\\noindent\\lhead{\\textit{\\textbf{$fullname}}$courseidinfo \\hfill \\thepage \\\\ \\textit{$currentassignment}$namepostfix}}\\vskip 5 mm /;
 	} else {
@@ -1840,7 +1836,6 @@
     } else {
 	my $blankpages = '';
 	for (my $j=0;$j<$helper->{'VARS'}->{'EMPTY_PAGES'};$j++) {$blankpages.='\clearpage\strut\clearpage';}
-	&Apache::lonnet::logthis("4: Number of columns = $columns_in_format");
 	if ($columns_in_format == 1) {
 	    $current_output = '\strut\vspace*{-6 mm}\\newline\\noindent\\makebox[\\textwidth/$number_of_columns][b]{\\hrulefill}\vspace*{-2 mm}\\newline\\noindent{\\tiny Printed from LON-CAPA\\copyright MSU{\\hfill} Licensed under GNU General Public License }\\newpage '.$blankpages.'\setcounter{page}{1}\noindent\parbox{\minipagewidth}{\noindent\\lhead{\\textit{\\textbf{'.$fullname.'}}'.$courseidinfo.' \\hfill \\thepage \\\\ \\textit{'.$currentassignment.'}'.$namepostfix.'}} \vskip 5 mm '.$current_output;
 	} else {