--- loncom/interface/lonmeta.pm 2009/03/17 20:07:45 1.226 +++ loncom/interface/lonmeta.pm 2009/04/21 15:38:02 1.231 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.226 2009/03/17 20:07:45 schulted Exp $ +# $Id: lonmeta.pm,v 1.231 2009/04/21 15:38:02 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -558,7 +558,7 @@ sub selectbox { foreach my $id (@idlist) { $selout.=''; + $selout.=' selected="selected">'.&{$functionref}($id).''; } else { $selout.='>'.&{$functionref}($id).''; } @@ -578,7 +578,7 @@ sub relatedfield { return $relatedsep.' '; } return $relatedsep.''; + ($relatedvalue?' checked="checked"':'').' />'; } sub prettyinput { @@ -691,7 +691,7 @@ sub prettyinput { # Obsolete if ($type eq 'obsolete') { return ''. + ($value?' checked="checked"':'').' />'. &relatedfield(0,$relatedsearchflag,$relatedsep); } # Obsolete replacement file @@ -968,13 +968,13 @@ sub print_dynamic_metadata { my %dynmeta=&dynamicmeta($uri); # # General Access and Usage Statistics + $r->print('
' + .&mt('No Access or Usages Statistics are available for this resource.') + .'
' + ); } # # Assessment statistics @@ -1021,12 +1024,13 @@ sub print_dynamic_metadata { } $r->print(&Apache::lonhtmlcommon::end_pick_box()); } + # + # New assessment statistics + $r->print('' + .&mt('No new dynamic data found.') + .'
' + ); } } else { $r->print('' + .&mt('No Evaluation Data is available for this resource.') + .'
' + ); } + # Evaluation Comments $uri=~/^\/res\/($match_domain)\/($match_username)\//; if ((($env{'user.domain'} eq $1) && ($env{'user.name'} eq $2)) || ($env{'user.role.ca./'.$1.'/'.$2})) { - if (exists($dynmeta{'comments'})) { - $r->print(''.$dynmeta{'comments'}.''); + $r->print('
'.$dynmeta{'comments'}.''); } else { - $r->print('
' + .&mt('There are no Evaluation Comments on this resource.') + .'
' + ); } my $bombs = &Apache::lonmsg::retrieve_author_res_msg($uri); if (defined($bombs) && $bombs ne '') { - $r->print('';
+ $output .= ' ';
if ($caller eq 'transfer') {
$output .= &mt('Could not transfer data in added fields to notes');
} else {
$output .= &mt('Could not write metadata');
}
- $output .= ', '.&mt('FAIL').'
';
+ $output .= ' ';
if ($caller eq 'transfer') {
$output .= &mt('Transferred data in added fields to notes');
} else {
$output .= &mt('Wrote Metadata');
}
$output .= ' '.&Apache::lonlocal::locallocaltime(time).
- '
';
+ $output = ' ';
if ($caller eq 'transfer') {
$output .=
&mt('Could not transfer data in added fields to notes');
} else {
$output .= &mt('Could not write metadata');
}
- $output .= ', '.&mt('FAIL').'
';
+ $output = ' ';
if ($caller eq 'transfer') {
$output .= &mt('Transferred data in added fields to notes');
} else {
$output .= &mt('Wrote Metadata');
}
$output .= ' '.&Apache::lonlocal::locallocaltime(time).
- '