-/* $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
}
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);
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab