--- loncom/homework/default_homework.lcpm 2014/06/25 16:50:51 1.169 +++ loncom/homework/default_homework.lcpm 2016/12/06 20:51:11 1.171 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run() # -# $Id: default_homework.lcpm,v 1.169 2014/06/25 16:50:51 raeburn Exp $ +# $Id: default_homework.lcpm,v 1.171 2016/12/06 20:51:11 damieng Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1228,11 +1228,11 @@ sub sec { } sub submission { - my ($partid,$responseid,$subnumber,$encode,$cleanupnum)=@_; + my ($partid,$responseid,$subnumber,$encode,$cleanupnum,$mapalias)=@_; my $sub=''; if ($subnumber) { $sub=$subnumber.':'; } my $output = - &EXT('user.resource.'.$sub.'resource.'.$partid.'.'.$responseid.'.submission'); + &EXT('user.resource.'.$sub.'resource.'.$partid.'.'.$responseid.'.submission',$mapalias); if (ref($output) eq 'ARRAY') { my @items = @{$output}; if ($encode) { @@ -1458,3 +1458,8 @@ sub proper_path { } } +sub input_id { + my ($part_id, $response_id, $textline_id) = @_; + return 'HWVAL_'.$part_id.'_'.$response_id.'_'.$textline_id; +} +