X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=data1%2Fd1_marc.c;h=e9fb61411dadf3085129b0ce39e15ac9c72937a4;hb=89d16cf15eda0e4802d18b8ad09bd3653508ebfc;hp=a091cc635b739c90d5d2261b347ae1a92fe8833f;hpb=676ae79af06721621b1f66bdaec06164b3ba7b1f;p=idzebra-moved-to-github.git diff --git a/data1/d1_marc.c b/data1/d1_marc.c index a091cc6..e9fb614 100644 --- a/data1/d1_marc.c +++ b/data1/d1_marc.c @@ -1,8 +1,5 @@ -/* $Id: d1_marc.c,v 1.19 2007-06-27 22:17:20 adam Exp $ - Copyright (C) 1995-2007 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 1994-2009 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -151,6 +148,21 @@ data1_marctab *data1_read_marctab (data1_handle dh, const char *file) } res->force_identifier_length = atoi(argv[1]); } + else if (!strcmp(*argv, "implementation-codes")) + { + if (argc != 2) + { + yaz_log(YLOG_WARN, "%s:%d: Missing arg for %s", file, lineno, + *argv); + continue; + } + /* up to 4 characters .. space pad */ + if (strlen(argv[1]) > 4) + yaz_log(YLOG_WARN, "%s:%d: Max 4 characters for " + "implementation-codes", file, lineno); + else + memcpy(res->implementation_codes, argv[1], strlen(argv[1])); + } else yaz_log(YLOG_WARN, "%s:%d: Unknown directive '%s'", file, lineno, *argv);