--- loncom/interface/lonprintout.pm 2003/08/18 18:22:53 1.217
+++ loncom/interface/lonprintout.pm 2003/08/19 15:57:14 1.219
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.217 2003/08/18 18:22:53 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.219 2003/08/19 15:57:14 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -687,6 +687,10 @@ ENDPART
if ($helper->{'VARS'}->{'TABLE_INDEX'} eq 'yes') {
$texversion=&IndexCreation($texversion,$currentURL);
}
+ if ($helper->{'VARS'}->{'CONSTR_RESOURSE_URL'} eq 'yes') {
+ $texversion=~s/(\\addcontentsline\{toc\}\{subsection\}\{[^\}]*\})/$1 URL: \\verb|$currentURL| \\strut\\\\\\strut /;
+
+ }
$result .= $texversion;
if ($currentURL=~m/\.page\s*$/) {
($result,$number_of_columns) = &page_cleanup($result);
@@ -886,6 +890,10 @@ ENDPART
if ($helper->{'VARS'}->{'TABLE_INDEX'} eq 'yes') {
$texversion=&IndexCreation($texversion,$urlp);
}
+ if ($helper->{'VARS'}->{'CONSTR_RESOURSE_URL'} eq 'yes') {
+ $texversion=~s/(\\addcontentsline\{toc\}\{subsection\}\{[^\}]*\})/$1 URL: \\verb|$urlp| \\strut\\\\\\strut /;
+
+ }
$result .= $texversion;
}
$flag_latex_header_remove = 'YES';
@@ -1203,7 +1211,7 @@ CHOOSE_FROM_SUBDIR
if (($ENV{'request.role.adv'} and &Apache::lonnet::allowed('vgr',$ENV{'request.course.id'})) or
($helper->{VARS}->{'construction'} eq '1')) {
$paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{MESSAGE_TEXT} = "
Next four options are available only for advanced users:
";
+ $paramHash->{MESSAGE_TEXT} = "
Next four options are available only for advanced users: | ";
Apache::lonhelper::message->new();
$paramHash = Apache::lonhelper::getParamHash();
$paramHash->{'variable'} = 'ANSWER_TYPE';
@@ -1216,7 +1224,7 @@ CHOOSE_FROM_SUBDIR
if ($ENV{'request.role.adv'}) {
$paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{MESSAGE_TEXT} = " "; + $paramHash->{MESSAGE_TEXT} = " |
";
Apache::lonhelper::message->new();
$paramHash = Apache::lonhelper::getParamHash();
$paramHash->{'variable'} = 'LATEX_TYPE';
@@ -1231,11 +1239,9 @@ CHOOSE_FROM_SUBDIR
['Print in standard LaTeX mode', 'standard'] ];
}
Apache::lonhelper::dropdown->new();
- }
-
- if ($ENV{'request.role.adv'}) {
+
$paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{MESSAGE_TEXT} = " "; + $paramHash->{MESSAGE_TEXT} = " | |
";
Apache::lonhelper::message->new();
$paramHash = Apache::lonhelper::getParamHash();
$paramHash->{'variable'} = 'TABLE_CONTENTS';
@@ -1246,7 +1252,7 @@ CHOOSE_FROM_SUBDIR
Apache::lonhelper::dropdown->new();
$paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{MESSAGE_TEXT} = " "; + $paramHash->{MESSAGE_TEXT} = " | |
"; Apache::lonhelper::message->new(); $paramHash = Apache::lonhelper::getParamHash(); $paramHash->{'variable'} = 'TABLE_INDEX'; @@ -1255,6 +1261,23 @@ CHOOSE_FROM_SUBDIR ['Print without Index', 'no'], ['Print with Index', 'yes'] ]; Apache::lonhelper::dropdown->new(); + + if ($helper->{VARS}->{'construction'}) { + $paramHash = Apache::lonhelper::getParamHash(); + $paramHash->{MESSAGE_TEXT} = " | |
"; + Apache::lonhelper::message->new(); + $paramHash = Apache::lonhelper::getParamHash(); + $paramHash->{'variable'} = 'CONSTR_RESOURSE_URL'; + $helper->declareVar('CONSTR_RESOURSE_URL'); + $paramHash->{CHOICES} = [ + ['Print without URL', 'no'], + ['Print with UTL', 'yes'] ]; + Apache::lonhelper::dropdown->new(); + } + + $paramHash = Apache::lonhelper::getParamHash(); + $paramHash->{MESSAGE_TEXT} = " |