--- loncom/interface/lonmeta.pm 2009/04/21 15:38:02 1.231 +++ loncom/interface/lonmeta.pm 2009/05/27 13:29:47 1.233 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.231 2009/04/21 15:38:02 bisitz Exp $ +# $Id: lonmeta.pm,v 1.233 2009/05/27 13:29:47 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1123,7 +1123,7 @@ sub print_dynamic_metadata { .&mt('visible to author and co-authors only') .')' ); - if (exists($dynmeta{'comments'}) and $dynmeta{'comments'} ne '') { + if (exists($dynmeta{'comments'})) { $r->print('
'.$dynmeta{'comments'}.''); } else { $r->print('
'
@@ -1262,7 +1262,8 @@ ENDDEL
if ($disuri=~/\/default$/) {
my $dir=$disuri;
$dir=~s/default$//;
- $displayfile=&mt('Default Metadata for Directory [_1]',$dir);
+ $displayfile=&mt('Default Metadata for Directory [_1]'
+ ,''.$dir.'');
}
%Apache::lonpublisher::metadatafields=();
%Apache::lonpublisher::metadatakeys=();
@@ -1289,7 +1290,7 @@ ENDDEL
}
}
$r->print(< $displayfile