X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmarcdisp.c;h=d3c6c922d5dbf38cb8a9372da616748bb75e65ca;hb=2dbe1df5facb92bac31b5da0ca2e2e8ee6f9b358;hp=e1c6b03d2d19e8900157780f490a0490765b08b4;hpb=3eb8be5cd44ecdbd68ec3ca8a54ec86691ff9a4d;p=yaz-moved-to-github.git diff --git a/src/marcdisp.c b/src/marcdisp.c index e1c6b03..d3c6c92 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdisp.c,v 1.52 2007-12-17 20:59:30 adam Exp $ + * $Id: marcdisp.c,v 1.54 2008-01-30 19:59:02 adam Exp $ */ /** @@ -701,6 +701,8 @@ static int yaz_marc_write_marcxml_ns(yaz_marc_t mt, WRBUF wr, int yaz_marc_write_marcxml(yaz_marc_t mt, WRBUF wr) { + /* set leader 09 to 'a' for UNICODE */ + /* http://www.loc.gov/marc/bibliographic/ecbdldrd.html#mrcblea */ if (!mt->leader_spec) yaz_marc_modify_leader(mt, 9, "a"); return yaz_marc_write_marcxml_ns(mt, wr, "http://www.loc.gov/MARC21/slim", @@ -1008,6 +1010,11 @@ void yaz_marc_iconv(yaz_marc_t mt, yaz_iconv_t cd) mt->iconv_cd = cd; } +yaz_iconv_t yaz_marc_get_iconv(yaz_marc_t mt) +{ + return mt->iconv_cd; +} + void yaz_marc_modify_leader(yaz_marc_t mt, size_t off, const char *str) { struct yaz_marc_node *n;