\returns attribute list with only one use-attribute
*/
YAZ_EXPORT
-Z_AttributeList *yaz_use_attribute_create(ODR o, const char *name);
+Z_AttributeList *zget_AttributeList_use_string(ODR o, const char *name);
YAZ_END_CDECL
return attributes;
}
-Z_AttributeList *yaz_use_attribute_create(ODR o, const char *name)
+Z_AttributeList *zget_AttributeList_use_string(ODR o, const char *name)
{
Odr_int attr_list[2];
- const char *attr_clist[1];
+ char *attr_clist[1];
Odr_oid *attr_set[1];
attr_list[0] = 1;
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);
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;
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++;