--- loncom/interface/lonmeta.pm 2003/12/29 21:17:00 1.48
+++ loncom/interface/lonmeta.pm 2003/12/30 14:57:49 1.49
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Metadata display handler
#
-# $Id: lonmeta.pm,v 1.48 2003/12/29 21:17:00 www Exp $
+# $Id: lonmeta.pm,v 1.49 2003/12/30 14:57:49 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -37,6 +37,7 @@ use Apache::lonmsg;
use Apache::lonpublisher;
use Apache::lonlocal;
use Apache::lonmysql;
+use Apache::lonmsg;
# MySQL table columns
@@ -529,18 +530,12 @@ ENDHEAD
if ((($ENV{'user.domain'} eq $1) && ($ENV{'user.name'} eq $2))
|| ($ENV{'user.role.ca./'.$1.'/'.$2})) {
$r->print(
- '
'.&mt('Evaluation Comments').' ('.&mt('visible to author and co-authors only').')
'.
+ ''.&mt('Evaluation Comments').' ('.
+ &mt('visible to author and co-authors only').')
'.
''.$dynmeta{'comments'}.'
');
$r->print(''.&mt('Error Messages').' ('.
- &mt('visible to author and co-authors only').')
');
- my %errormsgs=&Apache::lonnet::dump('nohist_res_msgs',$1,$2);
- foreach (keys %errormsgs) {
- if ($_=~/^\Q$disuri\E\_\d+$/) {
- my %content=&Apache::lonmsg::unpackagemsg($errormsgs{$_});
- $r->print(''.$content{'time'}.': '.$content{'message'}.
- '
');
- }
- }
+ &mt('visible to author and co-authors only').')'.
+ &Apache::lonmsg::retrieve_author_res_msg($2,$1,$disuri));
}
# ------------------------------------------------------------- All other stuff
$r->print(