X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsolr.c;h=c1c1bbadfee72b2f869070d66f5e332cb0169b96;hp=e9d3dcfa56681cad03a6888506df044ad2c9fbaf;hb=5ef9ca5de57e415b34c21fe0d17a79f7b8e6b636;hpb=09c113499ad3e65ca1679889c2a0165a52f1cb50 diff --git a/src/solr.c b/src/solr.c index e9d3dcf..c1c1bba 100644 --- a/src/solr.c +++ b/src/solr.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "sru-p.h" @@ -153,7 +154,7 @@ Z_FacetField *yaz_solr_decode_facet_field(ODR o, xmlNodePtr ptr, xmlNodePtr node; // USE attribute const char* name = yaz_element_attribute_value_get(ptr, "lst", "name"); - list = yaz_use_attribute_create(o, name); + list = zget_AttributeList_use_string(o, name); for (node = ptr->children; node; node = node->next) num_terms++; facet_field = facet_field_create(o, list, num_terms); @@ -583,6 +584,9 @@ int yaz_solr_encode_request(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, odr_malloc(encode, strlen(hreq->path) + strlen(uri_args) + strlen(solr_op) + 5); + cp = strchr(hreq->path, '#'); + if (cp) + *cp = '\0'; cp = strchr(hreq->path, '?'); if (cp) {