version 1.206, 2007/05/02 01:33:49
|
version 1.209, 2007/06/15 23:01:07
|
Line 1026 sub print_dynamic_metadata {
|
Line 1026 sub print_dynamic_metadata {
|
# |
# |
# New assessment statistics |
# New assessment statistics |
$r->print('<h4>'. |
$r->print('<h4>'. |
&mt('Detailed Assessment Statistical Data'). |
&mt('Recent Detailed Assessment Statistical Data'). |
'</h4>'); |
'</h4>'); |
my $table = '<table cellspacing="2" border="0">'. |
my $table = '<table cellspacing="2" border="0">'. |
'<tr>'. |
'<tr>'. |
'<th>Course</th>'. |
'<th>'.&mt('Course').'</th>'. |
'<th>Section(s)</th>'. |
'<th>'.&mt('Section(s)').'</th>'. |
'<th>Num Students</th>'. |
'<th>'.&mt('Num Student').'s</th>'. |
'<th>Mean Tries</th>'. |
'<th>'.&mt('Mean Tries').'</th>'. |
'<th>Degree of Difficulty</th>'. |
'<th>'.&mt('Degree of Difficulty').'</th>'. |
'<th>Degree of Discrimination</th>'. |
'<th>'.&mt('Degree of Discrimination').'</th>'. |
'<th>Time of computation</th>'. |
'<th>'.&mt('Time of computation').'</th>'. |
'</tr>'.$/; |
'</tr>'.$/; |
foreach my $identifier (sort(keys(%{$dynmeta{'stats'}}))) { |
foreach my $identifier (sort(keys(%{$dynmeta{'stats'}}))) { |
my $data = $dynmeta{'stats'}->{$identifier}; |
my $data = $dynmeta{'stats'}->{$identifier}; |
Line 1212 ENDBOMBS
|
Line 1212 ENDBOMBS
|
<input type="submit" name="clearmsg" value="$clear" /> |
<input type="submit" name="clearmsg" value="$clear" /> |
ENDDEL |
ENDDEL |
} else { |
} else { |
$r->print('<p><a href="'.$disuri.'" />'.$goback.'</a></p>'); |
$r->print('<p><a href="'.$disuri.'">'.$goback.'</a></p>'); |
if ($env{'form.clearmsg'}) { |
if ($env{'form.clearmsg'}) { |
my ($diruri) = ($disuri =~ m{(.*/)[^/]*}); |
my ($diruri) = ($disuri =~ m{(.*/)[^/]*}); |
$r->print('<p><a href="'.$diruri.'" />'. |
$r->print('<p><a href="'.$diruri.'">'. |
&mt('Back To Directory').'</a></p>'); |
&mt('Back To Directory').'</a></p>'); |
} |
} |
} |
} |
Line 1312 ENDEDIT
|
Line 1312 ENDEDIT
|
$Apache::lonpublisher::metadatafields{'owner'} = |
$Apache::lonpublisher::metadatafields{'owner'} = |
$env{'user.name'}.':'.$env{'user.domain'}; |
$env{'user.name'}.':'.$env{'user.domain'}; |
} |
} |
|
if (! $Apache::lonpublisher::metadatafields{'author'}) { |
|
$Apache::lonpublisher::metadatafields{'author'} = |
|
&Apache::loncommon::plainname($env{'user.name'}, |
|
$env{'user.domain'}); |
|
} |
if ($Apache::lonpublisher::metadatafields{'courserestricted'} ne 'none') { |
if ($Apache::lonpublisher::metadatafields{'courserestricted'} ne 'none') { |
|
|
if ($file_type eq 'portfolio') { |
if ($file_type eq 'portfolio') { |