--- loncom/interface/lonmeta.pm 2005/10/25 18:46:03 1.117
+++ loncom/interface/lonmeta.pm 2005/11/08 03:08:15 1.124
@@ -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.124 2005/11/08 03:08:15 albertel 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,
@@ -313,7 +315,8 @@ sub select_course {
$r->print('Select your course
');
$r->print('
');
}
} else {
$output.=(''.$lt{$_}.': '.
@@ -1076,9 +1113,9 @@ ENDEDIT
my $formname='store';
my $file_content;
foreach my $meta_field (keys %env) {
- if (&Apache::loncommon::get_env_multiple('form.keywords')) {
- $Apache::lonpublisher::metadatafields{'coursekeyword'} =
- join (', ', &Apache::loncommon::get_env_multiple('form.keywords'));
+ if (&Apache::loncommon::get_env_multiple('form.new_keywords')) {
+ $Apache::lonpublisher::metadatafields{'keywords'} =
+ join (',', &Apache::loncommon::get_env_multiple('form.new_keywords'));
}
}
foreach (sort keys %Apache::lonpublisher::metadatafields) {