--- loncom/xml/lonxml.pm 2007/10/24 10:06:22 1.467 +++ loncom/xml/lonxml.pm 2007/11/13 22:16:10 1.469 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.467 2007/10/24 10:06:22 foxr Exp $ +# $Id: lonxml.pm,v 1.469 2007/11/13 22:16:10 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -377,7 +377,7 @@ sub xmlparse { $finaloutput .= join('',@script_var_displays); undef(@script_var_displays); } - + &init_state(); if ($env{'form.return_only_error_and_warning_counts'}) { return "$errorcount:$warningcount"; } @@ -659,6 +659,7 @@ sub setup_globals { &init_counter(); &clear_bubble_lines_for_part(); &init_state(); + &set_state('target',$target); @Apache::lonxml::pwd=(); @Apache::lonxml::extlinks=(); @script_var_displays=(); @@ -1148,7 +1149,7 @@ sub store_counter { =pod -=item bubble_lines_for_part(response_id) +=item bubble_lines_for_part(part_response) Returns the number of lines required to get a response for $part_response (this is just $Apache::lonxml::counters_per_part{$part_response} @@ -1182,7 +1183,7 @@ sub clear_bubble_lines_for_part { =pod -=item set_bubble_lines(response_id, value) +=item set_bubble_lines(part_response, value) If there is a problem part, that for whatever reason requires bubble lines that are not