[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Tue, 19 Aug 2003 16:02:13 -0000
sakharuk Tue Aug 19 12:02:13 2003 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
Menu item "print with Index" is hidden for theprinting from the construction space. There is no sence to have this item.
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.219 loncom/interface/lonprintout.pm:1.220
--- loncom/interface/lonprintout.pm:1.219 Tue Aug 19 11:57:14 2003
+++ loncom/interface/lonprintout.pm Tue Aug 19 12:02:13 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.219 2003/08/19 15:57:14 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.220 2003/08/19 16:02:13 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1251,16 +1251,18 @@
['Print with Table of Contents', 'yes'] ];
Apache::lonhelper::dropdown->new();
- $paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{MESSAGE_TEXT} = "</td></tr><tr><td> </td><td>";
- Apache::lonhelper::message->new();
- $paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{'variable'} = 'TABLE_INDEX';
- $helper->declareVar('TABLE_INDEX');
- $paramHash->{CHOICES} = [
- ['Print without Index', 'no'],
- ['Print with Index', 'yes'] ];
- Apache::lonhelper::dropdown->new();
+ if (not $helper->{VARS}->{'construction'}) {
+ $paramHash = Apache::lonhelper::getParamHash();
+ $paramHash->{MESSAGE_TEXT} = "</td></tr><tr><td> </td><td>";
+ Apache::lonhelper::message->new();
+ $paramHash = Apache::lonhelper::getParamHash();
+ $paramHash->{'variable'} = 'TABLE_INDEX';
+ $helper->declareVar('TABLE_INDEX');
+ $paramHash->{CHOICES} = [
+ ['Print without Index', 'no'],
+ ['Print with Index', 'yes'] ];
+ Apache::lonhelper::dropdown->new();
+ }
if ($helper->{VARS}->{'construction'}) {
$paramHash = Apache::lonhelper::getParamHash();