Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 1 Jun 2012 07:04:01 +0000 (09:04 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 1 Jun 2012 07:04:01 +0000 (09:04 +0200)
doc/common
src/solr.c
src/zoom-sru.c

index ca8f04f..c6e4db9 160000 (submodule)
@@ -1 +1 @@
-Subproject commit ca8f04fe52cd2cb481af6fac38a15bc12ad8c530
+Subproject commit c6e4db90ce6779ee42fafd38e776176d38c2844b
index de46b5f..475f615 100644 (file)
@@ -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);
index d7f19cb..c38cee6 100644 (file)
@@ -320,10 +320,8 @@ static zoom_ret handle_srw_response(ZOOM_connection c,
             
             Z_NamePlusRecord *npr = (Z_NamePlusRecord *)
                 odr_malloc(c->odr_in, sizeof(Z_NamePlusRecord));
-            /*
-             * TODO This does not work with 0-based recordPositions.
-             * We will iterate over one twice
-             */
+
+            /* recordPosition is 1 based */
             if (res->records[i].recordPosition && 
                 *res->records[i].recordPosition > 0)
                 pos = *res->records[i].recordPosition - 1;