X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.theme.js;h=745106e2938c77b5daec293135ab37eb34e7ce8d;hb=74e31a105786fa0ea1c7fd28b12f767e3df35368;hp=6f77dda1133cd1136f642e78f968d00c4198f603;hpb=af0fd36a81cdfb1dd5fbe480765440a54db8891b;p=mkdru-moved-to-drupal.org.git
diff --git a/mkdru.theme.js b/mkdru.theme.js
index 6f77dda..745106e 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;
};
@@ -100,10 +100,32 @@ Drupal.theme.prototype.mkdruPager = function (pages, start, current, total, prev
return html;
};
-Drupal.theme.prototype.mkdruTerm = function (term, freq, linkClass, id) {
- var html = '' + term + ' (' + freq + ')
';
+Drupal.theme.prototype.mkdruCounts = function(first, last, available, total) {
+ return first + Drupal.t(' to ') + last + Drupal.t(' of ') + available
+ + Drupal.t(' available (') + total + Drupal.t(' found)');
+};
+
+Drupal.theme.prototype.mkdruStatus = function(activeClients, clients) {
+ return Drupal.t('Waiting on ') + activeClients + Drupal.t(' out of ')
+ + clients + Drupal.t(' targets');
+};
+
+Drupal.theme.prototype.mkdruFacet = function (terms, facet, max) {
+ var html = "";
+ for (var i = 0; i < terms.length && i < max; i++ ) {
+ html += '' + terms[i].name + ' (' + terms[i].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