version 1.82, 2004/06/17 18:22:13
|
version 1.85, 2004/08/03 15:56:18
|
Line 71 sub get_dynamic_metadata_from_sql {
|
Line 71 sub get_dynamic_metadata_from_sql {
|
if (! defined($authordom) || ! defined($author)) { |
if (! defined($authordom) || ! defined($author)) { |
return (); |
return (); |
} |
} |
my @Fields = ('url', |
my @Fields = ('url','count','course', |
'goto','goto_list', |
'goto','goto_list', |
'comefrom','comefrom_list', |
'comefrom','comefrom_list', |
'sequsage','sequsage_list', |
'sequsage','sequsage_list', |
'stdno','stdno_list', |
'stdno','stdno_list', |
|
'dependencies', |
'avetries','avetries_list', |
'avetries','avetries_list', |
'difficulty','difficulty_list', |
'difficulty','difficulty_list', |
'disc','disc_list', |
'disc','disc_list', |
Line 255 sub fieldnames {
|
Line 256 sub fieldnames {
|
'owner' => 'Publisher/Owner', |
'owner' => 'Publisher/Owner', |
'copyright' => 'Copyright/Distribution', |
'copyright' => 'Copyright/Distribution', |
'customdistributionfile' => 'Custom Distribution File', |
'customdistributionfile' => 'Custom Distribution File', |
'sourceavail' => 'Source Availible', |
'sourceavail' => 'Source Available', |
'sourcerights' => 'Source Custom Distribution File', |
'sourcerights' => 'Source Custom Distribution File', |
'obsolete' => 'Obsolete', |
'obsolete' => 'Obsolete', |
'obsoletereplacement' => 'Suggested Replacement for Obsolete File', |
'obsoletereplacement' => 'Suggested Replacement for Obsolete File', |
Line 277 sub fieldnames {
|
Line 278 sub fieldnames {
|
'stdno' => 'Total number of students who have worked on this problem', |
'stdno' => 'Total number of students who have worked on this problem', |
'difficulty' => 'Degree of difficulty', |
'difficulty' => 'Degree of difficulty', |
'disc' => 'Degree of discrimination', |
'disc' => 'Degree of discrimination', |
|
'dependencies' => 'Resources used by this resource', |
); |
); |
} |
} |
|
|
Line 339 sub prettyprint {
|
Line 341 sub prettyprint {
|
($type eq 'goto_list') || |
($type eq 'goto_list') || |
($type eq 'comefrom_list') || |
($type eq 'comefrom_list') || |
($type eq 'sequsage_list') || |
($type eq 'sequsage_list') || |
($type eq 'linkto_list')) { |
($type eq 'dependencies')) { |
return '<ul><font size="-1">'.join("\n",map { |
return '<ul><font size="-1">'.join("\n",map { |
my $url = &Apache::lonnet::clutter($_); |
my $url = &Apache::lonnet::clutter($_); |
my $title = &Apache::lonnet::gettitle($url); |
my $title = &Apache::lonnet::gettitle($url); |
Line 542 sub handler {
|
Line 544 sub handler {
|
&present_editable_metadata($r,$uri); |
&present_editable_metadata($r,$uri); |
} else { |
} else { |
$r->print(&Apache::loncommon::bodytag |
$r->print(&Apache::loncommon::bodytag |
('Catalog Information','','','',$resdomain)); |
('Catalog Information','','','',$resdomain)); |
&present_uneditable_metadata($r,$uri); |
&present_uneditable_metadata($r,$uri); |
} |
} |
$r->print('</body></html>'); |
$r->print('</body></html>'); |
Line 903 ENDBOMBS
|
Line 905 ENDBOMBS
|
&mt('Default Cataloging Information for Directory').' '. |
&mt('Default Cataloging Information for Directory').' '. |
$dir; |
$dir; |
} |
} |
my $bodytag= |
|
&Apache::loncommon::bodytag('Edit Catalog Information'); |
|
%Apache::lonpublisher::metadatafields=(); |
%Apache::lonpublisher::metadatafields=(); |
%Apache::lonpublisher::metadatakeys=(); |
%Apache::lonpublisher::metadatakeys=(); |
&Apache::lonpublisher::metaeval(&Apache::lonnet::getfile($fn)); |
&Apache::lonpublisher::metaeval(&Apache::lonnet::getfile($fn)); |
$r->print(<<ENDEDIT); |
$r->print(<<ENDEDIT); |
<html><head><title>Edit Catalog Information</title></head> |
|
$bodytag |
|
<h1>$displayfile</h1> |
<h1>$displayfile</h1> |
<form method="post" name="defaultmeta"> |
<form method="post" name="defaultmeta"> |
ENDEDIT |
ENDEDIT |