X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsortspec.c;h=2bed2a5fc7a31441a6408cf6552c6cd20261a727;hp=83b04b597a75c6ddd4cf66baf9751db11c48ea34;hb=52188379291c43d463d4ee6742cf81a700541723;hpb=3f282496986cbae7fd4bd7f95d44bf47a2cc6874 diff --git a/src/sortspec.c b/src/sortspec.c index 83b04b5..2bed2a5 100644 --- a/src/sortspec.c +++ b/src/sortspec.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2006, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 Index Data * See the file LICENSE for details. - * - * $Id: sortspec.c,v 1.7 2006-05-30 22:00:09 adam Exp $ */ /** * \file sortspec.c @@ -14,8 +12,8 @@ #include #include -#include #include +#include Z_SortKeySpecList *yaz_sort_spec (ODR out, const char *arg) { @@ -49,8 +47,7 @@ Z_SortKeySpecList *yaz_sort_spec (ODR out, const char *arg) sk->which = Z_SortKey_sortAttributes; sk->u.sortAttributes = (Z_SortAttributes *) odr_malloc (out, sizeof(*sk->u.sortAttributes)); - sk->u.sortAttributes->id = - yaz_oidval_to_z3950oid(out, CLASS_ATTSET, VAL_BIB1); + sk->u.sortAttributes->id = odr_oiddup(out, yaz_oid_attset_bib_1); sk->u.sortAttributes->list = (Z_AttributeList *) odr_malloc (out, sizeof(*sk->u.sortAttributes->list)); sk->u.sortAttributes->list->attributes = (Z_AttributeElement **)