Show facets if present in search response
authorDennis Schafroth <dennis@indexdata.com>
Fri, 27 Aug 2010 11:27:30 +0000 (13:27 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Fri, 27 Aug 2010 11:27:30 +0000 (13:27 +0200)
client/client.c

index 0e55021..ba217e7 100644 (file)
@@ -4315,6 +4315,9 @@ static void handle_srw_response(Z_SRW_searchRetrieveResponse *res)
     }
     if (res->numberOfRecords)
         printf("Number of hits: " ODR_INT_PRINTF "\n", *res->numberOfRecords);
+    if (res->facetList) {
+        display_facets(res->facetList);
+    }
     for (i = 0; i<res->num_records; i++)
         handle_srw_record(res->records + i);
 }