From: Anders S. Mortensen Date: Thu, 14 Dec 2006 11:04:31 +0000 (+0000) Subject: Added refinement feature. X-Git-Tag: before.append.child~107 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=0633d52035149cb50dcbf019d6967a6e120e4a0f;p=pazpar2-moved-to-github.git Added refinement feature. --- diff --git a/www/test1/index.html b/www/test1/index.html index 3b44bcc..23a3c89 100644 --- a/www/test1/index.html +++ b/www/test1/index.html @@ -162,6 +162,14 @@ function check_search() xshow.send(null); } + +function refine_query (obj) { + var query_cell = document.getElementById('query'); + + query_cell.value += ' and su=' + obj.innerHTML; + start_search(); +} + function show_termlist() { if (xtermlist.readyState != 4) @@ -181,7 +189,9 @@ function show_termlist() { var namen = hits[i].getElementsByTagName("name"); if (namen[0]) - body.innerHTML += namen[0].childNodes[0].nodeValue; + body.innerHTML += '' + + namen[0].childNodes[0].nodeValue + + ''; /* body.innerHTML += ' ('; var freqn = hits[i].getElementsByTagName("frequency");