--- loncom/interface/statistics/lonsubmissiontimeanalysis.pm 2003/11/11 22:14:28 1.4 +++ loncom/interface/statistics/lonsubmissiontimeanalysis.pm 2003/12/10 23:06:57 1.5 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonsubmissiontimeanalysis.pm,v 1.4 2003/11/11 22:14:28 matthew Exp $ +# $Id: lonsubmissiontimeanalysis.pm,v 1.5 2003/12/10 23:06:57 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -364,14 +364,23 @@ sub ProblemSelector { if ($ENV{'form.problemchoice'} eq $value) { $checked = 'checked '; } + my $title = $res->{'title'}; + if (! defined($title) || $title eq '') { + ($title) = ($res->{'src'} =~ m:/([^/]*)$:); + } +# &Apache::lonnet::logthis('title = :'.$title.':'); $seq_str .= ''. ''. ''. - ''.$res->{'title'}.' '; + ''.$title.' '; } else { + my $title = $res->{'title'}; + if (! defined($title) || $title eq '') { + ($title) = ($res->{'src'} =~ m:/([^/]*)$:); + } $seq_str .= ''. ' '.''. - ''.$res->{'title'}.''. + ''.$title.''. "\n"; foreach my $part (@{$res->{'parts'}}) { my $value = &Apache::lonnet::escape