X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.theme.js;h=229c482dd6c7870c8f68582a3fbb24ea63dcce5b;hb=9af415332645247f224d98148691d6b6ece99f60;hp=ebbc45b0df5bfdc390753911d323664aa5546007;hpb=44ebb26e14d9baf9d6886a45e424abf7d00a80c4;p=mkdru-moved-to-drupal.org.git
diff --git a/mkdru.theme.js b/mkdru.theme.js
index ebbc45b..229c482 100644
--- a/mkdru.theme.js
+++ b/mkdru.theme.js
@@ -101,8 +101,11 @@ Drupal.theme.prototype.mkdruPager = function (pages, start, current, total, prev
};
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) {
@@ -114,26 +117,30 @@ Drupal.theme.prototype.mkdruFacet = function (terms, facet, max, selections) {
var html = "";
for (var i = 0; i < terms.length && i < max; i++ ) {
var term = terms[i];
- html += ''+terms[i].name;
if (term.selected) html += "";
html += ' (' + terms[i].freq
+ ')
';
}
- //TODO, meed to look up target name from ID
if (terms.length == 0 && selections && selections.length) {
for (var i=0; i'+selections[i]+' (0)
';
+ + '">'+name+' (0)
';
}
}
}
return html;
};
-Drupal.theme.prototype.mkdruFacetContainer = function (facets, facetCfg) {
+Drupal.theme.prototype.mkdruFacetContainer = function (facetsCfg) {
return "";
};