--- loncom/homework/structuretags.pm 2006/06/24 01:28:17 1.358 +++ loncom/homework/structuretags.pm 2006/07/27 20:47:03 1.362 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.358 2006/06/24 01:28:17 albertel Exp $ +# $Id: structuretags.pm,v 1.362 2006/07/27 20:47:03 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -251,7 +251,7 @@ sub problem_edit_header {
'. - &Apache::loncommon::help_open_menu('','Problem Editing Help','Problem_Editor_XML_Index','',5,'Authoring',undef,undef,undef,'Problem Editing Help') + &Apache::loncommon::help_open_menu('Problem Editing Help','Problem_Editor_XML_Index',5,'Authoring',undef,undef,undef,'Problem Editing Help') .'
'. '
'; } @@ -528,7 +528,6 @@ sub init_problem_globals { undef($Apache::lonhomework::name); undef($Apache::lonhomework::default_type); undef($Apache::lonhomework::type); - undef($Apache::lonhomework::problemstatus); } sub reset_problem_globals { @@ -736,6 +735,13 @@ sub start_problem { 'problem'); } } elsif ($target eq 'web') { + if ($status eq 'CAN_ANSWER' + && $slot_name ne '' + && $Apache::lonhomework::history{'resource.0.checkedin'} eq '') { + # unproctored slot access, self checkin + &Apache::bridgetask::check_in('problem',undef,undef, + $slot_name); + } $result.="\n $form_tag_start". ''; # create a page header and exit @@ -1592,9 +1598,10 @@ sub end_startouttext { ." ". &Apache::edit::insertlist($target,$token). + '' . + &Apache::loncommon::helpLatexCheatsheet(). &Apache::edit::end_row(). - &Apache::edit::start_spanning_row()."\n" - . &Apache::loncommon::helpLatexCheatsheet () . + &Apache::edit::start_spanning_row()."\n". &Apache::edit::editfield($token->[1],$text,"",80,8,1); } if ($target eq 'modified') {