X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Frecord_render.c;h=1291858a0f292e4861fc5b1acca1b1ea59b7dce7;hp=82da22c429ee008b97cdc96d23cc6bc359c9d567;hb=7fc72f3ae149e416a297ef1f55c09271056e98f1;hpb=6db306098a49682128a8e7bde44020fdf28fab62 diff --git a/src/record_render.c b/src/record_render.c index 82da22c..1291858 100644 --- a/src/record_render.c +++ b/src/record_render.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ /** @@ -169,6 +169,7 @@ static const char *return_record_wrbuf(WRBUF wrbuf, int *len, { if (oid_oidcmp(oid, yaz_oid_recsyn_xml) && oid_oidcmp(oid, yaz_oid_recsyn_application_xml) + && oid_oidcmp(oid, yaz_oid_recsyn_mab) && oid_oidcmp(oid, yaz_oid_recsyn_html)) { const char *ret_buf = return_marc_record( @@ -444,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,