-Drupal.theme.prototype.mkdruPager = function (data, curPage, pages) {
- var caption = '<hr/><div style="float: right">Displaying: '
- + (data.start + 1) + ' to ' + (data.start + data.num) +
- ' of ' + data.merged + ' (found: '
- + data.total + ')</div>';
+Drupal.theme.prototype.mkdruDetail = function(data) {
+ var html = '<div class="html" id="det_'+data.recid+'"><table>';
+ if (data["md-title"] != undefined) {
+ html += '<tr><td><b>Title</b></td><td><b>:</b> '+data["md-title"];
+ if (data["md-title-remainder"] !== undefined) {
+ html += ' : <span>' + data["md-title-remainder"] + ' </span>';
+ }
+ if (data["md-title-responsibility"] !== undefined) {
+ html += ' <span><i>'+ data["md-title-responsibility"] +'</i></span>';
+ }
+ html += '</td></tr>';
+ }
+ if (data["md-date"] != undefined)
+ html += '<tr><td><b>Date</b></td><td><b>:</b> ' + data["md-date"] + '</td></tr>';
+ if (data["md-author"] != undefined)
+ html += '<tr><td><b>Author</b></td><td><b>:</b> ' + data["md-author"] + '</td></tr>';
+ if (data["md-electronic-url"] != undefined)
+ html += '<tr><td><b>URL</b></td><td><b>:</b> <a href="' + data["md-electronic-url"] + '" target="_blank">' + data["md-electronic-url"] + '</a>' + '</td></tr>';
+ if (data["location"][0]["md-subject"] != undefined)
+ html += '<tr><td><b>Subject</b></td><td><b>:</b> ' + data["location"][0]["md-subject"] + '</td></tr>';
+ if (data["location"][0]["@name"] != undefined)
+ html += '<tr><td><b>Location</b></td><td><b>:</b> ' + data["location"][0]["@name"] + " (" +data["location"][0]["@id"] + ")" + '</td></tr>';
+ html += '</table></div>';
+ return html;
+};