X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=mkdru.theme.js;h=13886d97bb9fca7e984ee2b84c63dd7db081e104;hb=0f5481b871cbdf1f359c85da349c7e6455bbba0c;hp=745106e2938c77b5daec293135ab37eb34e7ce8d;hpb=fb9b420a79595a160623548f58f3ceef0012e944;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.theme.js b/mkdru.theme.js index 745106e..13886d9 100644 --- a/mkdru.theme.js +++ b/mkdru.theme.js @@ -110,22 +110,30 @@ Drupal.theme.prototype.mkdruStatus = function(activeClients, clients) { + clients + Drupal.t(' targets'); }; -Drupal.theme.prototype.mkdruFacet = function (terms, facet, max) { +Drupal.theme.prototype.mkdruFacet = function (terms, facet, max, selections) { var html = ""; for (var i = 0; i < terms.length && i < max; i++ ) { - html += '' + terms[i].name + ' (' + terms[i].freq + ')
'; + var term = terms[i]; + html += '
'; + } + //TODO, meed to look up target name from ID + if (terms.length == 0 && selections && selections.length) { + for (var i=0; i'+selections[i]+'
(0)
'; + } + } } return html; }; -Drupal.theme.prototype.mkdruFacetLimit = function (term, link) { - if (term) { - return '

' + Drupal.t('Only displaying ') + term.name + '

' - + '

' + Drupal.t('Show all...') + '

'; - } -}; \ No newline at end of file +Drupal.theme.prototype.mkdruFacetContainer = function (facetCfg) { + return ""; +};