--- loncom/interface/lonsearchcat.pm 2001/03/22 13:40:07 1.68 +++ loncom/interface/lonsearchcat.pm 2001/03/22 14:16:21 1.73 @@ -792,6 +792,9 @@ sub build_custommetadata_query { -build => 'Text::Query::BuildAdvancedString'); $q->prepare($logic_statement); my $matchexp=${$q}{'-parse'}{'-build'}{'matchstring'}; + # quick fix to change literal into xml tag-matching + my $oldmatchexp=$matchexp; + $matchexp=~s/\(\?[\:\=]([^\)]*)\\\=([^\)]*)\)/\(\?\:\\\<$1\\\>\[\^\\\<\]\*$2\[\^\\\<\]\*\\\<\\\/$1\\\>)/g; return $matchexp; } @@ -1014,6 +1017,7 @@ sub make_persistent { if (/^form\./ && !/submit/) { my $name=$_; my $key=$name; + $ENV{$key}=~s/\'//g; # do not mess with html field syntax $name=~s/^form\.//; $persistent.=<