* Copyright (c) 1995-2002, Index Data
* See the file LICENSE for details.
*
- * $Id: client.c,v 1.157 2002-06-04 11:36:10 adam Exp $
+ * $Id: client.c,v 1.158 2002-06-10 11:07:57 adam Exp $
*/
#include <stdio.h>
Z_APDU *apdu = zget_APDU(out, Z_APDU_scanRequest);
Z_ScanRequest *req = apdu->u.scanRequest;
int use_rpn = 1;
-#if YAZ_MODULE_ccl
int oid[OID_SIZE];
if (queryType == QueryType_CCL2RPN)
}
ccl_rpn_delete (rpn);
}
-#endif
if (use_rpn && !(req->termListAndStartPoint =
p_query_scan(out, protocol, &req->attributeSet, query)))
{
queryType = QueryType_CCL;
else if (!strcmp (arg, "prefix") || !strcmp(arg, "rpn"))
queryType = QueryType_Prefix;
-#if YAZ_MODULE_ccl
else if (!strcmp (arg, "ccl2rpn") || !strcmp (arg, "cclrpn"))
queryType = QueryType_CCL2RPN;
-#endif
else
{
printf ("Querytype must be one of:\n");
printf (" prefix - Prefix query\n");
printf (" ccl - CCL query\n");
-#if YAZ_MODULE_ccl
printf (" ccl2rpn - CCL query converted to RPN\n");
-#endif
return 0;
}
return 1;
int cmd_set_cclfields(char* arg)
{
-#if YAZ_MODULE_ccl
FILE *inf;
REMOVE_TAILING_BLANKS(arg);
ccl_qual_file (bibset, inf);
fclose (inf);
}
-#else
- fprintf(stderr,"Not compiled with the yaz ccl module\n");
-#endif
return 1;
}