--- loncom/homework/inputtags.pm 2006/03/09 00:43:05 1.189 +++ loncom/homework/inputtags.pm 2006/03/09 01:11:12 1.190 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.189 2006/03/09 00:43:05 albertel Exp $ +# $Id: inputtags.pm,v 1.190 2006/03/09 01:11:12 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -222,21 +222,32 @@ sub end_textfield { return $result; } -sub exam_box { +sub exam_score_line { my ($target) = @_; - my $result; + my $result; if ($target eq 'tex') { - $result.='\fbox{\fbox{\parbox{\textwidth-5mm}{\strut\\\\\strut\\\\\strut\\\\\strut\\\\}}}'; my $repetition = &Apache::response::repetition(); $result.='\begin{enumerate}'; + if ($env{'request.state'} eq "construct" ) {$result.='\item[\strut]';} foreach my $i (0..$repetition-1) { $result.='\item[\textbf{'. ($Apache::lonxml::counter+$i). '}.]\textit{Leave blank on scoring form}\vskip 0 mm'; } $result.= '\end{enumerate}'; + } + + return $result; +} + +sub exam_box { + my ($target) = @_; + my $result; + if ($target eq 'tex') { + $result .= '\fbox{\fbox{\parbox{\textwidth-5mm}{\strut\\\\\strut\\\\\strut\\\\\strut\\\\}}}'; + $result .= &exam_score_line($target); } elsif ($target eq 'web') { my $id=$Apache::inputtags::response[-1]; $result.= '

@@ -252,7 +263,6 @@ sub needs_exam_box { 'stringresponse', 'reactionresponse', 'organicresponse', - 'imageresponse', ); foreach my $tag (@tags) {