--- loncom/interface/lonprintout.pm 2003/10/01 19:51:31 1.246 +++ loncom/interface/lonprintout.pm 2003/10/02 15:33:03 1.247 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.246 2003/10/01 19:51:31 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.247 2003/10/02 15:33:03 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -861,7 +861,7 @@ ENDPART $form{'symb'}=$master_seq[$i]; my ($sequence)=&Apache::lonnet::decode_symb($master_seq[$i]); my $assignment=&Apache::lonxml::latex_special_symbols(&Apache::lonnet::gettitle($sequence),'header'); #tittle of the assignment which contains this problem - my $texversion=''; + if ($i==0) {$prevassignment=$assignment;} #&Apache::lonnet::logthis("Trying to get $urlp with symb $master_seq[$i]"); my $texversion=&Apache::lonnet::ssi($urlp,%form); if ($urlp=~/\.page$/) { @@ -893,9 +893,9 @@ ENDPART if ($helper->{'VARS'}->{'TABLE_INDEX'} eq 'yes') { $texversion=&IndexCreation($texversion,$urlp); } - if (($selectionmade == 4) and ($assignment ne $prevassignment) and ($i>=1)) { - my ($name,$courseidinfo) = &get_name; - $courseidinfo = &get_course(); + if (($selectionmade == 4) and ($assignment ne $prevassignment)) { + my $name = &get_name(); + my $courseidinfo = &get_course(); if (defined($courseidinfo)) { $courseidinfo=' - '.$courseidinfo } $prevassignment=$assignment; $result .='\newpage \noindent\parbox{\minipagewidth}{\noindent\\lhead{\\textit{\\textbf{'.$name.'}}'.$courseidinfo.' \\hfill \\thepage \\\\ \\textit{'.$assignment.'}}} \vskip -5 mm ';