Don't decode MAB as MARC
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 19 Sep 2013 11:10:26 +0000 (13:10 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 19 Sep 2013 11:10:26 +0000 (13:10 +0200)
Just like we don't attempt to decode HTML/XML as MARC.

client/client.c
src/record_render.c

index 0147b06..a115f2b 100644 (file)
@@ -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
         {
index 82da22c..bcd4c39 100644 (file)
@@ -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(