- termlists.push('<div class="facet">');
- termlists.push('<div class="termtitle">' + M('Sources') + '</div>');
- for (var i = 0; i < data.xtargets.length && i < SourceMax; i++ ) {
- termlists.push('<a href="#" target_id='+data.xtargets[i].id + ' onclick="limitTarget(this.getAttribute(\'target_id\'),this.firstChild.nodeValue);return false;">'
- + data.xtargets[i].name
- + '</a><span> ('
- + data.xtargets[i].freq
- + ')</span><br/>');
- }
- termlists.push('</div>');
-
+ add_single_facet(termlists, "Sources", data.xtargets, SourceMax, null);