X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=data1%2Fd1_marc.c;h=1f9c8b8665cdcd09a3a9ade5e2e6ce4ab773d3cc;hb=68c4c13349e24a3cd7aa061ee4d86e4b2828f950;hp=8cd728bdcbf2a7dbbef1d0f61c1bd1b41851dc10;hpb=97a7adeb9e5059463f039495cc01cfa448463a27;p=idzebra-moved-to-github.git diff --git a/data1/d1_marc.c b/data1/d1_marc.c index 8cd728b..1f9c8b8 100644 --- a/data1/d1_marc.c +++ b/data1/d1_marc.c @@ -148,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);