From f6a16487df367408b149f74af99d92531af1bcaf Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 6 Dec 2013 16:21:34 +0100 Subject: [PATCH] Support record render "json" - for ZOOM_record_get --- src/record_render.c | 5 +++++ 1 file changed, 5 insertions(+) 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, -- 1.7.10.4