X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmarcdisp.c;h=38ac2ca2175057cbfd6cbc3748a7b4edff9af773;hb=9510c6c592b84da4a6b2616a61f0cebfce5a1c87;hp=652db12585327e8800cd5e4df2c92388dc90132a;hpb=00106dc85fcaa3b02f9a0d471ea90a594bf3a175;p=yaz-moved-to-github.git diff --git a/src/marcdisp.c b/src/marcdisp.c index 652db12..38ac2ca 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: marcdisp.c,v 1.4 2004-03-15 21:39:06 adam Exp $ + * $Id: marcdisp.c,v 1.6 2004-08-07 08:07:00 adam Exp $ */ #if HAVE_CONFIG_H @@ -43,7 +43,6 @@ void yaz_marc_destroy(yaz_marc_t mt) static void marc_cdata (yaz_marc_t mt, const char *buf, size_t len, WRBUF wr) { - size_t i; if (mt->xml == YAZ_MARC_ISO2709) wrbuf_iconv_write(wr, mt->iconv_cd, buf, len); else if (mt->xml == YAZ_MARC_LINE) @@ -135,7 +134,13 @@ int yaz_marc_decode_wrbuf (yaz_marc_t mt, const char *buf, int bsize, WRBUF wr) wr, "\n" " "); - marc_cdata(mt, buf, 24, wr); +#if 1 + marc_cdata(mt, buf, 9, wr); + marc_cdata(mt, "a", 1, wr); /* set leader to signal unicode */ + marc_cdata(mt, buf+10, 14, wr); +#else + marc_cdata(mt, buf, 24, wr); /* leave header as is .. */ +#endif wrbuf_printf(wr, "\n"); break; }