odr_intdup(o,
odr_atoi(
(const char *) attr->children->content));
- yaz_log(YLOG_DEBUG, "SOLR total results: %d ", atoi( attr->children->content));
}
else if (!strcmp((const char *) attr->name, "start"))
{
start = odr_atoi((const char *) attr->children->content);
- yaz_log(YLOG_DEBUG, "SOLR start: %d ", atoi( attr->children->content));
}
}
}
for (node = ptr->children; node; node = node->next)
if (node->type == XML_ELEMENT_NODE)
sr->num_records++;
- yaz_log(YLOG_DEBUG, "SOLR results in response: %d ", sr->num_records);
sr->records = odr_malloc(o, sizeof(*sr->records) * sr->num_records);
record->recordData_buf[buf->use] = '\0';
// TODO Solve the real problem: Making the recordPosition 1-based due to "funny" code in zoom-sru
record->recordPosition = odr_intdup(o, start + offset + 1);
- yaz_log(YLOG_DEBUG, "SOLR pos=" ODR_INT_PRINTF, *record->recordPosition);
xmlBufferFree(buf);