- return html;
-};
-
-Drupal.theme.prototype.mkdruFacetTerm = function (term, facet) {
- var html = '<a href="';
- switch (facet) {
- case 'source':
- html += mkdru.hashAddDelOne('limit_' + facet, term.id, 'page');
- break;
- case 'subject':
- case 'author':
- html += mkdru.hashAddDelOne('limit_' + facet, term.name, 'page');
- break;
+ if (terms.length == 0 && selections && selections.length) {
+ for (var i=0; i<selections.length; i++) {
+ 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 += '<a class="cross" href="'
+ + mkdru.removeLimit(facet, selections[i])
+ + '"><strong>'+name+'</strong></a><span> (0)</span><br/>';
+ }
+ }