[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm printout.pl
bisitz
bisitz@source.lon-capa.org
Fri, 03 Jul 2009 16:13:13 -0000
bisitz Fri Jul 3 16:13:13 2009 EDT
Modified files:
/loncom/interface lonprintout.pm printout.pl
Log:
Added breadcrumbs to "Preparing Printout" page and "Download PDF" page
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.557 loncom/interface/lonprintout.pm:1.558
--- loncom/interface/lonprintout.pm:1.557 Tue Jun 23 10:24:31 2009
+++ loncom/interface/lonprintout.pm Fri Jul 3 16:13:13 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.557 2009/06/23 10:24:31 foxr Exp $
+# $Id: lonprintout.pm,v 1.558 2009/07/03 16:13:13 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1549,8 +1549,16 @@
ENDPART
-
- my $start_page = &Apache::loncommon::start_page('Preparing Printout',$js);
+ # Breadcrumbs
+ #FIXME: Choose better/different breadcrumbs?!? Links?
+ my $brcrum = [{'href' => '',
+ 'text' => 'Helper'}, #FIXME: Different origin possible than print out helper?
+ {'href' => '',
+ 'text' => 'Preparing Printout'}];
+
+ my $start_page = &Apache::loncommon::start_page('Preparing Printout',
+ $js,
+ {'bread_crumbs' => $brcrum,});
my $msg = &mt('Please stand by while processing your print request, this may take some time ...');
$r->print($start_page."\n<p>\n$msg\n</p>\n");
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.142 loncom/interface/printout.pl:1.143
--- loncom/interface/printout.pl:1.142 Tue Jun 2 12:20:14 2009
+++ loncom/interface/printout.pl Fri Jul 3 16:13:13 2009
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
#
-# $Id: printout.pl,v 1.142 2009/06/02 12:20:14 bisitz Exp $
+# $Id: printout.pl,v 1.143 2009/07/03 16:13:13 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -178,7 +178,17 @@
&Apache::lonlocal::get_language_handle();
&Apache::loncommon::content_type(undef,'text/html');
$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 $texfile = $env{'cgi.'.$identifier.'.file'};