if (r)
return r;
- pr(" ", client_data);
+ pr(") ", client_data);
if (strcmp(value, "prox"))
{ /* not proximity. assuming boolean */
pr(x, client_data);
}
}
- pr(" ", client_data);
+ pr(" (", client_data);
r = cql_to_ccl_r(cn->u.boolean.right, pr, client_data);
pr(")", client_data);
YAZ_CHECK(tst_query("title=x", "title=\"x\""));
YAZ_CHECK(tst_query("title=x or author=y",
- "(title=\"x\" or author=\"y\")"));
+ "(title=\"x\") or (author=\"y\")"));
+ YAZ_CHECK(tst_query("title=x or author=y and date=z",
+ "((title=\"x\") or (author=\"y\")) and (date=\"z\")"));
YAZ_CHECK(tst_query("title all \"\"", "title=\"\""));
YAZ_CHECK(tst_query("title any x", "title=\"x\""));
YAZ_CHECK(tst_query("title any x y", "title=\"x\" or title=\"y\""));
YAZ_CHECK(tst_query("title any \"x y\"", "title=\"x\" or title=\"y\""));
+ YAZ_CHECK(tst_query("dc.title=encyclopedia prox dinosaurs",
+ "(dc.title=\"encyclopedia\") % (\"dinosaurs\")"));
}
int main(int argc, char **argv)