--- loncom/publisher/lonpublisher.pm 2003/03/29 05:58:12 1.120
+++ loncom/publisher/lonpublisher.pm 2003/09/24 19:40:14 1.126.2.2
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Publication Handler
#
-# $Id: lonpublisher.pm,v 1.120 2003/03/29 05:58:12 albertel Exp $
+# $Id: lonpublisher.pm,v 1.126.2.2 2003/09/24 19:40:14 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -190,7 +190,7 @@ sub metaeval {
}
if ($metadatafields{$unikey}) {
my $newentry=$parser->get_text('/'.$entry);
- unless (($metadatafields{$unikey}=~/$newentry/) ||
+ unless (($metadatafields{$unikey}=~/\Q$newentry\E/) ||
($newentry eq '')) {
$metadatafields{$unikey}.=', '.$newentry;
}
@@ -304,7 +304,9 @@ string which presents the form field (fo
#########################################
sub textfield {
my ($title,$name,$value)=@_;
- return "\n
$title:
".
+ my $uctitle=uc($title);
+ return "\n
$uctitle:".
+ "
".
'';
}
@@ -316,8 +318,9 @@ sub hiddenfield {
sub selectbox {
my ($title,$name,$value,$functionref,@idlist)=@_;
my $uctitle=uc($title);
+ $value=(split(/\s*,\s*/,$value))[-1];
my $selout="\n