version 1.54, 2004/01/01 20:13:17
|
version 1.59, 2004/01/15 20:22:47
|
Line 212 sub fieldnames {
|
Line 212 sub fieldnames {
|
return &Apache::lonlocal::texthash( |
return &Apache::lonlocal::texthash( |
'title' => 'Title', |
'title' => 'Title', |
'author' =>'Author(s)', |
'author' =>'Author(s)', |
|
'authorspace' => 'Author Space', |
|
'modifyinguser' => 'Last Modifying User', |
'subject' => 'Subject', |
'subject' => 'Subject', |
'keywords' => 'Keyword(s)', |
'keywords' => 'Keyword(s)', |
'notes' => 'Notes', |
'notes' => 'Notes', |
Line 260 sub prettyprint {
|
Line 262 sub prettyprint {
|
# Dates |
# Dates |
if (($type eq 'creationdate') || |
if (($type eq 'creationdate') || |
($type eq 'lastrevisiondate')) { |
($type eq 'lastrevisiondate')) { |
return &Apache::lonlocal::locallocaltime( |
return ($value?&Apache::lonlocal::locallocaltime( |
&Apache::lonmysql::unsqltime($value)); |
&Apache::lonmysql::unsqltime($value)): |
|
&mt('not available')); |
} |
} |
# Language |
# Language |
if ($type eq 'language') { |
if ($type eq 'language') { |
Line 431 sub handler {
|
Line 434 sub handler {
|
|
|
my $uri=$r->uri; |
my $uri=$r->uri; |
|
|
unless ($uri=~/^\/\~/) { |
# ====================================================== Looking for all bombs? |
|
if ($uri=~/\/adm\/bombs\/(.*)$/) { |
|
# ----------------------------------------------------------- Set document type |
|
$uri=&Apache::lonnet::declutter($1); |
|
&Apache::loncommon::content_type($r,'text/html'); |
|
$r->send_http_header; |
|
|
|
return OK if $r->header_only; |
|
$r->print(&Apache::loncommon::bodytag('Error Messages')); |
|
$r->print('<h1>'.&Apache::lonnet::clutter($uri).'</h1>'); |
|
my ($domain,$author)=($uri=~/^(\w+)\/(\w+)\//); |
|
if (&Apache::loncacc::constructaccess('/~'.$author.'/',$domain)) { |
|
my %brokenurls=&Apache::lonmsg::all_url_author_res_msg($author,$domain); |
|
foreach (sort keys %brokenurls) { |
|
if ($_=~/^\Q$uri\E/) { |
|
$r->print(&Apache::lonhtmlcommon::crumbs(&Apache::lonnet::clutter($_)). |
|
&Apache::lonmsg::retrieve_author_res_msg($_).'<hr />'); |
|
} |
|
} |
|
} else { |
|
$r->print(&mt('Not authorized')); |
|
} |
|
$r->print('</body></html>'); |
|
} elsif ($uri!~/^\/\~/) { |
# =========================================== This is not in construction space |
# =========================================== This is not in construction space |
my ($resdomain,$resuser)= |
my ($resdomain,$resuser)= |
(&Apache::lonnet::declutter($uri)=~/^(\w+)\/(\w+)\//); |
(&Apache::lonnet::declutter($uri)=~/^(\w+)\/(\w+)\//); |
Line 653 ENDEDIT
|
Line 679 ENDEDIT
|
'copyright','customdistributionfile','language','standards', |
'copyright','customdistributionfile','language','standards', |
'lowestgradelevel','highestgradelevel', |
'lowestgradelevel','highestgradelevel', |
'obsolete','obsoletereplacement') { |
'obsolete','obsoletereplacement') { |
$Apache::lonpublisher::metadatafields{$_}=$ENV{'form.new_'.$_}; |
if (defined($ENV{'form.new_'.$_})) { |
|
$Apache::lonpublisher::metadatafields{$_}=$ENV{'form.new_'.$_}; |
|
} |
unless ($Apache::lonpublisher::metadatafields{'copyright'}) { |
unless ($Apache::lonpublisher::metadatafields{'copyright'}) { |
$Apache::lonpublisher::metadatafields{'copyright'}='default'; |
$Apache::lonpublisher::metadatafields{'copyright'}='default'; |
} |
} |
Line 693 ENDEDIT
|
Line 721 ENDEDIT
|
$r->print( |
$r->print( |
'<br /><input type="submit" name="store" value="'. |
'<br /><input type="submit" name="store" value="'. |
&mt('Store Catalog Information').'"></form></body></html>'); |
&mt('Store Catalog Information').'"></form></body></html>'); |
|
} |
} |
} |
return OK; |
return OK; |
} |
|
} |
} |
|
|
# ================================================================= BEGIN Block |
# ================================================================= BEGIN Block |