X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.theme.js;h=034b4033c50969a7a93d099c4eb248b40d3c62e0;hb=50fa02694d6da3e6ddf98f900298db4caaa88889;hp=7d92e61cb3725e5124162f591787a0e98f9d283f;hpb=66f3bea850ee445427da4ec46e18d4374dd3e953;p=mkdru-moved-to-drupal.org.git
diff --git a/mkdru.theme.js b/mkdru.theme.js
index 7d92e61..034b403 100644
--- a/mkdru.theme.js
+++ b/mkdru.theme.js
@@ -17,7 +17,7 @@ Drupal.theme.prototype.mkdruResult = function(hit, num, detailLink) {
return html;
};
-Drupal.theme.prototype.mkdruDetail = function(data) {
+Drupal.theme.prototype.mkdruDetail = function(data, linkBack) {
var html = '
';
if (data["md-title"] != undefined) {
html += '' + Drupal.t("Title") + ' | : '
@@ -48,7 +48,7 @@ Drupal.theme.prototype.mkdruDetail = function(data) {
+ data["location"][0]["@name"] + " (" + data["location"][0]["@id"] + ")"
+ ' |
';
html += '
';
- html += 'Return to result list...';
+ html += 'Return to result list...';
return html;
};
@@ -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) {
@@ -110,32 +113,34 @@ 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 += Drupal.theme('mkdruFacetTerm', terms[i], facet);
+ var term = terms[i];
+ html += ''+terms[i].name;
+ if (term.selected) html += "";
+ html += ' (' + terms[i].freq
+ + ')
';
}
- return html;
-};
-
-Drupal.theme.prototype.mkdruFacetTerm = function (term, facet) {
- var html = ''+name+' (0)
';
+ }
+ }
}
- html += '">' + term.name + ' (' + term.freq + ')
';
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 "";
+};