X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=mkdru.theme.js;h=034b4033c50969a7a93d099c4eb248b40d3c62e0;hb=ac3d47c986ab5db1d6597b5125b34a50bb6ae57b;hp=7e660f6b1bf18d1879972800dcf7ab5996d0841e;hpb=26900b02cc656a600d67454547cf1699174c713b;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.theme.js b/mkdru.theme.js index 7e660f6..034b403 100644 --- a/mkdru.theme.js +++ b/mkdru.theme.js @@ -17,30 +17,38 @@ Drupal.theme.prototype.mkdruResult = function(hit, num, detailLink) { return html; }; -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"] + ")" + + ' |