Add test for empty term in RPN to Solr conversion
[yaz-moved-to-github.git] / src / sru_facet.c
index 6802b15..a7c0629 100644 (file)
@@ -259,8 +259,8 @@ void yaz_sru_facet_response(ODR o, Z_FacetList **facetList, xmlNodePtr n)
                             p_terms = p2;
                     }
                     if (index_name)
-                        ff->attributes = yaz_use_attribute_create(o,
-                                                                  index_name);
+                        ff->attributes =
+                            zget_AttributeList_use_string(o, index_name);
                     if (p_terms)
                     {
                         xmlNode *p;
@@ -287,7 +287,9 @@ void yaz_sru_facet_response(ODR o, Z_FacetList **facetList, xmlNodePtr n)
                                                          &cstr))
                                         ;
                                     else if (yaz_match_xsd_integer(p2, "count", o,
-                                                               &count))
+                                                                   &count))
+                                        ;
+                                    else
                                         ;
                                 }
                                 if (cstr && count)