Diff for /loncom/homework/structuretags.pm between versions 1.144.2.1 and 1.145

version 1.144.2.1, 2003/03/14 23:27:19 version 1.145, 2003/02/07 21:50:12
Line 252  sub start_problem { Line 252  sub start_problem {
   $Apache::inputtags::part='0';    $Apache::inputtags::part='0';
   @Apache::inputtags::responselist = ();    @Apache::inputtags::responselist = ();
   @Apache::inputtags::previous=();    @Apache::inputtags::previous=();
   @Apache::inputtags::previous_version=();  
   if ($target ne 'analyze') {    if ($target ne 'analyze') {
     &initialize_storage();      &initialize_storage();
     if ($target eq 'web') {      if ($target eq 'web') {
Line 451  sub end_problem { Line 450  sub end_problem {
       &Apache::lonhomework::showhash(%Apache::lonhomework::results);        &Apache::lonhomework::showhash(%Apache::lonhomework::results);
       &finalize_storage();        &finalize_storage();
     }      }
       if ($target eq 'answer' && ($ENV{'request.state'} eq 'construct') ) {
    $result.='</html>'; #normally we get it from xmlend, but in CSTR
                               # we always show answer mode too.
       }
   } elsif ($target eq 'meta') {    } elsif ($target eq 'meta') {
     if ($Apache::inputtags::part eq '0') {      if ($Apache::inputtags::part eq '0') {
       $result=&Apache::response::mandatory_part_meta;        $result=&Apache::response::mandatory_part_meta;
Line 662  sub start_part { Line 665  sub start_part {
   $Apache::inputtags::part=$id;    $Apache::inputtags::part=$id;
   @Apache::inputtags::responselist = ();    @Apache::inputtags::responselist = ();
   @Apache::inputtags::previous=();    @Apache::inputtags::previous=();
   @Apache::inputtags::previous_version=();  
   if ($target eq 'meta') {    if ($target eq 'meta') {
     return &Apache::response::mandatory_part_meta;      return &Apache::response::mandatory_part_meta;
   } elsif ($target eq 'web' || $target eq 'grade' || $target eq 'answer' || $target eq 'tex') {    } elsif ($target eq 'web' || $target eq 'grade' || $target eq 'answer' || $target eq 'tex') {

Removed from v.1.144.2.1  
changed lines
  Added in v.1.145


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>