--- loncom/interface/lonmeta.pm 2005/10/25 18:46:03 1.117 +++ loncom/interface/lonmeta.pm 2005/11/15 19:20:12 1.127 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.117 2005/10/25 18:46:03 albertel Exp $ +# $Id: lonmeta.pm,v 1.127 2005/11/15 19:20:12 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, @@ -302,7 +304,7 @@ sub select_course { } $r->print('
'.$lt{$_}.': '. - &prettyinput($_, + &prettyinput($_, $Apache::lonpublisher::metadatafields{$_}, - 'new_'.$_,'defaultmeta',undef,undef,undef,undef,$key_base).'
'.$lt{$_}.': '. + if ($_ ne 'courserestricted') { + $output.=('
'.$lt{$_}.': '. &prettyinput($_, $Apache::lonpublisher::metadatafields{$_}, 'new_'.$_,'defaultmeta').'
'.$lt{$_}.': '. + &prettyinput($_, + $Apache::lonpublisher::metadatafields{$_}, + 'new_'.$_,'defaultmeta',undef,undef,undef,undef,$metacourse).'