struct http_response *rs = c->response;
struct http_request *rq = c->request;
struct record_cluster *rec, *prev_r, *next_r;
- struct record *r;
struct conf_service *service;
const char *idstr = http_argbyname(rq, "id");
const char *offsetstr = http_argbyname(rq, "offset");
}
else
{
+ struct record *r;
response_open_no_status(c, "record");
wrbuf_puts(c->wrbuf, "\n<recid>");
wrbuf_xmlputs(c->wrbuf, rec->recid);
release_session(c, s);
return;
}
- session_sort(s->psession, sp->name, sp->increasing,
- sp->type == Metadata_sortkey_position);
+ session_sort(s->psession, sp->name, sp->increasing, 0);
+ /* TODO This was too simple. Will make pazpar2 continuing reseting the session resultset and redo the search. Disable this for now
+ sp->type == Metadata_sortkey_position */
status = session_active_clients(s->psession);