From: Mike Taylor Date: Wed, 10 Jul 2013 14:57:34 +0000 (+0100) Subject: Individual terms within a facet are wrapped in
X-Git-Tag: 0.9.1~275^2~4 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=5dc09f9792e70dd9cdbeac5c7acd2bd15bc73d54;p=mkws-moved-to-github.git Individual terms within a facet are wrapped in
It should now be possible to style termlists as tables. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index f4124b4..7625589 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -204,6 +204,7 @@ function add_single_facet(acc, caption, data, max, cclIndex) { acc.push('
'); acc.push('
' + M(caption) + '
'); for (var i = 0; i < data.length && i < max; i++ ) { + acc.push('
'); acc.push('' + data[i].name + '' - + ' (' + data[i].freq + ')
'); + + ' (' + data[i].freq + ')'); + acc.push('
'); } acc.push('
'); }