From: Adam Dickmeiss Date: Wed, 7 Apr 2004 13:51:50 +0000 (+0000) Subject: Check class for display of XML/HTML X-Git-Tag: YAZ.2.0.20~38 X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=commitdiff_plain;h=a6866a0c08c5b0b853d2385ec2f28a0832cc3241;p=yaz-moved-to-github.git Check class for display of XML/HTML --- diff --git a/client/client.c b/client/client.c index 429a1fe..d0f9ad5 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.237 2004-04-07 13:47:59 adam Exp $ + * $Id: client.c,v 1.238 2004-04-07 13:51:50 adam Exp $ */ #include @@ -747,8 +747,10 @@ static void display_record(Z_External *r) else if (r->which == Z_External_octet) { const char *octet_buf = (char*)r->u.octet_aligned->buf; - if (ent->value == VAL_TEXT_XML || ent->value == VAL_APPLICATION_XML || - ent->value == VAL_HTML) + if (ent->oclass == CLASS_RECSYN && + (ent->value == VAL_TEXT_XML || + ent->value == VAL_APPLICATION_XML || + ent->value == VAL_HTML)) { print_record((const unsigned char *) octet_buf, r->u.octet_aligned->len);