version 1.141, 2009/04/17 10:02:49
|
version 1.143, 2009/07/03 16:13:13
|
Line 178 my %perlvar=%{&LONCAPA::Configuration::r
|
Line 178 my %perlvar=%{&LONCAPA::Configuration::r
|
&Apache::lonlocal::get_language_handle(); |
&Apache::lonlocal::get_language_handle(); |
&Apache::loncommon::content_type(undef,'text/html'); |
&Apache::loncommon::content_type(undef,'text/html'); |
$env{'request.noversionuri'} = '/cgi-bin/printout.pl'; |
$env{'request.noversionuri'} = '/cgi-bin/printout.pl'; |
print(&Apache::loncommon::start_page('Creating PDF')); |
# Breadcrumbs |
|
#FIXME: Choose better/different breadcrumbs?!? Links? |
|
my $brcrum = [{'href' => '', |
|
'text' => 'Helper'}, #FIXME: Different origin possible than print out helper? |
|
{'href' => '', |
|
'text' => 'Preparing Printout'}, |
|
{'href' => '', |
|
'text' => 'Creating PDF'}]; |
|
print(&Apache::loncommon::start_page('Creating PDF', |
|
undef, |
|
{'bread_crumbs' => $brcrum,})); |
|
|
my $identifier = $ENV{'QUERY_STRING'}; |
my $identifier = $ENV{'QUERY_STRING'}; |
my $texfile = $env{'cgi.'.$identifier.'.file'}; |
my $texfile = $env{'cgi.'.$identifier.'.file'}; |
Line 1056 sub analyze_logfile {
|
Line 1066 sub analyze_logfile {
|
# $name_file - is the name of the LaTeX file. |
# $name_file - is the name of the LaTeX file. |
# $identifier - is the unique LaTeX identifier.l |
# $identifier - is the unique LaTeX identifier.l |
|
|
print "<br />"; |
print '<p class="LC_error">'; |
if ($badtext) { |
if ($badtext) { |
print &mt('There are errors in [_1].',$badtext); |
print &mt('There are errors in [_1].',$badtext); |
} else { |
} else { |
print &mt('There are errors.'); |
print &mt('There are errors.'); |
} |
} |
print "<br />".&mt('These errors prevent this resource from printing correctly.'); |
print '</p>' |
|
.&mt('These errors prevent this resource from printing correctly.'); |
|
|
my $tex_handle = IO::File->new($texfile); |
my $tex_handle = IO::File->new($texfile); |
my @tex_contents = <$tex_handle>; |
my @tex_contents = <$tex_handle>; |
&send_error_mail($identifier, $badresource, $body_log_file, \@tex_contents); |
&send_error_mail($identifier, $badresource, $body_log_file, \@tex_contents); |