X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=data1%2Fd1_marc.c;h=cc46e3121c2532d5db17d1cff21d614719e5ffff;hb=cc4289d73c2b872c09d221d5e1188d3cdd9da438;hp=a1fc8d1ab5655349877aa2d112dd50302277040a;hpb=112edbbf3b1acb84e5a38d6d28c5f9ee39d180e1;p=idzebra-moved-to-github.git diff --git a/data1/d1_marc.c b/data1/d1_marc.c index a1fc8d1..cc46e31 100644 --- a/data1/d1_marc.c +++ b/data1/d1_marc.c @@ -1,4 +1,4 @@ -/* $Id: d1_marc.c,v 1.4 2003-11-13 23:57:41 adam Exp $ +/* $Id: d1_marc.c,v 1.6 2003-12-17 12:03:54 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps @@ -231,16 +231,15 @@ static int nodetomarc(data1_handle dh, char *op; data1_node *field, *subf; - data1_pr_tree (dh, n, stdout); - - yaz_log (LOG_DEBUG, "nodetomarc"); +#if 0 data1_pr_tree(dh, n, stdout); +#endif + yaz_log (LOG_DEBUG, "nodetomarc"); memcpy (leader+5, p->record_status, 1); memcpy (leader+6, p->implementation_codes, 4); memint (leader+10, p->indicator_length, 1); memint (leader+11, p->identifier_length, 1); - memint (leader+12, base_address, 5); memcpy (leader+17, p->user_systems, 3); memint (leader+20, p->length_data_entry, 1); memint (leader+21, p->length_starting, 1); @@ -322,6 +321,11 @@ static int nodetomarc(data1_handle dh, *buf = (char *)xrealloc(*buf, *size = len); op = *buf; + + /* we know the base address now */ + memint (leader+12, base_address, 5); + + /* copy temp leader to real output buf op */ memcpy (op, leader, 24); memint (op, len, 5);