--- loncom/interface/lonsearchcat.pm 2001/03/22 14:00:55 1.69 +++ loncom/interface/lonsearchcat.pm 2001/03/22 14:24:39 1.75 @@ -793,8 +793,10 @@ sub build_custommetadata_query { $q->prepare($logic_statement); my $matchexp=${$q}{'-parse'}{'-build'}{'matchstring'}; # quick fix to change literal into xml tag-matching - s/\(\?\:([^\)]*)\\\=([^\)]*)\)/\(\?\:\<$1\>\[\^\\\<\]\*$2\[\^\\\<\]\*\<\/$1\>)/g; - return $matchexp; + # will eventually have to write a separate builder module + my $oldmatchexp=$matchexp; + $matchexp=~s/(\w+)\\\=(\w+)/\\\<$1\\\>\[\^\\\<\]\*$2\[\^\\\<\]\*\\\<\\\/$1\\\>/g; + return $oldmatchexp . $matchexp; } # - Recursively parse a reverse notation expression into a SQL query expression