* Sebastian Hammer, Adam Dickmeiss
*
* $Log: recctrl.h,v $
- * Revision 1.35 2002-04-13 18:16:42 adam
+ * Revision 1.36 2002-07-02 20:20:09 adam
+ * idzebra:{filename,score,size,localnumber} tags for XML
+ *
+ * Revision 1.35 2002/04/13 18:16:42 adam
* More XPATH work; common sequence numbers for extract keys
*
* Revision 1.34 2000/03/20 19:08:36 adam
int localno; /* local id of record */
int score; /* score 0-1000 or -1 if none */
int recordSize; /* size of record in bytes */
+ char *fname; /* name of file (or NULL if internal) */
char *subType;
data1_handle dh;
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: retrieve.c,v $
- * Revision 1.17 2002-05-03 13:49:04 adam
+ * Revision 1.18 2002-07-02 20:20:09 adam
+ * idzebra:{filename,score,size,localnumber} tags for XML
+ *
+ * Revision 1.17 2002/05/03 13:49:04 adam
* play with shellsort
*
* Revision 1.16 2002/04/04 20:50:37 adam
logf (LOG_DEBUG, "retrieve localno=%d score=%d", sysno, score);
retrieveCtrl.fh = &fc;
fc.fd = -1;
+ retrieveCtrl.fname = fname;
if (rec->size[recInfo_storeData] > 0)
{
retrieveCtrl.readf = zebra_record_int_read;
* Copyright (C) 1994-2002, Index Data
* All rights reserved.
*
- * $Id: recgrs.c,v 1.51 2002-05-28 21:10:34 adam Exp $
+ * $Id: recgrs.c,v 1.52 2002-07-02 20:20:09 adam Exp $
*/
#include <stdio.h>
char *tagname;
struct grs_handlers *h = (struct grs_handlers *) clientData;
int requested_schema = VAL_NONE;
+ data1_marctab *marctab;
+ int dummy;
mem = nmem_create();
gri.readf = p->readf;
switch (p->output_format = (p->input_format != VAL_NONE ?
p->input_format : VAL_SUTRS))
{
- data1_marctab *marctab;
- int dummy;
case VAL_TEXT_XML:
+ data1_mk_tag_data_int (p->dh, node, "idzebra:size", p->recordSize,
+ mem);
+ if (p->score != -1)
+ data1_mk_tag_data_int (p->dh, node, "idzebra:score",
+ p->score, mem);
+
+ data1_mk_tag_data_int (p->dh, node, "idzebra:localnumber", p->localno,
+ mem);
+ if (p->fname)
+ data1_mk_tag_data_text(p->dh, node, "idzebra:filename",
+ p->fname, mem);
+
if (!(p->rec_buf = data1_nodetoidsgml(p->dh, node, selected,
&p->rec_len)))
p->diagnostic = 238;