-/* $Id: attribute.c,v 1.28 2007-01-15 15:10:16 adam Exp $
+/* $Id: attribute.c,v 1.29 2007-04-16 08:44:31 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
#include <idzebra/util.h>
#include <attrfind.h>
#include "index.h"
+#include <yaz/oid_db.h>
static data1_att *getatt(data1_attset *p, int att)
{
return 0;
}
-static int att_getentbyatt(ZebraHandle zi, oid_value set, int att,
+static int att_getentbyatt(ZebraHandle zi, const int *set, int att,
const char **name)
{
data1_att *r;
Z_AttributeList *attr_list,
zinfo_index_category_t cat,
int index_type,
- oid_value curAttributeSet,
+ const int *curAttributeSet,
int *ord)
{
int use_value = -1;
Z_AttributesPlusTerm *zapt,
int index_type,
const char *xpath_use,
- oid_value curAttributeSet,
+ const int *curAttributeSet,
int *ord)
{
ZEBRA_RES res = ZEBRA_OK;
{
AttrType structure;
int structure_value;
+
attr_init_AttrList(&structure, sortAttributes->list, 4);
*numerical = 0;
structure_value = attr_find(&structure, 0);
if (structure_value == 109)
*numerical = 1;
-
- if (zebra_attr_list_get_ord(zh, sortAttributes->list,
- zinfo_index_category_sort,
- -1 /* any index */, VAL_BIB1, ord)== ZEBRA_OK)
+
+ if (zebra_attr_list_get_ord(
+ zh, sortAttributes->list,
+ zinfo_index_category_sort,
+ -1 /* any index */, yaz_oid_attset_bib1(), ord) == ZEBRA_OK)
return ZEBRA_OK;
return ZEBRA_FAIL;
}