wrbuf_puts(c->wrbuf, ht[i].settings_xml);
wrbuf_puts(c->wrbuf, "</settings>\n");
}
+ if (ht[i].suggestions_xml)
+ wrbuf_puts(c->wrbuf, ht[i].suggestions_xml);
wrbuf_puts(c->wrbuf, "</target>");
}
response_close(c, "bytarget");
if (!sort)
sort = "relevance";
- status = session_active_clients(s->psession);
-
if (!(sp = reclist_parse_sortparms(c->nmem, sort, s->psession->service)))
{
error(c->response, PAZPAR2_MALFORMED_PARAMETER_VALUE, "sort");
}
session_sort(s->psession, sp->name, sp->increasing);
+ status = session_active_clients(s->psession);
+
if (block)
{
if (!strcmp(block, "preferred") && !session_is_preferred_clients_ready(s->psession) && reclist_get_num_records(s->psession->reclist) == 0)
return;
}
- else if (status && reclist_get_num_records(s->psession->reclist) == 0)
+ else if (status)
{
// if there is already a watch/block. we do not block this one
if (session_set_watch(s->psession, SESSION_WATCH_SHOW,
}
response_open(c, "search");
response_close(c, "search");
- http_send_response(c);
release_session(c, s);
}