{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
@@ -2923,6 +3044,21 @@ CHOOSE_FROM_ANY_SEQUENCE
Apache::lonhelper::dropdown->new();
addMessage("");
+ # Prompt for printing annotations too.
+
+ addMessage("".
+ ': | ");
+ $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";
@@ -2962,6 +3098,24 @@ CHOOSE_FROM_ANY_SEQUENCE
|
RNDSEED
&Apache::lonxml::xmlparse($r, 'helper', $xmlfrag);
+
+
+ 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(" |
");
+
}
}