--- 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;