From: Adam Dickmeiss Date: Fri, 6 Dec 2013 15:21:34 +0000 (+0100) Subject: Support record render "json" - for ZOOM_record_get X-Git-Tag: v5.0.5~7 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=f6a16487df367408b149f74af99d92531af1bcaf;p=yaz-moved-to-github.git Support record render "json" - for ZOOM_record_get --- diff --git a/src/record_render.c b/src/record_render.c index bcd4c39..284728b 100644 --- a/src/record_render.c +++ b/src/record_render.c @@ -445,6 +445,11 @@ const char *yaz_record_render(Z_NamePlusRecord *npr, const char *schema, ret = get_record_format(wrbuf, len, npr, YAZ_MARC_TURBOMARC, charset, format); } + else if (!strcmp(type, "json")) + { + ret = get_record_format(wrbuf, len, npr, YAZ_MARC_JSON, charset, + format); + } else if (!strcmp(type, "raw")) { ret = get_record_format(wrbuf, len, npr, YAZ_MARC_ISO2709, charset,