--- loncom/interface/lonmeta.pm 2006/08/10 21:14:10 1.167
+++ loncom/interface/lonmeta.pm 2006/10/16 21:39:37 1.183
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Metadata display handler
#
-# $Id: lonmeta.pm,v 1.167 2006/08/10 21:14:10 banghart Exp $
+# $Id: lonmeta.pm,v 1.183 2006/10/16 21:39:37 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -95,7 +95,8 @@ sub get_dynamic_metadata_from_sql {
while (my $result = <$fh>) {
chomp($result);
next if (! $result);
- my %hash=&LONCAPA::lonmetadata::metadata_col_to_hash(map { &unescape($_) } split(/\,/,$result));
+ my %hash=&LONCAPA::lonmetadata::metadata_col_to_hash('metadata',
+ map { &unescape($_) } split(/\,/,$result));
foreach my $key (keys(%hash)) {
$ReturnHash{$hash{'url'}}->{$key}=$hash{$key};
}
@@ -237,12 +238,6 @@ sub fieldnames {
if (! defined($file_type) || $file_type ne 'portfolio') {
%fields =
- (%fields,
- 'courserestricted' => 'Course Restricting Metadata');
- }
-
- if (! defined($file_type) || $file_type ne 'portfolio') {
- %fields =
(%fields,
'domain' => 'Domain',
'mime' => 'MIME Type',
@@ -366,15 +361,15 @@ sub pre_select_course {
$output = &select_course();
$r->print($output.'
');
+ $r->print('');
+ $r->print('');
$r->print('');
my ($port_path,$group) = &get_port_path_and_group($uri);
my $group_input;
if ($group) {
- $group_input = ''
- } else {
- $group_input = "";
- }
+ $group_input = '';
+ }
$r->print('