-# $Id: PQF.pm,v 1.6 2004-12-20 09:46:58 mike Exp $
+# $Id: PQF.pm,v 1.7 2004-12-23 10:24:12 mike Exp $
package Net::Z3950::PQF;
my $this = shift();
my($attrset, $attrhash) = @_;
+ $this->{text} =~ s/^\s+//;
+
### This rather nasty hack for quoted terms doesn't recognised
# backslash-quoted embedded double quotes.
- $this->{text} =~ s/^\s+//;
if ($this->{text} =~ s/^"(.*?)"//) {
return $this->_leaf('term', $1, $attrhash);
}
+ # Also recognise multi-word terms enclosed in {curly braces}
+ if ($this->{text} =~ s/^{(.*?)}//) {
+ return $this->_leaf('term', $1, $attrhash);
+ }
+
my $word = $this->_word();
if ($word eq '@attrset') {
$attrset = $this->_word();