--- loncom/interface/lonmeta.pm 2005/11/18 23:47:33 1.128 +++ loncom/interface/lonmeta.pm 2005/11/19 22:47:07 1.131 @@ -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.131 2005/11/19 22:47:07 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -512,29 +512,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 .= '