--- loncom/interface/lonmeta.pm 2005/08/15 21:16:22 1.106 +++ loncom/interface/lonmeta.pm 2005/10/19 21:53:16 1.114 @@ -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.114 2005/10/19 21:53:16 banghart Exp $ # # Copyright Michigan State University Board of Trustees # @@ -237,8 +237,23 @@ sub diffgraph { # The field names sub fieldnames { my $file_type=shift; - my %fields = - ('title' => 'Title', + my %fields; + %fields = + (%fields, + 'title' => 'Title', + 'author' =>'Author(s)', + 'authorspace' => 'Author Space', + 'modifyinguser' => 'Last Modifying User', + 'subject' => 'Subject', + 'keywords' => 'Keyword(s)', + 'notes' => 'Notes', + 'abstract' => 'Abstract', + 'lowestgradelevel' => 'Lowest Grade Level', + 'highestgradelevel' => 'Highest Grade Level'); + if ($file_type eq 'portfolio') { + %fields = + (%fields, + 'title' => 'Title', 'author' =>'Author(s)', 'authorspace' => 'Author Space', 'modifyinguser' => 'Last Modifying User', @@ -248,6 +263,21 @@ sub fieldnames { 'abstract' => 'Abstract', 'lowestgradelevel' => 'Lowest Grade Level', 'highestgradelevel' => 'Highest Grade Level'); + } + if ($file_type eq 'restrictedportfolio') { + %fields = + (%fields, + 'metadata.title' => 'Title', + 'metadata.author' =>'Author(s)', + 'metadata.authorspace' => 'Author Space', + 'metadata.modifyinguser' => 'Last Modifying User', + 'metadata.subject' => 'Subject', + 'metadata.keywords' => 'Keyword(s)', + 'metadata.notes' => 'Notes', + 'metadata.abstract' => 'Abstract', + 'metadata.lowestgradelevel' => 'Lowest Grade Level', + 'metadata.highestgradelevel' => 'Highest Grade Level'); + } if (! defined($file_type) || $file_type ne 'portfolio') { %fields = (%fields, @@ -290,30 +320,36 @@ sub fieldnames { sub select_course { my ($r)=@_; - $r->print('