- if (*ae->value.numeric == 0)
- av->relation = "desc";
- else if (*ae->value.numeric == 1)
- av->relation = "asc";
- else
- if (*ae->value.numeric == 3) {
- av->relation = "unknown/unordered";
- } else {
- av->errcode = YAZ_BIB1_UNSUPP_RELATION_ATTRIBUTE;
- sprintf(av->useattrbuff, ODR_INT_PRINTF,
- *ae-> attributeType);
- av->errstring = av->useattrbuff;
- }
- }
- else
- {
- av->errcode = YAZ_BIB1_UNSUPP_RELATION_ATTRIBUTE;
- av->errstring = "non-numeric relation attribute";
- }
-} /* relationattr */
-
-static void limitattr(Z_AttributeElement *ae, struct yaz_facet_attr *av)
-{
- if (ae->which == Z_AttributeValue_numeric)
- {
- av->limit = *ae->value.numeric;
- yaz_log(YLOG_DEBUG, "limitattr %d ", av->limit);