--- loncom/interface/lonmeta.pm 2007/01/16 07:26:45 1.199 +++ loncom/interface/lonmeta.pm 2007/01/16 07:36:10 1.200 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.199 2007/01/16 07:26:45 raeburn Exp $ +# $Id: lonmeta.pm,v 1.200 2007/01/16 07:36:10 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -383,7 +383,40 @@ sub select_course { $Apache::lonpublisher::metadatafields{'courserestricted'}; my $selected = ($current_restriction eq 'none' ? 'selected="selected"' : ''); - + if ($current_restriction =~ /^course\.($match_domain\_$match_courseid)$/) { + my $assoc_crs = $1; + my $added_metadata_fields = &Apache::lonparmset::get_added_meta_fieldnames($assoc_crs); + if (ref($added_metadata_fields) eq 'HASH') { + if (keys(%{$added_metadata_fields}) > 0) { + my $transfernotes; + foreach my $field_name (keys(%{$added_metadata_fields})) { + my $value = $Apache::lonpublisher::metadatafields{$field_name}; + if ($value) { + $transfernotes .= + &Apache::loncommon::start_data_table_row(). + '