--- loncom/interface/Attic/lonspreadsheet.pm 2001/09/17 22:01:23 1.65
+++ loncom/interface/Attic/lonspreadsheet.pm 2001/10/17 21:11:22 1.70
@@ -6,7 +6,8 @@
# 01/01/01,02/01,03/01,19/01,20/01,22/01,
# 03/05,03/08,03/10,03/12,03/13,03/15,03/17,
# 03/19,03/20,03/21,03/27,04/05,04/09,
-# 07/09,07/14,07/21,09/01,09/10,9/11,9/12,9/13,9/14,9/17 Gerd Kortemeyer
+# 07/09,07/14,07/21,09/01,09/10,9/11,9/12,9/13,9/14,9/17,
+# 10/16,10/17 Gerd Kortemeyer
package Apache::lonspreadsheet;
@@ -1049,7 +1050,7 @@ sub parmval {
# ----------------------------------------------------- Cascading lookup scheme
my $rwhat=$what;
$what=~s/^parameter\_//;
- $what=~s/\_/\./;
+ $what=~s/\_([^\_]+)$/\.$1/;
my $symbparm=$symb.'.'.$what;
my $mapparm=$mapname.'___(all).'.$what;
@@ -1567,7 +1568,7 @@ sub loadassessment {
my $key=$f{$_};
my $ckey=$key;
$key=~s/^stores\_/resource\./;
- $key=~s/\_/\./;
+ $key=~s/\_/\./g;
$c{$_}=$returnhash{$key};
$c{$ckey}=$returnhash{$key};
}
@@ -2143,7 +2144,12 @@ ENDSCRIPT
$r->print('print(' checked'); }
$r->print('>');
-
+ if (&gettype($asheet) eq 'classcalc') {
+ $r->print(
+ ' Output CSV format: print(' checked'); }
+ $r->print('>');
+ }
# ------------------------------------------------------------- Print out sheet
&outsheet($r,$asheet);