--- loncom/interface/lonmeta.pm 2004/08/03 15:56:18 1.85
+++ loncom/interface/lonmeta.pm 2005/02/01 17:37:23 1.90
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Metadata display handler
#
-# $Id: lonmeta.pm,v 1.85 2004/08/03 15:56:18 albertel Exp $
+# $Id: lonmeta.pm,v 1.90 2005/02/01 17:37:23 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -236,6 +236,17 @@ sub diffgraph {
# The field names
sub fieldnames {
+ my $file_type=shift;
+ if ($file_type eq 'portfolio') {
+ return &Apache::lonlocal::texthash
+ (
+ 'title' => 'Title',
+ 'author' =>'Author(s)',
+ 'authorspace' => 'Author Space',
+ 'modifyinguser' => 'Last Modifying User',
+ 'subject' => 'Subject',
+ 'keywords' => 'Keyword(s)');
+ } else {
return &Apache::lonlocal::texthash
(
'title' => 'Title',
@@ -280,6 +291,7 @@ sub fieldnames {
'disc' => 'Degree of discrimination',
'dependencies' => 'Resources used by this resource',
);
+ }
}
# Pretty printing of metadata field
@@ -537,6 +549,11 @@ sub handler {
$r->print(&Apache::loncommon::bodytag('Error Messages'));
# Looking for all bombs?
&report_bombs($r,$uri);
+ } elsif ($uri=~/\/portfolio\//) {
+ $r->print(&Apache::loncommon::bodytag
+ ('Edit Portfolio File Information','','','',$resdomain));
+ &present_editable_metadata($r,$uri,'portfolio');
+
} elsif ($uri=~/^\/\~/) {
# Construction space
$r->print(&Apache::loncommon::bodytag
@@ -665,7 +682,7 @@ $disuri
$obsoletewarning
$versiondisplay
'.$lt{'stdno'}.' | '. ''.
&prettyprint('stdno',$dynmeta{'stdno'}).
@@ -739,7 +756,7 @@ sub print_dynamic_metadata {
$r->print(''. &mt('Detailed Assessment Statistical Data'). ''); - my $table = '
|