--- loncom/homework/response.pm 2001/12/04 15:17:56 1.53 +++ loncom/homework/response.pm 2001/12/07 23:59:08 1.54 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.53 2001/12/04 15:17:56 albertel Exp $ +# $Id: response.pm,v 1.54 2001/12/07 23:59:08 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -193,6 +193,17 @@ sub check_for_previous { return %previous; } +sub handle_previous { + my ($previous,$ad)=@_; + if ($$previous{'used'} && ($$previous{'award'} eq $ad) ) { + if ($$previous{'last'}) { + push(@Apache::inputtags::previous,'PREVIOUSLY_LAST'); + } else { + push(@Apache::inputtags::previous,'PREVIOUSLY_USED'); + } + } +} + sub start_caparesponse { require Apache::caparesponse; import Apache::caparesponse; 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.