dnl Zebra, Index Data Aps, 1995-2002
-dnl $Id: configure.in,v 1.59 2002-11-26 21:45:28 adam Exp $
+dnl $Id: configure.in,v 1.60 2002-12-10 12:54:24 adam Exp $
dnl
AC_INIT(include/zebraver.h)
AM_INIT_AUTOMAKE(idzebra,1.3.4)
doc/tkl.xsl
test/Makefile test/gils/Makefile test/usmarc/Makefile test/api/Makefile
perl/Makefile.PL
- test/dmoz/Makefile test/xpath/Makefile
+ test/dmoz/Makefile test/xpath/Makefile test/sort/Makefile
examples/Makefile examples/gils/Makefile
])
+idzebra (1.3.4-2) unstable; urgency=low
+
+ * Fixed bug in sort for unset entries at end of sort file.
+
+ -- Adam Dickmeiss <adam@indexdata.dk> Tue, 10 Dec 2002 13:53:10 +0100
+
idzebra (1.3.4-1) unstable; urgency=low
* Upstream.
-/* $Id: sortidx.c,v 1.7 2002-08-02 19:26:55 adam Exp $
+/* $Id: sortidx.c,v 1.8 2002-12-10 12:54:24 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
void sortIdx_read (SortIdx si, char *buf)
{
- bf_read (si->current_file->bf, si->sysno+1, 0, 0, buf);
+ int r = bf_read (si->current_file->bf, si->sysno+1, 0, 0, buf);
+ if (!r)
+ memset (buf, 0, SORT_IDX_ENTRYSIZE);
}
-SUBDIRS=gils usmarc api dmoz xpath
+SUBDIRS=gils usmarc api dmoz xpath sort
testclient_SOURCES = testclient.c
--- /dev/null
+TESTS = test1.sh
+
+EXTRA_DIST = $(TESTS) zebra.cfg rec1.xml rec2.xml rec3.xml zebra.cfg my.abs
+
--- /dev/null
+# $Id: my.abs,v 1.1 2002-12-10 12:54:24 adam Exp $
+
+name my
+reference WAIS-schema
+attset bib1.att
+tagset generic.tag
+
+varset var1.var
+
+esetname B @
+esetname F @
+
+elm (2,1) Title !:p,!:w
+elm (2,8) Date !:s
--- /dev/null
+<my>
+ <title>first computer</title>
+ <dateTime>2</dateTime>
+</my>
--- /dev/null
+<my>
+ <title>second computer</title>
+ <dateTime>1</dateTime>
+</my>
--- /dev/null
+<my>
+ <title>third computer</title>
+</my>
--- /dev/null
+#!/bin/sh
+LOG=test1.log
+rm -fr lock
+mkdir lock
+rm -fr reg
+mkdir reg
+rm -fr recs
+mkdir recs
+cp rec*.xml recs
+../../index/zebraidx -l $LOG update recs || exit 1
+../../index/zebrasrv -l $LOG unix:socket &
+sleep 1
+test -f zebrasrv.pid || exit 2
+../testclient -n3 unix:socket '@or computer @attr 7=1 @attr 1=30 0' >tmp1
+echo 'Result count: 3
+my:
+ title: third computer
+my:
+ title: second computer
+ dateTime: 1
+my:
+ title: first computer
+ dateTime: 2' >tmp2
+
+kill `cat zebrasrv.pid`
+diff tmp1 tmp2
--- /dev/null
+# Simple Zebra configuration file
+# $Id: zebra.cfg,v 1.1 2002-12-10 12:54:24 adam Exp $
+#
+# Where the schema files, attribute files, etc are located.
+profilePath: .:../../tab
+
+# Files that describe the attribute sets supported.
+attset: bib1.att
+attset: explain.att
+
+recordtype.xml: grs.sgml
+recordId: file
+lockdir: lock
+register: reg:20M
+isam: b
/*
- * $Id: testclient.c,v 1.7 2002-11-11 15:41:19 heikki Exp $
+ * $Id: testclient.c,v 1.8 2002-12-10 12:54:24 adam Exp $
*
* Z39.50 client specifically for Zebra testing.
*/
default:
printf ("%s: unknown option %s\n", prog, arg);
printf ("usage:\n%s [options] target query \n", prog);
- printf (" eg. bagel.indexdata.dk/gils computer\n");
+ printf (" eg. indexdata.dk/gils computer\n");
exit (1);
}
}
printf (" -o off offset for records - counting from 0.\n");
printf (" -f format set record syntax. Default: none\n");
printf (" -d sec delay a number of seconds before exit.\n");
- printf ("Options\n");
exit (3);
}
z = ZOOM_connection_new (target, 0);