--- loncom/interface/lonmeta.pm 2003/12/31 02:33:27 1.52
+++ loncom/interface/lonmeta.pm 2004/01/01 20:13:17 1.54
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Metadata display handler
#
-# $Id: lonmeta.pm,v 1.52 2003/12/31 02:33:27 www Exp $
+# $Id: lonmeta.pm,v 1.54 2004/01/01 20:13:17 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -298,8 +298,9 @@ sub prettyprint {
($type eq 'comefrom_list') ||
($type eq 'sequsage_list')) {
return join('
',map {
- &Apache::lonnet::gettitle($_).' ['.
- &Apache::lonhtmlcommon::crumbs(&Apache::lonnet::clutter($_),'preview').']';
+ my $url=&Apache::lonnet::clutter($_);
+ '
'.&Apache::lonnet::gettitle($url).''.
+ &Apache::lonhtmlcommon::crumbs($url,'preview','');
} split(/\s*\,\s*/,$value));
}
# Evaluations
@@ -328,8 +329,13 @@ sub prettyprint {
}
# ============================================== Pretty input of metadata field
+sub direct {
+ return shift;
+}
+
sub selectbox {
my ($name,$value,$functionref,@idlist)=@_;
+ unless (defined($functionref)) { $functionref=\&direct; }
my $selout='