X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=data1%2Fd1_marc.c;h=8b7b94c016134e056cec86622dbcf187a19995a3;hb=f280b4adca76b5b447dae9d6a01ff1f9067c08b9;hp=d038d19cf4ee1a5114f28e77b73ae7cd7e20a76b;hpb=02266b68e2e2c86d8a8467ee56721926b365d2d0;p=idzebra-moved-to-github.git diff --git a/data1/d1_marc.c b/data1/d1_marc.c index d038d19..8b7b94c 100644 --- a/data1/d1_marc.c +++ b/data1/d1_marc.c @@ -1,4 +1,4 @@ -/* $Id: d1_marc.c,v 1.2 2002-10-22 13:19:50 adam Exp $ +/* $Id: d1_marc.c,v 1.3 2003-02-28 12:33:38 oleg Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -246,6 +246,9 @@ static int nodetomarc(data1_handle dh, } if (selected && !field->u.tag.node_selected) continue; + + if (!yaz_matchstr(field->u.tag.tag, "mc?")) + continue; subf = field->child; if (!subf) @@ -264,7 +267,7 @@ static int nodetomarc(data1_handle dh, is00X = 1; } - + if (!is00X) len += p->indicator_length; /* we'll allow no indicator if length is not 2 */ @@ -310,6 +313,9 @@ static int nodetomarc(data1_handle dh, if (selected && !field->u.tag.node_selected) continue; + if (!yaz_matchstr(field->u.tag.tag, "mc?")) + continue; + subf = field->child; if (!subf) continue;