--- loncom/interface/lonmeta.pm 2005/12/08 02:17:56 1.135 +++ loncom/interface/lonmeta.pm 2005/12/15 22:18:57 1.139 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.135 2005/12/08 02:17:56 banghart Exp $ +# $Id: lonmeta.pm,v 1.139 2005/12/15 22:18:57 banghart Exp $ # # Copyright Michigan State University Board of Trustees # @@ -291,8 +291,9 @@ sub fieldnames { } sub select_course { - my ($r)=@_; my %courses; + my $output; + my $selected; foreach my $key (keys (%env)) { if ($key =~ m/\.metadata\./) { $key =~ m/^course\.(.+)(\.metadata.+$)/; @@ -302,30 +303,27 @@ sub select_course { $courses{$coursekey} = $value; } } - $r->print('
'.$lt{$field_name}.': '. &prettyinput($field_name, $Apache::lonpublisher::metadatafields{$field_name}, - 'new_'.$field_name,'defaultmeta',undef,undef,undef,undef,$metacourse).'
'.$lt{$field_name}.': '. &prettyinput($field_name, $Apache::lonpublisher::metadatafields{$field_name}, 'new_'.$field_name,'defaultmeta').'