Fixed range merging -- it was messed up by buggy code in the sortfield merge.
authorSebastian Hammer <quinn@indexdata.com>
Tue, 16 Jan 2007 05:29:48 +0000 (05:29 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Tue, 16 Jan 2007 05:29:48 +0000 (05:29 +0000)
src/pazpar2.c
www/demo/search.js

index 1f23d6c..5dda86d 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: pazpar2.c,v 1.35 2007-01-16 03:38:49 quinn Exp $ */
+/* $Id: pazpar2.c,v 1.36 2007-01-16 05:29:48 quinn Exp $ */
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -646,12 +646,6 @@ static struct record *ingest_record(struct client *cl, Z_External *rec)
                         (*wheretoput)->data.number.min = first;
                     if (last > (*wheretoput)->data.number.max)
                         (*wheretoput)->data.number.max = last;
-                    if (sk)
-                    {
-                        union data_types *sdata = cluster->sortkeys[md->sortkey_offset];
-                        sdata->number.min = first;
-                        sdata->number.max = last;
-                    }
                 }
 #ifdef GAGA
                 if (sk)
index edf3c00..69cca05 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: search.js,v 1.26 2007-01-16 03:38:50 quinn Exp $
+/* $Id: search.js,v 1.27 2007-01-16 05:29:48 quinn Exp $
  * ---------------------------------------------------
  * Javascript container
  */
@@ -268,6 +268,8 @@ function show_details()
        if (name == 'recid' || name == 'md-title')
            continue;
        name = displayname(name);
+       if (!nodes[i].childNodes[0])
+               continue;
        var value = nodes[i].childNodes[0].nodeValue;
        var lbl = create_element('b', name );
        var lbln = document.createElement('td');