--- loncom/interface/lonmeta.pm 2003/11/12 21:38:35 1.40 +++ loncom/interface/lonmeta.pm 2003/12/26 21:17:37 1.43 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.40 2003/11/12 21:38:35 matthew Exp $ +# $Id: lonmeta.pm,v 1.43 2003/12/26 21:17:37 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -40,6 +40,7 @@ use Apache::loncommon(); use Apache::lonmsg; use Apache::lonpublisher; use Apache::lonlocal; +use Apache::lonmysql; # ----------------------------------------- Fetch and evaluate dynamic metadata @@ -235,9 +236,9 @@ sub handler { # --------------------------------------------------------------- Render Output my ($thisversion)=($uri=~/\.(\d+)\.(\w+)\.meta$/); my $creationdate=&Apache::lonlocal::locallocaltime( - &Apache::loncommon::unsqltime($content{'creationdate'})); + &Apache::lonmysql::unsqltime($content{'creationdate'})); my $lastrevisiondate=&Apache::lonlocal::locallocaltime( - &Apache::loncommon::unsqltime($content{'lastrevisiondate'})); + &Apache::lonmysql::unsqltime($content{'lastrevisiondate'})); my $language=&Apache::loncommon::languagedescription($content{'language'}); my $mime=&Apache::loncommon::filedescription($content{'mime'}); my $disuri=&Apache::lonnet::declutter($uri); @@ -273,6 +274,9 @@ my %lt=&Apache::lonlocal::texthash( 'kw' => 'Keyword(s)', 'no' => 'Notes', 'ab' => 'Abstract', + 'lg' => 'Lowest Grade Level', + 'hg' => 'Highest Grade Level', + 'st' => 'Standards', 'mi' => 'MIME Type', 'la' => 'Language', 'cd' => 'Creation Date', @@ -302,6 +306,12 @@ $versiondisplay
$content{'notes'}  $lt{'ab'} $content{'abstract'}  +$lt{'lg'} +$content{'lowestgradelevel'}  +$lt{'hg'} +$content{'highestgradelevel'}  +$lt{'st'} +$content{'standards'}  $lt{'mi'} $mime ($content{'mime'})  $lt{'la'} @@ -490,7 +500,8 @@ ENDEDIT } if (m/copyright/) { $r->print(&Apache::lonpublisher::selectbox($_,'new_'.$_, - $Apache::lonpublisher::metadatafields{$_}, + ($Apache::lonpublisher::metadatafields{$_}? + $Apache::lonpublisher::metadatafields{$_}:'default'), \&Apache::loncommon::copyrightdescription, (&Apache::loncommon::copyrightids))); } elsif (m/language/) {