From 5a45e2c9d4e4fb7e3b547df12481b339f50ba8c3 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 19 Sep 2013 13:10:26 +0200 Subject: [PATCH] Don't decode MAB as MARC Just like we don't attempt to decode HTML/XML as MARC. --- client/client.c | 5 ++++- src/record_render.c | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/client.c b/client/client.c index 0147b06..a115f2b 100644 --- a/client/client.c +++ b/client/client.c @@ -927,7 +927,10 @@ static void display_record(Z_External *r) || !oid_oidcmp(oid, yaz_oid_recsyn_html)) { print_xml_record(octet_buf, octet_len); - + } + else if (!oid_oidcmp(oid, yaz_oid_recsyn_mab)) + { + print_record(octet_buf, octet_len); } else { diff --git a/src/record_render.c b/src/record_render.c index 82da22c..bcd4c39 100644 --- a/src/record_render.c +++ b/src/record_render.c @@ -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( -- 1.7.10.4