Support for turbo marcxml
authorDennis Schafroth <dennis@indexdata.com>
Tue, 9 Mar 2010 12:49:05 +0000 (13:49 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Tue, 9 Mar 2010 12:49:05 +0000 (13:49 +0100)
src/record_conv.c

index 41e9881..b3ec821 100644 (file)
@@ -304,6 +304,12 @@ static int conv_marc(yaz_record_conv_t p, const xmlNode *ptr)
         if (input_charset && !output_charset)
             output_charset = "utf-8";
     }
+    else if (!strcmp(output_format, "tmarcxml"))
+    {
+        output_format_mode = YAZ_MARC_TMARCXML;
+        if (input_charset && !output_charset)
+            output_charset = "utf-8";
+    }
     else if (!strcmp(output_format, "marc"))
     {
         output_format_mode = YAZ_MARC_ISO2709;