projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rolling mods to Marc's new ranking prose. (Check in early, check in
[idzebra-moved-to-github.git]
/
recctrl
/
recctrl.c
diff --git
a/recctrl/recctrl.c
b/recctrl/recctrl.c
index
5709d8c
..
1130d01
100644
(file)
--- a/
recctrl/recctrl.c
+++ b/
recctrl/recctrl.c
@@
-1,4
+1,4
@@
-/* $Id: recctrl.c,v 1.20 2005-04-28 08:20:40 adam Exp $
+/* $Id: recctrl.c,v 1.23 2006-04-26 11:12:31 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
Copyright (C) 1995-2005
Index Data ApS
@@
-56,8
+56,10
@@
static void recTypeClass_add (struct recTypeClass **rts, RecType *rt,
RecTypeClass recTypeClass_create (Res res, NMEM nmem)
{
struct recTypeClass *rts = 0;
RecTypeClass recTypeClass_create (Res res, NMEM nmem)
{
struct recTypeClass *rts = 0;
+#if HAVE_DLFCN_H
const char *module_path = res_get_def(res, "modulePath",
DEFAULT_MODULE_PATH);
const char *module_path = res_get_def(res, "modulePath",
DEFAULT_MODULE_PATH);
+#endif
#ifdef IDZEBRA_STATIC_GRS_SGML
if (1)
#ifdef IDZEBRA_STATIC_GRS_SGML
if (1)
@@
-96,6
+98,13
@@
RecTypeClass recTypeClass_create (Res res, NMEM nmem)
recTypeClass_add (&rts, idzebra_filter_grs_marc, nmem, 0);
}
#endif
recTypeClass_add (&rts, idzebra_filter_grs_marc, nmem, 0);
}
#endif
+#ifdef IDZEBRA_STATIC_GRS_CSV
+ if (1)
+ {
+ extern RecType idzebra_filter_grs_csv[];
+ recTypeClass_add (&rts, idzebra_filter_grs_csv, nmem, 0);
+ }
+#endif
#ifdef IDZEBRA_STATIC_GRS_DANBIB
if (1)
{
#ifdef IDZEBRA_STATIC_GRS_DANBIB
if (1)
{
@@
-269,7
+278,11
@@
RecType recType_byName (RecTypes rts, Res res, const char *name,
slen++; /* skip . */
if (rti->recType->config)
slen++; /* skip . */
if (rti->recType->config)
- (*(rti->recType)->config)(rti->clientData, res, name+slen);
+ {
+ if ((*(rti->recType)->config)
+ (rti->clientData, res, name+slen) != ZEBRA_OK)
+ return 0;
+ }
return rti->recType;
}
}
return rti->recType;
}
}