--- loncom/interface/lonprintout.pm 2002/07/18 17:34:29 1.39 +++ loncom/interface/lonprintout.pm 2002/08/01 19:48:18 1.44 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.39 2002/07/18 17:34:29 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.44 2002/08/01 19:48:18 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -72,13 +72,14 @@ sub menu_for_output { Current document (you will print what you see on the screen)
ENDMENUOUT1 - if (!$ENV{'request.role'}=~m/^au\./) { + if (not $ENV{'request.role'}=~m/^au\./) { $r->print(< All problems from the primary sequence
The whole primary sequence (problems plus all html and xml files)
All problems from the top level sequence

ENDMENUOUT2 + } my $subdirtoprint = &Apache::lonnet::filelocation("",$ENV{'form.url'}); $subdirtoprint =~ s/\/[^\/]+$//; if (&Apache::lonnet::allowed('bre',$subdirtoprint) eq 'F') { @@ -86,7 +87,6 @@ ENDMENUOUT2 All problems from current subdirectory (where this particular problem is)
ENDMENUOUT4 } - } $r->print(<

And what page format do you prefer?

@@ -98,7 +98,17 @@ ENDMENUOUT4   - Number of columns: + Number of columns: @@ -142,8 +152,11 @@ ENDPART &Apache::lonnet::delenv('form.grade_target'); $result .= $texversion; $result = &additional_cleanup($result); - if ($ENV{'form.url'}=~m/\.page\s*$/) {($result,$number_of_columns) = &page_cleanup($result);} - } elsif ($choice eq 'Standard LaTeX output for the primary sequence' or $choice eq 'Standard LaTeX output for whole primary sequence') { + if ($ENV{'form.url'}=~m/\.page\s*$/) { + ($result,$number_of_columns) = &page_cleanup($result); + } + } elsif ($choice eq 'Standard LaTeX output for the primary sequence' or + $choice eq 'Standard LaTeX output for whole primary sequence') { #-- minimal sequence to which the current document belongs #-- where is the primary sequence containing file? my $symbolic = &Apache::lonnet::symbread($ENV{'form.url'}); @@ -154,6 +167,11 @@ ENDPART my $sequence_file=&Apache::lonnet::filelocation("",$primary_sequence); my $sequencefilecontents=&Apache::lonnet::getfile($sequence_file); my @master_seq = &content_map($sequencefilecontents); +# +# for (my $iu=0;$iu<=$#master_seq;$iu++) { +# $result .= ' '.$master_seq[$iu].' '; +# } +# #-- produce an output string for (my $i=0;$i<=$#master_seq;$i++) { $_ = $master_seq[$i]; @@ -281,7 +299,7 @@ ENDPART $first_comment = index($result,'