summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c15f541)
When no element set is given, it will pick the first uri-line.
If there's no uri-line it will use query of the matching db.
for (; it != fset->results.end(); it++)
{
for (; it != fset->results.end(); it++)
{
- if (schema && !strcmp(esn->u.generic, it->conf->schema.c_str()))
- break;
if (yaz_sparql_lookup_schema(it->conf->s, schema))
{
uri_lookup = true;
break;
}
if (yaz_sparql_lookup_schema(it->conf->s, schema))
{
uri_lookup = true;
break;
}
+ if (!schema || !strcmp(esn->u.generic, it->conf->schema.c_str()))
+ break;
}
if (it == fset->results.end())
{
}
if (it == fset->results.end())
{
for (e = s->conf; e; e = e->next)
{
for (e = s->conf; e; e = e->next)
{
- if (!schema && !strcmp(e->pattern, "uri"))
- break;
- else if (schema && !strncmp(e->pattern, "uri.", 4))
+ if (!strncmp(e->pattern, "uri.", 4))
- if (!strcmp(e->pattern + 4, schema))
+ if (!schema || !strcmp(e->pattern + 4, schema))
for (e = s->conf; e; e = e->next)
{
for (e = s->conf; e; e = e->next)
{
- if (!schema && !strcmp(e->pattern, "uri"))
- break;
- else if (schema && !strncmp(e->pattern, "uri.", 4))
+ if (!strncmp(e->pattern, "uri.", 4))
- if (!strcmp(e->pattern + 4, schema))
+ if (!schema || !strcmp(e->pattern + 4, schema))