26 #include <yaz/diagbib1.h>
31 #include <yaz/oid_db.h>
70 Z_AttributeList *attr_list,
72 const char *index_type,
73 const Odr_oid *curAttributeSet,
77 const char *use_string = 0;
81 use_value =
attr_find_ex(&use, &curAttributeSet, &use_string);
111 index_type, use_string);
123 if (unsup_value != 1)
136 Z_AttributesPlusTerm *zapt,
137 const char *index_type,
138 const char *xpath_use,
139 const Odr_oid *curAttributeSet,
148 relation_value =
attr_find(&relation, NULL);
150 if (relation_value == 103)
157 curAttributeSet, ord);
162 relation_value == 103
164 zh, zapt->attributes,
175 yaz_log(YLOG_LOG,
"zebra_apt_get_ord FAILED xpath=%s index_type=%s",
176 xpath_use, index_type);
182 yaz_log(YLOG_LOG,
"zebra_apt_get_ord OK xpath=%s index_type=%s",
183 xpath_use, index_type);
191 Z_SortAttributes *sortAttributes,
201 structure_value =
attr_find(&structure, 0);
202 if (structure_value == 109)
206 zh, sortAttributes->list,
208 0 , yaz_oid_attset_bib_1, ord) ==
ZEBRA_OK)
int attr_find(AttrType *src, const Odr_oid **attribute_set_oid)
void attr_init_APT(AttrType *src, Z_AttributesPlusTerm *zapt, int type)
void attr_init_AttrList(AttrType *src, Z_AttributeList *list, int type)
int attr_find_ex(AttrType *src, const Odr_oid **attribute_set_oid, const char **string_value)
ZEBRA_RES zebra_attr_list_get_ord(ZebraHandle zh, Z_AttributeList *attr_list, zinfo_index_category_t cat, const char *index_type, const Odr_oid *curAttributeSet, int *ord)
static int att_getentbyatt(ZebraHandle zi, const Odr_oid *set, int att, const char **name)
ZEBRA_RES zebra_sort_get_ord(ZebraHandle zh, Z_SortAttributes *sortAttributes, int *ord, int *numerical)
static data1_att * getatt(data1_attset *p, int att)
ZEBRA_RES zebra_apt_get_ord(ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char *index_type, const char *xpath_use, const Odr_oid *curAttributeSet, int *ord)
data1_attset * data1_attset_search_id(data1_handle dh, const Odr_oid *oid)
void zebra_setError(ZebraHandle zh, int code, const char *addinfo)
void zebra_setError_zint(ZebraHandle zh, int code, zint i)
data1_attset_child * next
data1_attset_child * children
struct zebra_register * reg
short ZEBRA_RES
Common return type for Zebra API.
void zebraExplain_loadAttsets(data1_handle dh, Res res)
int zebraExplain_lookup_attr_str(ZebraExplainInfo zei, zinfo_index_category_t cat, const char *index_type, const char *str)
lookup ordinal from string index + index type
@ zinfo_index_category_index
@ zinfo_index_category_alwaysmatches
@ zinfo_index_category_sort