X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsolr.c;h=a7cdb524fd3c5db7aeb6131362df4c730f8ab8c4;hp=eaf822c65777b3feb5c72c2e9c101f31247cfe09;hb=5e1889250160764822014ce89ee19dc84e5ce310;hpb=90822107107281df9caf3ad66a693cb7403b16f8 diff --git a/src/solr.c b/src/solr.c index eaf822c..a7cdb52 100644 --- a/src/solr.c +++ b/src/solr.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "sru-p.h" @@ -113,7 +114,8 @@ int yaz_solr_decode_response(ODR o, Z_HTTP_Response *hres, Z_SRW_PDU **pdup) record->recordData_buf = odr_malloc(o, buf->use + 1); memcpy(record->recordData_buf, buf->content, buf->use); record->recordData_buf[buf->use] = '\0'; - record->recordPosition = odr_intdup(o, start + offset); + // 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); xmlBufferFree(buf);