--- loncom/homework/lonhomework.pm 2009/03/16 18:20:22 1.306 +++ loncom/homework/lonhomework.pm 2009/05/19 22:52:19 1.311 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.306 2009/03/16 18:20:22 bisitz Exp $ +# $Id: lonhomework.pm,v 1.311 2009/05/19 22:52:19 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -297,12 +297,15 @@ sub check_slot_access { return ('WAITING_FOR_GRADE'); } - # no slot is currently open, and has been checked in for this version - # previous slot is therefore CLOSED, so therefore the problem is + # Previously used slot is no longer open, and has been checked in for this version. + # However, the problem is not closed, and potentially, another slot might be + # used to gain access to it to work on it, until the due date is reached, and the + # problem then becomes CLOSED. Therefore return the slotstatus - + # (which will be NOT_IN_SLOT). if (!defined($slot_name) && $checkedin && $type eq 'problem') { - return ('CLOSED',$datemsg); + return ($slotstatus); } if ($slotstatus eq 'NOT_IN_A_SLOT' @@ -686,11 +689,13 @@ sub analyze_header { my ($request) = @_; my $js = &Apache::structuretags::setmode_javascript(); my $result = - &Apache::loncommon::start_page('Analyzing a problem',$js); - + &Apache::loncommon::start_page('Analyzing a problem',$js) + .&Apache::lonhtmlcommon::breadcrumbs() # FIXME add breadcrumbs + .&Apache::loncommon::head_subbox( + &Apache::loncommon::CSTR_pageheader()); $result .= &Apache::lonxml::message_location().' -