--- loncom/interface/lonprintout.pm 2002/07/08 17:31:36 1.37 +++ loncom/interface/lonprintout.pm 2002/07/26 18:40:43 1.43 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.37 2002/07/08 17:31:36 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.43 2002/07/26 18:40:43 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -58,6 +58,7 @@ sub headerform {
+$ENV{'form.postdata'}

What do you want to print? Make a choice.


ENDHEADER } @@ -70,19 +71,23 @@ sub menu_for_output { Current document (you will print what you see on the screen)
+ENDMENUOUT1 + 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

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

And what page format do you prefer?

@@ -102,7 +107,7 @@ ENDMENUOUT2 -ENDMENUOUT3 +ENDMENUOUT5 } @@ -130,14 +135,18 @@ ENDPART #-- single document - problem, page, html, xml my %moreenv; $moreenv{'form.grade_target'}='tex'; + if ($ENV{'request.role'}=~m/^au\./) {$ENV{'form.url'}=~s/http:\/\/[^\/]+//;} $moreenv{'request.filename'}=$ENV{'form.url'}; &Apache::lonnet::appenv(%moreenv); my $texversion=&Apache::lonnet::ssi($ENV{'form.url'}); &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'}); @@ -275,7 +284,7 @@ ENDPART $first_comment = index($result,'