--- loncom/homework/response.pm 2001/01/22 19:58:09 1.20
+++ loncom/homework/response.pm 2001/04/16 20:05:04 1.25
@@ -7,7 +7,7 @@ package Apache::response;
use strict;
sub BEGIN {
- &Apache::lonxml::register('Apache::response',('responseparam','caparesponse','numericalresponse','radiobuttonresponse','optionresponse'));
+ &Apache::lonxml::register('Apache::response',('responseparam','caparesponse','numericalresponse','radiobuttonresponse','optionresponse','imageresponse','essayresponse'));
}
sub start_response {
@@ -71,7 +71,7 @@ sub mandatory_part_meta {
&meta_stores_write('solved','string',
'Problem Status').
&meta_stores_write('tries','int_zeropos',
- 'Number of Unsuccessful Tries').
+ 'Number of Attempts').
&meta_stores_write('awarded','float',
'Partial Credit Factor');
#
@@ -88,33 +88,43 @@ sub start_numericalresponse {
require Apache::caparesponse;
import Apache::caparesponse;
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
- Apache::caparesponse::start_numericalresponse($target,$token,$parstack,$parser,$safeeval,$style);;
- return "";
+ return &Apache::caparesponse::start_numericalresponse($target,$token,$parstack,$parser,$safeeval,$style);
}
sub start_caparesponse {
require Apache::caparesponse;
import Apache::caparesponse;
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
-# print "\n
\nsimple caparesponse\n";
- Apache::caparesponse::start_caparesponse($target,$token,$parstack,$parser,$safeeval,$style);;
- return "";
+# print "\n
\nsimple caparesponse\n";
+ return &Apache::caparesponse::start_caparesponse($target,$token,$parstack,$parser,$safeeval,$style);
}
sub start_radiobuttonresponse {
require Apache::radiobuttonresponse;
import Apache::radiobuttonresponse;
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
- Apache::radiobuttonresponse::start_radiobuttonresponse($target,$token,$parstack,$parser,$safeeval,$style);;
- return "";
+ return &Apache::radiobuttonresponse::start_radiobuttonresponse($target,$token,$parstack,$parser,$safeeval,$style);
}
sub start_optionresponse {
require Apache::optionresponse;
import Apache::optionresponse;
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
- Apache::optionresponse::start_optionresponse($target,$token,$parstack,$parser,$safeeval,$style);;
- return "";
+ return &Apache::optionresponse::start_optionresponse($target,$token,$parstack,$parser,$safeeval,$style);
+}
+
+sub start_imageresponse {
+ require Apache::imageresponse;
+ import Apache::imageresponse;
+ my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
+ return &Apache::imageresponse::start_imageresponse($target,$token,$parstack,$parser,$safeeval,$style);
+}
+
+sub start_essayresponse {
+ require Apache::essayresponse;
+ import Apache::essayresponse;
+ my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
+ return &Apache::essayresponse::start_essayresponse($target,$token,$parstack,$parser,$safeeval,$style);
}
sub start_responseparam {
@@ -146,6 +156,7 @@ sub start_responseparam {
}
sub end_responseparam {
+ return '';
}
1;