X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsolr.c;h=475f615b87e0806f0c4e324ac297968d15c43ea5;hp=16c5fa61a5e557037a217d1cba8073ec4fa53a24;hb=3e11596504862f376b7340848715d6f549864660;hpb=5f934b45f139e441bf26a4d28168df7ea6f9f841 diff --git a/src/solr.c b/src/solr.c index 16c5fa6..475f615 100644 --- a/src/solr.c +++ b/src/solr.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ /** @@ -90,8 +90,6 @@ static void yaz_solr_decode_result_docs(ODR o, xmlNodePtr ptr, record->recordData_buf = odr_malloc(o, buf->use + 1); memcpy(record->recordData_buf, buf->content, buf->use); record->recordData_buf[buf->use] = '\0'; - // TODO Solve the real problem in zoom-sru, that doesnt work with 0-based indexes. - // Work-around: Making the recordPosition 1-based. record->recordPosition = odr_intdup(o, start + offset + 1); xmlBufferFree(buf);