- if (!index)
- {
- cql_transform_set_error(ct,
- YAZ_BIB1_UNSUPP_USE_ATTRIBUTE, 0);
- return -1;
- }
- /* for serverChoice we omit index+relation+structure */
- if (strcmp(index, "cql.serverChoice"))
+ if (!relation)
+ relation = "=";
+ else if (!strcmp(relation, "exact"))
+ relation = "==";
+ else if (!strcmp(relation, "eq"))
+ relation = "=";
+ else if (!strcmp(relation, "le"))
+ relation = "<=";
+ else if (!strcmp(relation, "ge"))
+ relation = ">=";
+
+ if (strcmp(index, "cql.serverChoice") || strcmp(relation, "=")
+ || (structure && strcmp(structure, "*")))