');
}
@@ -1513,6 +1532,18 @@ sub loadassessment {
# ----------------- now courseopt, useropt initialized for this user and course
# (used by parmval)
+#
+# Load keys for this assessment only
+#
+ my %thisassess=();
+ my ($symap,$syid,$srcf)=split(/\_\_\_/,$symb);
+
+ map {
+ $thisassess{$_}=1;
+ } split(/\,/,&Apache::lonnet::metadata($srcf,'keys'));
+#
+# Load parameters
+#
my %c=();
if (tie(%parmhash,'GDBM_File',
@@ -1522,9 +1553,11 @@ sub loadassessment {
if ($_=~/^A/) {
unless ($f{$_}=~/^\!/) {
if ($f{$_}=~/^parameter/) {
+ if ($thisassess{$f{$_}}) {
my $val=&parmval($f{$_},$safeeval);
$c{$_}=$val;
$c{$f{$_}}=$val;
+ }
} else {
my $key=$f{$_};
my $ckey=$key;
@@ -1973,7 +2006,8 @@ ENDSCRIPT
# ---------------------------------------------------------------- Course title
$r->print('
');
# ---------------------------------------------------- See if user can see this
@@ -2096,6 +2130,15 @@ ENDSCRIPT
&tmpwrite($asheet);
+ if (&gettype($asheet) eq 'studentcalc') {
+ $r->print(' Show rows with empty A column: ');
+ } else {
+ $r->print(' Show empty rows: ');
+ }
+ $r->print('print(' checked'); }
+ $r->print('>');
+
# ------------------------------------------------------------- Print out sheet
&outsheet($r,$asheet);