--- loncom/interface/lonprintout.pm 2005/02/23 11:51:40 1.366 +++ loncom/interface/lonprintout.pm 2005/03/22 11:59:26 1.370 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.366 2005/02/23 11:51:40 foxr Exp $ +# $Id: lonprintout.pm,v 1.370 2005/03/22 11:59:26 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1182,6 +1182,7 @@ ENDPART $moreenv{'textwidth'}=&get_textwidth($helper,$LaTeXwidth); $moreenv{'print_discussions'}=$helper->{'VARS'}->{'PRINT_DISCUSSIONS'}; $moreenv{'problem_split'} = $parmhash{'problem_stream_switch'}; + $moreenv{'suppress_tries'} = $parmhash{'suppress_tries'}; if ($helper->{'VARS'}->{'PRINT_DISCUSSIONS'} eq 'yes') {$moreenv{'problem_split'}='yes';} my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin($r,'Print Status','Class Print Status',$#students+1,'inline','75'); my $student_counter=-1; @@ -1340,6 +1341,7 @@ ENDPART $result =~ s/\\evensidemargin\s*=\s*-?\d*\.?\d*\s*(cm|mm|in)/\\evensidemargin= $helper->{'VARS'}->{'pagesize.lmargin'} $helper->{'VARS'}->{'pagesize.lmarginunit'} /; $result =~ s/\\oddsidemargin\s*=\s*-?\d*\.?\d*\s*(cm|mm|in)/\\oddsidemargin= $helper->{'VARS'}->{'pagesize.lmargin'} $helper->{'VARS'}->{'pagesize.lmarginunit'} /; } + #-- writing .tex file in prtspool my $temp_file; my $identifier = &Apache::loncommon::get_cgi_id(); @@ -1584,7 +1586,14 @@ sub handler { # - + # If a figure conversion queue file exists for this user.domain + # we delete it since it can only be bad (if it were good, printout.pl + # would have deleted it the last time around. + + my $conversion_queuefile = "/home/httpd/prtspool/$ENV{'user.name'}_$ENV{'user.domain'}_printout.dat"; + if(-e $conversion_queuefile) { + unlink $conversion_queuefile; + } &output_data($r,$helper,\%parmhash); return OK; } @@ -1865,7 +1874,7 @@ RESOURCE_SELECTOR &Apache::lonxml::xmlparse($r, 'helper', < - + Select sort order Sort by section then student @@ -1941,7 +1950,7 @@ RESOURCE_SELECTOR &Apache::lonxml::xmlparse($r, 'helper', < - + Sort by section then student Sort by students across sections. @@ -2060,8 +2069,7 @@ CHOOSE_FROM_ANY_SEQUENCE $paramHash->{CHOICES} = [ ['Without Answers', 'yes'], ['With Answers', 'no'], - ['Only Answers', 'only'], - ['As Exam Problem', 'exam'] + ['Only Answers', 'only'] ]; Apache::lonhelper::dropdown->new(); addMessage("");