From: Adam Dickmeiss Date: Mon, 23 Feb 1998 10:57:09 +0000 (+0000) Subject: Take care of integer data nodes as well in conversion. X-Git-Tag: YAZ.1.8~513 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=84842745a27a08eb4a6c1ea971dfcc320c81bac6;p=yaz-moved-to-github.git Take care of integer data nodes as well in conversion. --- diff --git a/retrieval/d1_marc.c b/retrieval/d1_marc.c index e2e89a5..198e852 100644 --- a/retrieval/d1_marc.c +++ b/retrieval/d1_marc.c @@ -1,10 +1,13 @@ /* - * Copyright (c) 1995-1997, Index Data. + * Copyright (c) 1995-1998, Index Data. * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: d1_marc.c,v $ - * Revision 1.11 1998-02-11 11:53:35 adam + * Revision 1.12 1998-02-23 10:57:09 adam + * Take care of integer data nodes as well in conversion. + * + * Revision 1.11 1998/02/11 11:53:35 adam * Changed code so that it compiles as C++. * * Revision 1.10 1997/09/30 11:50:04 adam @@ -179,7 +182,8 @@ static char *get_data(data1_node *n, int *len) while (n->which != DATA1N_data && n->child) n = n->child; - if (n->which != DATA1N_data || n->u.data.what != DATA1I_text) + if (n->which != DATA1N_data || + (n->u.data.what != DATA1I_text && n->u.data.what != DATA1I_num)) { r = "[Structured/included data]"; *len = strlen(r);