X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.theme.js;h=92e1340dc4414f9a33827a364c481fb7983683d5;hb=05b3feee2f6f96ebe32f5c4bcc84b04f9fee559b;hp=800f2b3fcb953f13101a3918f40843ea55b3dbd8;hpb=aa8e1fdaaa759602a95aa4cdd9186d209ae8abe6;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.theme.js b/mkdru.theme.js index 800f2b3..92e1340 100644 --- a/mkdru.theme.js +++ b/mkdru.theme.js @@ -1,8 +1,8 @@ -Drupal.theme.prototype.mkdruResult = function(hit, num) { +Drupal.theme.prototype.mkdruResult = function(hit, num, detailLink) { var html = ""; 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 + '
' + + '' + Drupal.t('Show all...') + '
'; + } }; -Drupal.theme.prototype.mkdruTerm = function (term, freq, linkClass, id) { - var html = '' + term + ' (' + freq + ')