Support record render "json" - for ZOOM_record_get
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 6 Dec 2013 15:21:34 +0000 (16:21 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 6 Dec 2013 15:21:34 +0000 (16:21 +0100)
src/record_render.c

index bcd4c39..284728b 100644 (file)
@@ -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,