Add setting of suggestions options on resultset
authorDennis Schafroth <dennis@indexdata.com>
Fri, 28 Oct 2011 08:32:42 +0000 (10:32 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Fri, 28 Oct 2011 08:32:42 +0000 (10:32 +0200)
src/zoom-sru.c

index 08a18a2..da588f0 100644 (file)
@@ -306,6 +306,9 @@ static zoom_ret handle_srw_response(ZOOM_connection c,
         if (res->numberOfRecords) {
             resultset->size = *res->numberOfRecords;
         }
+        if (res->suggestions) {
+            ZOOM_resultset_option_set(resultset, "suggestions", res->suggestions);
+        }
         for (i = 0; i<res->num_records; i++)
         {
             int pos;