- var sel = selections[facet];
- if (terms.length == 0 && sel && sel.length) {
- for (var i=0; i<sel.length; i++) {
- if (sel[i]) {
- html += '<a class="cross" href="'+mkdru.removeLimit(facet, sel[i])
- + '"><strong>'+sel[i]+'</strong></a><span> (0)</span><br/>';
+ if (terms.length == 0 && selections && selections.length) {
+ for (var i=0; i<selections.length; i++) {
+ show = true;
+ if (selections[i]) {
+ // since we have no target name (only id) go for the basename
+ // FIXME get the proper target name
+ var name = facet == "source" ? selections[i].replace(/.*[\/\\]/, "")
+ .replace(/\?.*/, '')
+ : selections[i];
+ html += '<div class="form-item form-type-checkbox">';
+ html += '<input type="checkbox" checked="checked" id="'+name+'" '
+ +'onclick="window.location=\''+mkdru.removeLimit(facet, selections[i])
+ +'\';return true;" class="form-checkbox"/><label class="option" for="'
+ +name+'">'+name+'</a><span> (0)</span></label></div>';