Additional record debugging. Fixed incoming per-client record counter
authorSebastian Hammer <quinn@indexdata.com>
Thu, 18 Jan 2007 14:22:25 +0000 (14:22 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Thu, 18 Jan 2007 14:22:25 +0000 (14:22 +0000)
src/pazpar2.c
www/demo/page_segments.phpi

index 184bd71..a0625e1 100644 (file)
@@ -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 <stdlib.h>
 #include <stdio.h>
@@ -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;
index 08b7cec..742f95b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-/* $Id: page_segments.phpi,v 1.18 2007-01-17 14:25:37 quinn Exp $
+/* $Id: page_segments.phpi,v 1.19 2007-01-18 14:22:25 quinn Exp $
  * ---------------------------------------------------
  * Page segments 
  */
@@ -50,6 +50,7 @@ function insert_header () {
           <b>Limit search results</b><br />
           Narrow your search by using the keywords below:<br />
           <br />
+
           <a id="facet_subject" class="unselected"
              onclick="toggle_facet(this)">Subject</a>
           <span id="facet_subject_terms" class="facet"