[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
raeburn
raeburn at source.lon-capa.org
Mon Apr 4 13:34:01 EDT 2016
raeburn Mon Apr 4 17:34:01 2016 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
- Bug 6808. New course container -- "Placement" for Placement Tests.
- "New Problem Variation Each Try" header suppressed unless adv role.
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.548 loncom/homework/structuretags.pm:1.549
--- loncom/homework/structuretags.pm:1.548 Mon Apr 4 17:24:18 2016
+++ loncom/homework/structuretags.pm Mon Apr 4 17:34:01 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.548 2016/04/04 17:24:18 raeburn Exp $
+# $Id: structuretags.pm,v 1.549 2016/04/04 17:34:01 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1605,8 +1605,9 @@
} elsif (($env{'request.state'} ne "construct") &&
($Apache::lonhomework::type eq 'randomizetry') &&
($status eq 'CAN_ANSWER') &&
- ($env{'course.'.$env{'request.course.id'}.'.type'} ne 'Placement')) {
-# "New Problem Variation Each Try" header suppressed for Placement Tests.
+ ($env{'course.'.$env{'request.course.id'}.'.type'} ne 'Placement') &&
+ (!$env{'request.role.adv'})) {
+# "New Problem Variation Each Try" header suppressed for Placement Tests, unless course personnel.
my $reqtries = &Apache::lonnet::EXT("resource.$Apache::inputtags::part.randomizeontries");
my $problemstatus = &get_problem_status($Apache::inputtags::part);
$form_tag_start.=&randomizetry_problem_header($problemstatus,$reqtries);
@@ -1937,7 +1938,7 @@
if (ref($navmap)) {
my $hastries = &Apache::lonplacementtest::has_tries($symb,$navmap);
# For Placement Tests test status is displayed if this is the last resource in the course
-# and there are no tries left;
+# and there are no tries left
unless ($hastries) {
if (&Apache::lonplacementtest::is_lastres($symb,$navmap)) {
my ($score,$incomplete) =
More information about the LON-CAPA-cvs
mailing list