[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
raeburn
raeburn at source.lon-capa.org
Tue Jan 17 10:53:22 EST 2023
raeburn Tue Jan 17 15:53:22 2023 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
- $helper->{VARS}->{'symb'} does not apply when printing from Authoring Space
Remove some duplicate lines of code.
- When displaying list of selectable resources to include in a PDF printout,
exclude any "Table of Contents" (i.e., /adm/navmaps) items.
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.684 loncom/interface/lonprintout.pm:1.685
--- loncom/interface/lonprintout.pm:1.684 Tue Jan 17 00:13:55 2023
+++ loncom/interface/lonprintout.pm Tue Jan 17 15:53:22 2023
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.684 2023/01/17 00:13:55 raeburn Exp $
+# $Id: lonprintout.pm,v 1.685 2023/01/17 15:53:22 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4212,19 +4212,12 @@
$helper->{VARS}->{'symb'} = $env{'form.symb'};
}
if ($env{'form.url'}) {
- $helper->{VARS}->{'symb'} = &Apache::lonnet::symbread($helper->{VARS}->{'postdata'});
+ unless ($env{'form.url'} eq '/adm/navmaps') {
+ $helper->{VARS}->{'symb'} = &Apache::lonnet::symbread($helper->{VARS}->{'postdata'});
+ }
}
-
}
- if ($env{'form.symb'}) {
- $helper->{VARS}->{'symb'} = $env{'form.symb'};
- }
- if ($env{'form.url'}) {
- unless ($env{'form.url'} eq '/adm/navmaps') {
- $helper->{VARS}->{'symb'} = &Apache::lonnet::symbread($helper->{VARS}->{'postdata'});
- }
- }
if ($helper->{VARS}->{'symb'} ne '') {
$helper->{VARS}->{'symb'}=
&Apache::lonenc::check_encrypt($helper->{VARS}->{'symb'});
More information about the LON-CAPA-cvs
mailing list