--- loncom/interface/lonprintout.pm 2003/01/29 15:57:44 1.108 +++ loncom/interface/lonprintout.pm 2003/01/30 16:57:01 1.109 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.108 2003/01/29 15:57:44 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.109 2003/01/30 16:57:01 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -240,7 +240,8 @@ sub problem_choice_menu { @content_directory = &Apache::lonnet::dirlist($subdirtoprint, $domain, $user,''); } else { - @content_directory = &Apache::lonnet::dirlist($subdirtoprint); + #local library server res space (allows to print only from the own library server) + @content_directory = &Apache::lonnet::dirlist($subdirtoprint,$ENV{'user.domain'}, $ENV{'user.name'},''); } for (my $iy=0;$iy<=$#content_directory;$iy++) { my @tempo_array = split(/&/,$content_directory[$iy]); @@ -469,7 +470,7 @@ ENDPART $LaTeXwidth = $1; } if ($choice eq 'Standard LaTeX output for current document') { - #-- single document - problem, page, html, xml + #-- single document - problem, page, html, xml, ... $selectionmade = 1; if ($ENV{'form.url'}=~/\.(problem|exam|quiz|assess|survey|form|library|page|xml|html|htm|xhtml|xhtm)$/) { my %moreenv; @@ -646,6 +647,8 @@ ENDPART &Apache::lonnet::appenv(%moreenv); if ($urlp =~ m|/home/([^/]+)/public_html|) { $urlp =~ s|/home/([^/]*)/public_html|/~$1|; + } else { + $urlp =~ s|^/home/httpd/html||; } my $texversion=&Apache::lonnet::ssi($urlp); &Apache::lonnet::delenv('form.grade_target','form.textwidth');