Diff for /loncom/interface/printout.pl between versions 1.151 and 1.153

version 1.151, 2011/12/21 21:25:40 version 1.153, 2013/01/31 15:09:23
Line 553  foreach $texfile (@texfile) { Line 553  foreach $texfile (@texfile) {
       my @garb = ($texlog,$texaux,$texdvi,$texps);        my @garb = ($texlog,$texaux,$texdvi,$texps);
 #  unlink @garb;  #  unlink @garb;
       unlink($duefile);        unlink($duefile);
       print "<a href=\"/prtspool/$pdf_file\">$link_text - click here to download pdf</a>";        print
       print "\n";                    '<p>'
                    .&mt('[_1] - [_2]Your PDF file[_3] is ready for download.',
                         $link_text,'<a href="/prtspool/'.$pdf_file.'">','</a>')
                    .'</p>'."\n";
   }    }
   unlink($missfonts_file);    unlink($missfonts_file);
   
       }          }  
   } else {    } else {
       print "LaTeX file $texfile was not created successfully";        print
             '<p class="LC_error">'
            .&mt('The LaTeX file [_1] was not created successfully.',
                 '<span class="LC_filename">'.$texfile.'</span>')
            .'</p>';
   }    }
 }  }
 print "<br />";  print "<br />";
Line 572  if ($number_of_files>1) { Line 579  if ($number_of_files>1) {
  $file=~s/\.tex/.\pdf/;   $file=~s/\.tex/.\pdf/;
  $statement.=' '.$file;    $statement.=' '.$file; 
     }      }
     print("<pre>Zip Output:\n");      print('<p>'.&mt('Zip Output:')."\n<pre>\n");
     system($statement);      system($statement);
     print("</pre>");      print("</pre></p>\n");
     $zipfile=~s{^\Q$perlvar{'lonPrtDir'}\E}{/prtspool};      $zipfile=~s{^\Q$perlvar{'lonPrtDir'}\E}{/prtspool};
     print "<br /> A <a href=\"$zipfile\">ZIP file</a> of all the PDFs.";      print
           '<p>'
          .&mt('A [_1]ZIP file[_2] of all the PDF files is ready for download.',
               '<a href="'.$zipfile.'">','</a>')
          .'</p>';
 }  }
 if ($advanced_role) { &Apache::lonhtmlcommon::Close_PrgWin('',\%prog_state); }  if ($advanced_role) { &Apache::lonhtmlcommon::Close_PrgWin('',\%prog_state); }
 print(&Apache::loncommon::end_page());  print(&Apache::loncommon::end_page());
Line 614  sub busy_wait_command { Line 625  sub busy_wait_command {
     if ($size == $last_size) {      if ($size == $last_size) {
  $unchanged_time++;   $unchanged_time++;
  if ($timeout && ($unchanged_time > $timeout)) {   if ($timeout && ($unchanged_time > $timeout)) {
     print "<h1>Operation timed out!</h1>\n";      print '<p class="LC_error">'.&mt('Operation timed out!')."</p>\n";
     print "<p>Executing $command, the output file $output_file did not grow\n";      print "<p>Executing $command, the output file $output_file did not grow\n";
     print "after $timeout seconds.  This <em>may</em> indicate $command\n";      print "after $timeout seconds.  This <em>may</em> indicate $command\n";
     print "is in an infinite loop.\n";      print "is in an infinite loop.\n";

Removed from v.1.151  
changed lines
  Added in v.1.153


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>