X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.theme.js;h=7d92e61cb3725e5124162f591787a0e98f9d283f;hb=6ec37cea58b7c25cd7992401ad523359217add53;hp=7e660f6b1bf18d1879972800dcf7ab5996d0841e;hpb=26900b02cc656a600d67454547cf1699174c713b;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.theme.js b/mkdru.theme.js index 7e660f6..7d92e61 100644 --- a/mkdru.theme.js +++ b/mkdru.theme.js @@ -18,27 +18,35 @@ Drupal.theme.prototype.mkdruResult = function(hit, num, detailLink) { }; Drupal.theme.prototype.mkdruDetail = function(data) { - var html = '
Title | : '+data["md-title"]; - if (data["md-title-remainder"] !== undefined) { - html += ' : ' + data["md-title-remainder"] + ' '; - } - if (data["md-title-responsibility"] !== undefined) { - html += ' '+ data["md-title-responsibility"] +''; - } - html += ' |
' + Drupal.t("Title") + ' | : ' + + data["md-title"]; + if (data["md-title-remainder"] !== undefined) { + html += ' : ' + data["md-title-remainder"] + ' '; + } + if (data["md-title-responsibility"] !== undefined) { + html += ' '+ data["md-title-responsibility"] +''; + } + html += ' |
---|---|
Date | : ' + data["md-date"] + ' |
' + Drupal.t("Date") + ' | : ' + + data["md-date"] + ' |
Author | : ' + data["md-author"] + ' |
' + Drupal.t("Author") + ' | : ' + + data["md-author"] + ' |
URL | : ' + data["md-electronic-url"] + '' + ' |
URL | : ' + + data["md-electronic-url"] + '' + ' |
Subject | : ' + data["location"][0]["md-subject"] + ' |
' + Drupal.t("Subject") + ' | : ' + + data["location"][0]["md-subject"] + ' |
Location | : ' + data["location"][0]["@name"] + " (" +data["location"][0]["@id"] + ")" + ' |
' + Drupal.t("Location") + ' | : ' + + data["location"][0]["@name"] + " (" + data["location"][0]["@id"] + ")" + + ' |
' + Drupal.t('Only displaying ') + term.name + '
' + + ''; + } }; \ No newline at end of file