};
Drupal.theme.prototype.mkdruCounts = function(first, last, available, total) {
- return first + Drupal.t(' to ') + last + Drupal.t(' of ') + available
+ if (last > 0)
+ return first + Drupal.t(' to ') + last + Drupal.t(' of ') + available
+ Drupal.t(' available (') + total + Drupal.t(' found)');
+ else
+ return Drupal.t('No results');
};
Drupal.theme.prototype.mkdruStatus = function(activeClients, clients) {
+ ')</span><br/>';
}
//TODO, meed to look up target name from ID
- 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++) {
+ if (selections[i]) {
+ html += '<a class="cross" href="'
+ + mkdru.removeLimit(facet, selections[i])
+ + '"><strong>'+selections[i]+'</strong></a><span> (0)</span><br/>';
}
}
}
return html;
};
-Drupal.theme.prototype.mkdruFacetContainer = function (facets, facetCfg) {
+Drupal.theme.prototype.mkdruFacetContainer = function (facetCfg) {
return "";
};