From 835cca40fdee0597232361c5129cf47160d77e79 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 4 Oct 2002 11:24:55 +0000 Subject: [PATCH] OAI MARC fix --- util/marcdisp.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/util/marcdisp.c b/util/marcdisp.c index 78b4833..342e5d1 100644 --- a/util/marcdisp.c +++ b/util/marcdisp.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2002, Index Data * See the file LICENSE for details. * - * $Id: marcdisp.c,v 1.21 2002-10-04 10:19:58 adam Exp $ + * $Id: marcdisp.c,v 1.22 2002-10-04 11:24:55 adam Exp $ */ #if HAVE_CONFIG_H @@ -64,19 +64,15 @@ int yaz_marc_decode (const char *buf, WRBUF wr, int debug, int bsize, int xml) { wrbuf_puts( wr, - "\n", + sprintf (str, " status=\"%c\" type=\"%c\" catForm=\"%c\">\n", buf[5], buf[6], buf[7]); wrbuf_puts (wr, str); } @@ -279,7 +275,12 @@ int yaz_marc_decode (const char *buf, WRBUF wr, int debug, int bsize, int xml) } } if (xml) - wrbuf_puts (wr, "\n"); + { + if (xml > 1) + wrbuf_puts (wr, "\n"); + else + wrbuf_puts (wr, "\n"); + } wrbuf_puts (wr, ""); return record_length; } -- 1.7.10.4