X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsrw.c;h=5076eccac5530f5d583ba964c8f0be28eaab5e1a;hp=fcb1d5474fb3b41a5e399e0adf08db36f3f5b69c;hb=5564216deccb49e138f665e223c81fe6c1edd79d;hpb=473824797f568578dc17d7242551cb2f7ccef46c diff --git a/src/srw.c b/src/srw.c index fcb1d54..5076ecc 100644 --- a/src/srw.c +++ b/src/srw.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "sru-p.h" char *yaz_negotiate_sru_version(char *input_ver) @@ -307,7 +308,7 @@ static Z_FacetField *yaz_sru_proxy_decode_facet_field(ODR odr, xmlNodePtr ptr) const char* name = yaz_element_attribute_value_get(ptr, "facet", "code"); yaz_log(YLOG_DEBUG, "sru-proxy facet type: %s", name); - list = yaz_use_attribute_create(odr, name); + list = zget_AttributeList_use_string(odr, name); for (node = ptr->children; node; node = node->next) { if (yaz_match_xsd_element(node, "facetvalue")) num_terms++;