X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=www%2Fdemo%2Fsearch.js;h=6762753bf96462f6926de2f4e8ce88e5a58faee5;hb=dd28cba99bce512b6b4762a6ba99dc96ca109768;hp=b08450d0a2ee150cdf5f0932a5c9104e5524f689;hpb=bf7d0afdd97bd8cb1ae2d560d40fe4d84b96ef48;p=pazpar2-moved-to-github.git diff --git a/www/demo/search.js b/www/demo/search.js index b08450d..6762753 100644 --- a/www/demo/search.js +++ b/www/demo/search.js @@ -1,4 +1,4 @@ -/* $Id: search.js,v 1.39 2007-01-18 16:21:23 quinn Exp $ +/* $Id: search.js,v 1.41 2007-01-18 17:42:39 quinn Exp $ * --------------------------------------------------- * Javascript container */ @@ -330,8 +330,8 @@ function paint_subrecord(node) var table = document.createElement('table'); var zurl = node.getAttribute('id'); var tr = paint_details_tr('Source', document.createTextNode(zurl)); - paint_data_elements(table, node); table.appendChild(tr); + paint_data_elements(table, node); return table; } @@ -538,9 +538,9 @@ function refine_query (obj) { term = term.replace(/[\(\)]/g, ''); if (cur_termlist == 'subject') - query_cell.value += ' and su=(' + term + ')'; + query_cell.value += ' and su=' + term; else if (cur_termlist == 'author') - query_cell.value += ' and au=(' + term + ')'; + query_cell.value += ' and au=' + term; else if (cur_termlist == 'date') query_cell.value += ' and date=' + term;