--- loncom/interface/lonmeta.pm 2007/01/16 07:36:10 1.200 +++ loncom/interface/lonmeta.pm 2007/05/15 20:21:17 1.208 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.200 2007/01/16 07:36:10 raeburn Exp $ +# $Id: lonmeta.pm,v 1.208 2007/05/15 20:21:17 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -265,7 +265,7 @@ sub fieldnames { 'correct' => 'Material appears to be correct', 'technical' => 'Resource is technically correct', 'avetries' => 'Average number of tries till solved', - 'stdno' => 'Total number of students who have worked on this problem', + 'stdno' => 'Statistics calculated for number of students', 'difficulty' => 'Degree of difficulty', 'disc' => 'Degree of discrimination', 'dependencies' => 'Resources used by this resource', @@ -631,14 +631,15 @@ sub prettyinput { if ($meta_options{$item}) { push(@cur_values_inst,$item); } else { - if ($item ne 'Not Specified') { + if ($item ne '') { $cur_values_stu .= $item.','; } } } + $cur_values_stu =~ s/,$//; my @key_order = sort(keys(%meta_options)); - unshift (@key_order,'Not Specified'); - $meta_options{'Not Specified'} = 'Not Specified'; + unshift(@key_order,''); + $meta_options{''} = 'Not specified'; $meta_options{'select_form_order'} = \@key_order; } else { $cur_values_stu = $value; @@ -803,8 +804,10 @@ sub handler { &present_editable_metadata($r,$uri,'groups'); } elsif ($uri=~m|^/~|) { # Construction space - $r->print(&Apache::loncommon::start_page('Edit Catalog nformation', - undef, + $r->print(&Apache::loncommon::start_page('Edit Catalog Information', + "\n".'', {'domain' => $resdomain,})); &present_editable_metadata($r,$uri); } else { @@ -1023,17 +1026,17 @@ sub print_dynamic_metadata { # # New assessment statistics $r->print('
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').' | '. '
---|