* Sebastian Hammer, Adam Dickmeiss
*
* $Log: recctrl.h,v $
- * Revision 1.27 1998-10-16 08:14:28 adam
+ * Revision 1.28 1999-03-02 16:15:42 quinn
+ * Added "tagsysno" and "tagrank" directives to zebra.cfg.
+ *
+ * Revision 1.27 1998/10/16 08:14:28 adam
* Updated record control system.
*
* Revision 1.26 1998/05/20 10:12:12 adam
/* Retrieve record control */
struct recRetrieveCtrl {
/* Input parameters ... */
+ Res res; /* Resource pool */
ODR odr; /* ODR used to create response */
void *fh; /* File descriptor and read function */
int (*readf)(void *fh, char *buf, size_t count);
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: retrieve.c,v $
- * Revision 1.6 1999-02-18 15:01:25 adam
+ * Revision 1.7 1999-03-02 16:15:43 quinn
+ * Added "tagsysno" and "tagrank" directives to zebra.cfg.
+ *
+ * Revision 1.6 1999/02/18 15:01:25 adam
* Minor changes.
*
* Revision 1.5 1999/02/17 11:29:56 adam
retrieveCtrl.comp = comp;
retrieveCtrl.diagnostic = 0;
retrieveCtrl.dh = zh->dh;
+ retrieveCtrl.res = zh->res;
(*rt->retrieve)(&retrieveCtrl);
*output_format = retrieveCtrl.output_format;
*rec_bufp = retrieveCtrl.rec_buf;
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: recgrs.c,v $
- * Revision 1.25 1999-02-18 15:01:26 adam
+ * Revision 1.26 1999-03-02 16:15:44 quinn
+ * Added "tagsysno" and "tagrank" directives to zebra.cfg.
+ *
+ * Revision 1.25 1999/02/18 15:01:26 adam
* Minor changes.
*
* Revision 1.24 1999/02/02 14:51:28 adam
int res, selected = 0;
NMEM mem;
struct grs_read_info gri;
+ char *tagname;
mem = nmem_create();
gri.readf = p->readf;
dnew->u.data.len = strlen(dnew->u.data.data);
}
- logf (LOG_DEBUG, "grs_retrieve: score");
- if (p->score >= 0 && (dnew =
+ tagname = res_get_def(p->res, "tagrank", "rank");
+ if (strcmp(tagname, "0") && p->score >= 0 && (dnew =
data1_insert_taggeddata(p->dh, node,
- node, "rank",
+ node, tagname,
mem)))
{
+ logf (LOG_DEBUG, "grs_retrieve: %s", tagname);
dnew->u.data.what = DATA1I_num;
dnew->u.data.data = dnew->lbuf;
sprintf(dnew->u.data.data, "%d", p->score);
dnew->u.data.len = strlen(dnew->u.data.data);
}
- logf (LOG_DEBUG, "grs_retrieve: localControlNumber");
- if (p->localno > 0 && (dnew = data1_insert_taggeddata(p->dh, node, node,
- "localControlNumber", mem)))
+ tagname = res_get_def(p->res, "tagsysno", "localControlNumber");
+ if (strcmp(tagname, "0") && p->localno > 0 &&
+ (dnew = data1_insert_taggeddata(p->dh, node, node, tagname, mem)))
{
+ logf (LOG_DEBUG, "grs_retrieve: %s", tagname);
dnew->u.data.what = DATA1I_text;
dnew->u.data.data = dnew->lbuf;
sprintf(dnew->u.data.data, "%d", p->localno);
# URX character map
#
-# $Id: urx.chr,v 1.2 1998-01-26 10:36:49 adam Exp $
+# $Id: urx.chr,v 1.3 1999-03-02 16:15:45 quinn Exp $
# Basic character(s)
-lowercase {0-9}{a-y}üzæäøöå/.~:-,#!?=<;\{|}
-uppercase {0-9}{A-Y}ÜZÆÄØÖÅ/.~:-,#!?=>;\{|}
+lowercase {0-9}{a-y}üzæäøöå/.~:-,#!?=<;\{|}+
+uppercase {0-9}{A-Y}ÜZÆÄØÖÅ/.~:-,#!?=>;\{|}+
# Breaking characters