projects
/
mp-sparql-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow solution sequence / modifier MPSPARQL-9
[mp-sparql-moved-to-github.git]
/
src
/
sparql.c
diff --git
a/src/sparql.c
b/src/sparql.c
index
fbd8c91
..
55b02e1
100644
(file)
--- a/
src/sparql.c
+++ b/
src/sparql.c
@@
-326,21
+326,23
@@
int yaz_sparql_from_rpn_stream(yaz_sparql_t s,
{
;
}
{
;
}
+ else if (!strcmp(e->pattern, "modifier"))
+ {
+ ;
+ }
else
{
errors++;
}
}
else
{
errors++;
}
}
- pr("\n", client_data);
for (e = s->conf; e; e = e->next)
{
if (!strcmp(e->pattern, "form"))
{
for (e = s->conf; e; e = e->next)
{
if (!strcmp(e->pattern, "form"))
{
- pr(" ", client_data);
pr(e->value, client_data);
pr(e->value, client_data);
+ pr("\n", client_data);
}
}
}
}
- pr("\n", client_data);
pr("WHERE {\n", client_data);
for (e = s->conf; e; e = e->next)
{
pr("WHERE {\n", client_data);
for (e = s->conf; e; e = e->next)
{
@@
-397,6
+399,15
@@
int yaz_sparql_from_rpn_stream(yaz_sparql_t s,
wrbuf_destroy(vars);
}
pr("\n}\n", client_data);
wrbuf_destroy(vars);
}
pr("\n}\n", client_data);
+
+ for (e = s->conf; e; e = e->next)
+ {
+ if (!strcmp(e->pattern, "modifier"))
+ {
+ pr(e->value, client_data);
+ pr(e->value, "\n");
+ }
+ }
yaz_tok_cfg_destroy(cfg);
return errors ? -1 : r;
yaz_tok_cfg_destroy(cfg);
return errors ? -1 : r;