--- loncom/homework/response.pm 2007/05/31 04:15:52 1.168 +++ loncom/homework/response.pm 2007/06/19 19:34:18 1.171 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.168 2007/05/31 04:15:52 albertel Exp $ +# $Id: response.pm,v 1.171 2007/06/19 19:34:18 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -852,8 +852,11 @@ Returns either the exact text of the sub converted to something usable. Optional Arguments: - $offset - if a problem has more than one bubble response, pass in the number - of the bubble wanted + $offset - (defaults to 1) if a problem has more than one bubble + response, pass in the number of the bubble wanted, (the + first bubble associated with a problem has an offset of 1, + the second bubble is 2 + $resulttype - undef -> a number between 0 and 25 'A is 1' -> a number between 1 and 26 'letter' -> a letter between 'A' and 'Z' @@ -865,7 +868,7 @@ sub getresponse { my $formparm='form.HWVAL_'.$Apache::inputtags::response['-1']; my $response; if (!defined($offset)) { - $temp=1; + $offset=1; } else { $formparm.=":$offset"; }