--- loncom/interface/lonmeta.pm 2005/11/18 23:47:33 1.128
+++ loncom/interface/lonmeta.pm 2005/11/19 00:16:01 1.130
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Metadata display handler
#
-# $Id: lonmeta.pm,v 1.128 2005/11/18 23:47:33 banghart Exp $
+# $Id: lonmeta.pm,v 1.130 2005/11/19 00:16:01 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -240,8 +240,6 @@ sub fieldnames {
my %fields =
('title' => 'Title',
'author' =>'Author(s)',
- 'authorspace' => 'Author Space',
- 'modifyinguser' => 'Last Modifying User',
'subject' => 'Subject',
'keywords' => 'Keyword(s)',
'notes' => 'Notes',
@@ -512,29 +510,21 @@ sub prettyinput {
$cur_values_stu .= $_.',';
}
}
- }
- if ($type eq 'author') {
- return
- ''.
- &relatedfield(1,$relatedsearchflag,$relatedsep,$fieldname,
- $relatedvalue);
-
+ } else {
+ $cur_values_stu = $value;
}
if ($type eq 'courserestricted') {
return ('');
}
- if ($type eq 'authorspace') {
- }
- if ($type eq 'modifyinguser') {
- }
- if ($type eq 'subject') {
- }
- if ($type eq 'keywords') {
- if ($only_one) {
- $output .= (&Apache::loncommon::select_form($value,'new_keywords',%meta_options));
- } else {
- $output .= (&Apache::loncommon::multiple_select_form('new_keywords',\@cur_values_inst,undef,\%meta_options));
+ if (($type eq 'keywords') || ($type eq 'subject')
+ || ($type eq 'author')||($type eq 'notes')
+ || ($type eq 'abstract')|| ($type eq 'title')) {
+ if ($values) {
+ if ($only_one) {
+ $output .= (&Apache::loncommon::select_form($value,'new_'.$type,%meta_options));
+ } else {
+ $output .= (&Apache::loncommon::multiple_select_form('new_'.$type,\@cur_values_inst,undef,\%meta_options));
+ }
}
if ($stu_add) {
$output .= '