From: Sebastian Hammer Date: Thu, 18 Jan 2007 14:22:25 +0000 (+0000) Subject: Additional record debugging. Fixed incoming per-client record counter X-Git-Tag: stable.27032007~61 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=2c14dfd5d138fe5b55a6e985cda0f239f5945ba1;p=pazpar2-moved-to-github.git Additional record debugging. Fixed incoming per-client record counter --- diff --git a/src/pazpar2.c b/src/pazpar2.c index 184bd71..a0625e1 100644 --- a/src/pazpar2.c +++ b/src/pazpar2.c @@ -1,4 +1,4 @@ -/* $Id: pazpar2.c,v 1.41 2007-01-17 15:32:39 quinn Exp $ */ +/* $Id: pazpar2.c,v 1.42 2007-01-18 14:22:25 quinn Exp $ */ #include #include @@ -265,7 +265,6 @@ static void do_searchResponse(IOCHAN i, Z_APDU *a) if (r->presentStatus && !*r->presentStatus && r->records) { yaz_log(YLOG_DEBUG, "Records in search response"); - cl->records += *r->numberOfRecordsReturned; ingest_records(cl, r->records); } cl->state = Client_Idle; @@ -426,6 +425,17 @@ static xmlDoc *normalize_record(struct client *cl, Z_External *rec) yaz_log(YLOG_FATAL, "Unknown native_syntax in normalize_record"); exit(1); } + + if (global_parameters.dump_records) + { + fprintf(stderr, "Input Record (normalized):\n----------------\n"); +#if LIBXML_VERSION >= 20600 + xmlDocFormatDump(stderr, rdoc, 1); +#else + xmlDocDump(stderr, rdoc); +#endif + } + for (m = rprofile->maplist; m; m = m->next) { xmlDoc *new; diff --git a/www/demo/page_segments.phpi b/www/demo/page_segments.phpi index 08b7cec..742f95b 100644 --- a/www/demo/page_segments.phpi +++ b/www/demo/page_segments.phpi @@ -1,6 +1,6 @@ Limit search results
Narrow your search by using the keywords below:

+ Subject