-/* $Id: retrieve.c,v 1.31 2005-06-07 11:36:38 adam Exp $
+/* $Id: retrieve.c,v 1.35 2005-08-26 10:13:31 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
#ifdef WIN32
#include <io.h>
#include <process.h>
-#else
+#endif
+#if HAVE_UNISTD_H
#include <unistd.h>
#endif
zebra_snippets_rec_keys(zh, &reckeys, retrieveCtrl.doc_snippet);
-
+#if 0
+ /* for debugging purposes */
yaz_log(YLOG_LOG, "DOC SNIPPET:");
zebra_snippets_log(retrieveCtrl.doc_snippet, YLOG_LOG);
yaz_log(YLOG_LOG, "HIT SNIPPET:");
zebra_snippets_log(retrieveCtrl.hit_snippet, YLOG_LOG);
-
+#endif
snippet = zebra_snippets_window(retrieveCtrl.doc_snippet,
retrieveCtrl.hit_snippet,
10);
-
+#if 0
+ /* for debugging purposes */
yaz_log(YLOG_LOG, "WINDOW SNIPPET:");
zebra_snippets_log(snippet, YLOG_LOG);
-
+#endif
(*rt->retrieve)(clientData, &retrieveCtrl);
zebra_snippets_destroy(snippet);