X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmarcdisp.c;h=4e4230bb62805801f0ad1106295a6317a9b75ebd;hb=811aab8e16731999167fcb3cd2076e7256bf68ad;hp=c23b1b64ed94d9e395376ba689cebb4813ea68d4;hpb=f514c7fcb9cd0c205b308a1213112317d564874c;p=yaz-moved-to-github.git diff --git a/src/marcdisp.c b/src/marcdisp.c index c23b1b6..4e4230b 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdisp.c,v 1.19 2005-03-06 21:27:09 adam Exp $ + * $Id: marcdisp.c,v 1.21 2005-04-20 13:17:51 adam Exp $ */ /** @@ -214,8 +214,7 @@ int yaz_marc_decode_wrbuf (yaz_marc_t mt, const char *buf, int bsize, WRBUF wr) { char str[40]; - if (mt->xml) - wrbuf_puts (wr, "\n"); + wrbuf_puts (wr, "-->\n"); } /* first pass. determine length of directory & base of data */ @@ -265,7 +263,7 @@ int yaz_marc_decode_wrbuf (yaz_marc_t mt, const char *buf, int bsize, WRBUF wr) if (base_address != entry_p+1) { if (produce_warnings) - wrbuf_printf (wr," \n", base_address, entry_p+1); } if (mt->xml == YAZ_MARC_ISO2709) @@ -380,8 +378,6 @@ int yaz_marc_decode_wrbuf (yaz_marc_t mt, const char *buf, int bsize, WRBUF wr) switch(mt->xml) { case YAZ_MARC_LINE: - if (mt->debug) - wrbuf_puts (wr, "Tag: "); wrbuf_puts (wr, tag); wrbuf_puts (wr, " "); break; @@ -419,8 +415,6 @@ int yaz_marc_decode_wrbuf (yaz_marc_t mt, const char *buf, int bsize, WRBUF wr) wrbuf_putc(wr, buf[i]); break; case YAZ_MARC_LINE: - if (mt->debug) - wrbuf_puts (wr, " Ind: "); wrbuf_putc(wr, buf[i]); break; case YAZ_MARC_SIMPLEXML: @@ -448,11 +442,6 @@ int yaz_marc_decode_wrbuf (yaz_marc_t mt, const char *buf, int bsize, WRBUF wr) if (identifier_flag) wrbuf_puts (wr, "\n"); } - if (mt->xml == YAZ_MARC_LINE) - { - if (mt->debug) - wrbuf_puts (wr, " Fields: "); - } if (identifier_flag) { while (i < end_offset && @@ -524,9 +513,9 @@ int yaz_marc_decode_wrbuf (yaz_marc_t mt, const char *buf, int bsize, WRBUF wr) if (mt->xml == YAZ_MARC_LINE) wrbuf_puts (wr, mt->endline_str); if (i < end_offset) - wrbuf_printf(wr, " \n", data_length); + wrbuf_printf(wr, "\n", data_length); if (buf[i] != ISO2709_RS && buf[i] != ISO2709_FS) - wrbuf_printf(wr, " \n", data_length); + wrbuf_printf(wr, "\n", data_length); switch(mt->xml) { case YAZ_MARC_SIMPLEXML: