removing the XSLT filter from the build, only keeping the ALVIS filter
[idzebra-moved-to-github.git] / recctrl / rectext.c
index 7791314..ba618d6 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: rectext.c,v 1.27 2005-06-14 18:28:21 adam Exp $
+/* $Id: rectext.c,v 1.31 2006-05-10 08:13:30 adam Exp $
    Copyright (C) 1995-2005
    Index Data ApS
 
@@ -39,14 +39,14 @@ static void *filter_init (Res res, RecType recType)
     return tinfo;
 }
 
-static void filter_config(void *clientData, Res res, const char *args)
+static ZEBRA_RES filter_config(void *clientData, Res res, const char *args)
 {
-    struct filter_info *tinfo = (struct marc_info*) clientData;
-    yaz_log(YLOG_LOG, "args:%s: len=%d", args, strlen(args));
+    struct filter_info *tinfo = (struct filter_info*) clientData;
     xfree(tinfo->sep);
     tinfo->sep = 0;
     if (args && *args)
        tinfo->sep = xstrdup(args);
+    return ZEBRA_OK;
 }
 
 static void filter_destroy (void *clientData)
@@ -115,7 +115,6 @@ static int filter_extract (void *clientData, struct recExtractCtrl *p)
            (long) (*fi->p->tellf)(fi->p->fh));
 #endif
     (*p->init)(p, &recWord);
-    recWord.reg_type = 'w';
     do
     {
         int i = 0;
@@ -256,3 +255,11 @@ idzebra_filter
     &filter_type,
     0,
 };
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+