--- loncom/interface/lonmeta.pm 2007/05/01 02:13:40 1.205
+++ loncom/interface/lonmeta.pm 2008/01/24 10:05:13 1.211
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Metadata display handler
#
-# $Id: lonmeta.pm,v 1.205 2007/05/01 02:13:40 www Exp $
+# $Id: lonmeta.pm,v 1.211 2008/01/24 10:05:13 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1026,17 +1026,17 @@ sub print_dynamic_metadata {
#
# New assessment statistics
$r->print('
'.
- &mt('Detailed Assessment Statistical Data').
+ &mt('Recent Detailed Assessment Statistical Data').
'
');
my $table = ''.
''.
- 'Course | '.
- 'Section(s) | '.
- 'Num Students | '.
- 'Mean Tries | '.
- 'Degree of Difficulty | '.
- 'Degree of Discrimination | '.
- 'Time of computation | '.
+ ''.&mt('Course').' | '.
+ ''.&mt('Section(s)').' | '.
+ ''.&mt('Num Student').'s | '.
+ ''.&mt('Mean Tries').' | '.
+ ''.&mt('Degree of Difficulty').' | '.
+ ''.&mt('Degree of Discrimination').' | '.
+ ''.&mt('Time of computation').' | '.
'
'.$/;
foreach my $identifier (sort(keys(%{$dynmeta{'stats'}}))) {
my $data = $dynmeta{'stats'}->{$identifier};
@@ -1074,7 +1074,7 @@ sub print_dynamic_metadata {
$table .= '
'.$/;
$r->print($table);
} else {
- $r->print('No new dynamic data found.');
+ $r->print(&mt('No new dynamic data found.'));
}
} else {
$r->print(''.
@@ -1212,22 +1212,20 @@ ENDBOMBS
ENDDEL
} else {
- $r->print('
'.$goback.'
');
+ $r->print(''.$goback.'
');
if ($env{'form.clearmsg'}) {
my ($diruri) = ($disuri =~ m{(.*/)[^/]*});
- $r->print(''.
+ $r->print('
'.
&mt('Back To Directory').'
');
}
}
$r->print('
'.$bombs);
} else {
- my $displayfile='Catalog Information for '.$disuri;
+ my $displayfile=&mt('Catalog Information for [_1]',$disuri);
if ($disuri=~/\/default$/) {
my $dir=$disuri;
$dir=~s/default$//;
- $displayfile=
- &mt('Default Cataloging Information for Directory').' '.
- $dir;
+ $displayfile=&mt('Default Cataloging Information for Directory [_1]',$dir);
}
%Apache::lonpublisher::metadatafields=();
%Apache::lonpublisher::metadatakeys=();
@@ -1312,6 +1310,11 @@ ENDEDIT
$Apache::lonpublisher::metadatafields{'owner'} =
$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 ($file_type eq 'portfolio') {
@@ -1327,7 +1330,7 @@ ENDEDIT
".description"}.'').'
');
}
} else {
- $r->print('This resource is not associated with a course.
');
+ $r->print(''.&mt('This resource is not associated with a course.').'
');
}
}
if (@added_order) {
@@ -1386,7 +1389,7 @@ ENDEDIT
$r->print($result);
}
$r->print($output.'
');
+ &mt('Save Catalog Information').'" />');
if ($file_type eq 'portfolio' || $file_type eq 'groups') {
my ($port_path,$group) = &get_port_path_and_group($uri);