--- loncom/interface/lonmeta.pm 2006/08/08 19:35:53 1.165
+++ loncom/interface/lonmeta.pm 2006/10/06 19:12:22 1.182
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Metadata display handler
#
-# $Id: lonmeta.pm,v 1.165 2006/08/08 19:35:53 banghart Exp $
+# $Id: lonmeta.pm,v 1.182 2006/10/06 19:12:22 banghart 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',
@@ -287,8 +282,7 @@ sub portfolio_linked_path {
if ($group) {
$start = "groups/$group/".$start;
}
- my %anchor_fields;
- %anchor_fields = (
+ my %anchor_fields = (
'selectfile' => $start,
'currentpath' => '/'
);
@@ -299,8 +293,7 @@ sub portfolio_linked_path {
foreach my $dir (@tree) {
$fullpath .= $dir.'/';
$result .= '/';
- my %anchor_fields = ();
- %anchor_fields = (
+ my %anchor_fields = (
'selectfile' => $dir,
'currentpath' => $fullpath
);
@@ -367,14 +360,20 @@ sub pre_select_course {
$r->print('
'.&mt('If you would like to associate this resource ([_1]) with a current or previous course, please select one from the list below, otherwise select, \'None\'',''.$res_uri.'').'