From 0283d32084a891c4d9dd9ac6ffb32bbc73ce0789 Mon Sep 17 00:00:00 2001 From: Sebastian Hammer Date: Tue, 16 Jan 2007 05:29:48 +0000 Subject: [PATCH] Fixed range merging -- it was messed up by buggy code in the sortfield merge. --- src/pazpar2.c | 8 +------- www/demo/search.js | 4 +++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/pazpar2.c b/src/pazpar2.c index 1f23d6c..5dda86d 100644 --- a/src/pazpar2.c +++ b/src/pazpar2.c @@ -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 #include @@ -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) diff --git a/www/demo/search.js b/www/demo/search.js index edf3c00..69cca05 100644 --- a/www/demo/search.js +++ b/www/demo/search.js @@ -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'); -- 1.7.10.4