X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsrw.c;h=f1569214d86d1988f41072439dd1997d1cc1d1de;hb=7c4f2139acd38e5ce81cbcda225a499566d44df2;hp=5539408d789035a06d90da507280ee1b282b29f0;hpb=8375be590a8640cd5673106bc828dd6d4711be28;p=yaz-moved-to-github.git diff --git a/src/srw.c b/src/srw.c index 5539408..f156921 100644 --- a/src/srw.c +++ b/src/srw.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ /** @@ -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++; @@ -656,6 +657,8 @@ int yaz_srw_codec(ODR o, void * vptr, Z_SRW_PDU **handler_data, else if (yaz_match_xsd_string(ptr, "facetSort", o, (char**) &facetSort)) ; + else + ; } if (!req->query) {