X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Forg%2Fz3950%2Fzing%2Fcql%2FCQLTermNode.java;h=4890737068a290addf3bc9c75fe49594176d59bc;hb=76ed46db970535e663f8efa818fce1c0cb7c36b5;hp=87a651dbc64d717bbc9aa0ea3266da5908386c6b;hpb=88f8b67a6755c59df38e2bfb9236ac4ed46e6c2f;p=cql-java-moved-to-github.git diff --git a/src/org/z3950/zing/cql/CQLTermNode.java b/src/org/z3950/zing/cql/CQLTermNode.java index 87a651d..4890737 100644 --- a/src/org/z3950/zing/cql/CQLTermNode.java +++ b/src/org/z3950/zing/cql/CQLTermNode.java @@ -1,4 +1,4 @@ -// $Id: CQLTermNode.java,v 1.14 2002-12-09 16:55:19 mike Exp $ +// $Id: CQLTermNode.java,v 1.15 2002-12-09 17:01:03 mike Exp $ package org.z3950.zing.cql; import java.util.Properties; @@ -12,7 +12,7 @@ import java.util.Vector; * these must be provided - you can't have a qualifier without a * relation or vice versa. * - * @version $Id: CQLTermNode.java,v 1.14 2002-12-09 16:55:19 mike Exp $ + * @version $Id: CQLTermNode.java,v 1.15 2002-12-09 17:01:03 mike Exp $ */ public class CQLTermNode extends CQLNode { private String qualifier; @@ -134,6 +134,12 @@ public class CQLTermNode extends CQLNode { } public String toPQF(Properties config) throws PQFTranslationException { + if (qualifier.equals("srw.resultSet")) { + // Special case: ignore relation, modifiers, wildcards, etc. + // ### Parallel code is required in toType1() + return "@set " + maybeQuote(term); + } + Vector attrs = getAttrs(config); String attr, s = "";