--- loncom/interface/lonmeta.pm 2005/08/15 21:16:22 1.106 +++ loncom/interface/lonmeta.pm 2005/11/22 19:43:53 1.132 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.106 2005/08/15 21:16:22 banghart Exp $ +# $Id: lonmeta.pm,v 1.132 2005/11/22 19:43:53 banghart Exp $ # # Copyright Michigan State University Board of Trustees # @@ -247,7 +247,9 @@ sub fieldnames { 'notes' => 'Notes', 'abstract' => 'Abstract', 'lowestgradelevel' => 'Lowest Grade Level', - 'highestgradelevel' => 'Highest Grade Level'); + 'highestgradelevel' => 'Highest Grade Level', + 'courserestricted' => 'Course Restricting Metadata'); + if (! defined($file_type) || $file_type ne 'portfolio') { %fields = (%fields, @@ -290,30 +292,37 @@ sub fieldnames { sub select_course { my ($r)=@_; - $r->print('
'.$lt{$_}.': '. - &prettyinput($_, - $Apache::lonpublisher::metadatafields{$_}, - 'new_'.$_,'defaultmeta').'
'.$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').'
'. &mt('Could not write metadata').', '.