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 (!schema || !strcmp(esn->u.generic, it->conf->schema.c_str()))
+ break;
}
if (it == fset->results.end())
{
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))
break;
}
}
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))
break;
}
}