X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fotherinfo.c;h=fe2b637acc30f9db1400e31c42c3188f32c4b10c;hp=4cf95c864f82bf574a3ea9af220429553b99178b;hb=4f8ea8cfaf2f3d95e4efcf9494526c2b4be43eb8;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505 diff --git a/src/otherinfo.c b/src/otherinfo.c index 4cf95c8..fe2b637 100644 --- a/src/otherinfo.c +++ b/src/otherinfo.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2005, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: otherinfo.c,v 1.4 2005-06-25 15:46:04 adam Exp $ + * $Id: otherinfo.c,v 1.6 2007-01-03 08:42:15 adam Exp $ */ /** * \file otherinfo.c @@ -190,7 +190,8 @@ char *yaz_oi_get_string_oid ( { Z_OtherInformationUnit *oi; - if ((oi = yaz_oi_update(otherInformation, 0, oid, 1, delete_flag)) && + if ((oi = yaz_oi_update(otherInformation, 0, oid, categoryValue, + delete_flag)) && oi->which == Z_OtherInfo_characterInfo) return oi->information.characterInfo; return 0;