Fixed bug #259: Second indicator lost in MARC records
[idzebra-moved-to-github.git] / data1 / d1_marc.c
index 511de28..2acf4d7 100644 (file)
@@ -1,6 +1,6 @@
-/* $Id: d1_marc.c,v 1.8 2004-11-19 10:26:53 heikki Exp $
-   Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003
-   Index Data Aps
+/* $Id: d1_marc.c,v 1.11 2005-02-02 08:03:22 adam Exp $
+   Copyright (C) 1995-2005
+   Index Data ApS
 
 This file is part of the Zebra server.
 
@@ -26,8 +26,8 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include <stdlib.h>
 #include <string.h>
 
+#include <yaz/log.h>
 #include <yaz/oid.h>
-#include <yaz/ylog.h>
 #include <yaz/marcdisp.h>
 #include <yaz/readconf.h>
 #include <yaz/xmalloc.h>
@@ -391,9 +391,9 @@ static int nodetomarc(data1_handle dh,
                if (!strcmp(xa->name, "ind1"))
                    indicator_data[0] = xa->value[0];
                if (!strcmp(xa->name, "ind2"))
-                   indicator_data[1] = xa->value[1];
+                   indicator_data[1] = xa->value[0];
                if (!strcmp(xa->name, "ind3"))
-                   indicator_data[2] = xa->value[2];
+                   indicator_data[2] = xa->value[0];
            }
        }
        if (!control_field)