CHOOSE_FROM_ANY_SEQUENCE
- return \$res->is_sequence;
+ return &Apache::lonprintout::printable_sequence(\$res);
return $urlValue;
return \$res->hasResource(\$res,sub { return !\$_[0]->is_sequence() },0,0);
@@ -4268,6 +4660,15 @@ CHOOSE_FROM_ANY_SEQUENCE
# Generate the first state, to select which resources get printed.
Apache::lonhelper::state->new("START", "Select Printing Options:");
+ if (!$res_printable) {
+ $paramHash = Apache::lonhelper::getParamHash();
+ $paramHash->{MESSAGE_TEXT} =
+ ''
+ .&mt('Printing for current resource is only possible between [_1] and [_2]',
+ $res_printstartdate, $res_printenddate).'
';
+ Apache::lonhelper::message->new();
+ }
+ $paramHash = Apache::lonhelper::getParamHash();
$paramHash = Apache::lonhelper::getParamHash();
$paramHash->{MESSAGE_TEXT} = "";
Apache::lonhelper::message->new();
@@ -4489,7 +4890,7 @@ FONT_SELECTION
return "$helper->{VARS}->{'probstatus'}";
Homework Problem
- Exam Problem
+ Bubblesheet Exam Problem
Survey question
,choice computer="anonsurvey"Anonymous survey question
@@ -4910,7 +5311,5 @@ sub postprocess {
}
}
-
-
__END__