-$Id: Changes,v 1.25 2002-12-09 16:56:07 mike Exp $
+$Id: Changes,v 1.26 2002-12-09 17:01:03 mike Exp $
Revision history for the CQL-Java package.
See the bottom of this file for a list of things still to do.
difference to anything: in particular, file-names such as
"cql-java.jar" remain the same.
- Recreate last-in-field support
- - ### Add srw.resultSet support to the toPFQ() method.
- - ### Fix term-to-PQF translation to omit empty properties
- (for the broken Korean server)
+ - Add srw.resultSet support to the toPFQ() method. I've not
+ attempted this for the toType1() method: Ralph will have to
+ do it.
0.4 Thu Nov 21 10:09:26 2002
- Add support for the new "phonetic" relation modifier,
followed by a TT_WORD. The problem here is that I don't
think it's actually possible to fix this without throwing
out StreamTokenizer and rolling our own, which we absolutely
+ - Fix term-to-PQF translation to omit empty properties
+ (for the broken Korean server)
- Write "package.html" file for the javadoc documentation.
- Some niceties for the cql-decompiling back-end:
* Don't emit redundant parentheses.
-// $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;
* 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;
}
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 = "";