- Names to store the CODEs under for later:
+ Names to save the CODEs under for later:
|
|
@@ -2655,6 +2774,8 @@ CHOOSE_ANON1
$resource_selector=<
+ $randomly_ordered_warning
+
PRINT_FORMATTING
Select resources for the assignment
|
- Names to store the CODEs under for later:
+ Names to save the CODEs under for later:
|
|
@@ -2794,7 +2915,7 @@ CHOOSE_FROM_SUBDIR
# Allow the user to select any sequence in the course, feed it to
# another resource selector for that sequence
if (!$helper->{VARS}->{'construction'} && !$is_published) {
- push @$printChoices, ["Selected Resources from selected folder in course",
+ push @$printChoices, [&mtn("Selected Resources from selected folder in course"),
'select_sequences', 'CHOOSE_SEQUENCE'];
my $escapedSequenceName = $helper->{VARS}->{'SEQUENCE'};
#Escape apostrophes and backslashes for Perl
@@ -2885,7 +3006,7 @@ CHOOSE_FROM_ANY_SEQUENCE
Apache::lonhelper::dropdown->new();
addMessage(" |
".
- ' | ");
$paramHash = Apache::lonhelper::getParamHash();
@@ -2923,6 +3044,21 @@ CHOOSE_FROM_ANY_SEQUENCE
Apache::lonhelper::dropdown->new();
addMessage(" |
");
+ # Prompt for printing annotations too.
+
+ addMessage("".
+ ''.
+ &mt('Print Annotations').
+ ": | ");
+ $paramHash = Apache::lonhelper::getParamHash();
+ $paramHash->{'variable'} = "PRINT_ANNOTATIONS";
+ $helper->declareVar("PRINT_ANNOTATIONS");
+ $paramHash->{CHOICES} = [
+ ['No', 'no'],
+ ['Yes', 'yes']];
+ Apache::lonhelper::dropdown->new();
+ addMessage(" |
");
+
addMessage(" | ");
$paramHash = Apache::lonhelper::getParamHash();
$paramHash->{'multichoice'} = "true";
@@ -2934,9 +3070,10 @@ CHOOSE_FROM_ANY_SEQUENCE
}
if ($helper->{'VARS'}->{'construction'}) {
- my $stylevalue=$env{'construct.style'};
+ my $stylevalue='$Apache::lonnet::env{"construct.style"}';
my $randseedtext=&mt("Use random seed");
my $stylefiletext=&mt("Use style file");
+ my $selectfiletext=&mt("Select style file");
my $xmlfrag .= <<"RNDSEED";
@@ -2948,17 +3085,37 @@ CHOOSE_FROM_ANY_SEQUENCE
|
- $stylefiletext:
+ $stylefiletext:
|
- Select style file |
+
+
+ return $stylevalue;
+
+ $selectfiletext | |
- Show all foils?
+ Show all foils
|
RNDSEED
&Apache::lonxml::xmlparse($r, 'helper', $xmlfrag);
- $helper->{'VARS'}->{'style_file'}=$env{'form.style_file_value'};
-
+
+
+ addMessage(" |
Problem Type: | ");
+ $paramHash = &Apache::lonhelper::getParamHash();
+ $paramHash->{'variable'} = 'probstatus'; # Already declared:
+ #
+ # Initial value from construction space:
+ #
+ if (!$helper->{VARS}->{'probstatus'} && $env{'form.problemtype'}) {
+ $helper->{VARS}->{'probstatus'} = $env{'form.problemtype'}; # initial value
+ }
+ $paramHash->{CHOICES} = [
+ ['Homework problem', 'problem'],
+ ['Exam Problem', 'exam'],
+ ['Survey question', 'survey']];
+ Apache::lonhelper::dropdown->new();
+ addMessage(" |
");
+
}
}
@@ -3063,6 +3220,8 @@ sub render {
my $PageLayout=&mt('Page layout');
my $NumberOfColumns=&mt('Number of columns');
my $PaperType=&mt('Paper type');
+ my $landscape=&mt('Landscape');
+ my $portrait=&mt('Portrait');
$result .= <
@@ -3074,8 +3233,8 @@ sub render {
- Landscape
- Portrait
+ $landscape
+ $portrait
|
|