--- /dev/null
+.mkdru-result-description {
+ font-size: 0.8em;
+}
+
+.mkdru-pager-container {
+ text-align: center;
+ background-color: #F6F6F2;
+ border-color: #F9F9F9;
+ padding: 3px 5px 3px 5px;
+}
+
+.mkdru-pager-inner-container {
+ border-top: 1px solid #D6D6D6;
+ border-bottom: 1px solid #D6D6D6;
+ padding: 5px 0px 5px 0px;
+}
+
+.mkdru-status-container {
+ background-color: #F6F6F2;
+ border-color: #F9F9F9;
+ padding: 3px 5px 3px 5px;
+}
+
+.mkdru-status-inner-container {
+ border-top: 1px solid #D6D6D6;
+ border-bottom: 1px solid #D6D6D6;
+ padding: 5px 0px 5px 0px;
+}
+
--- /dev/null
+name = Ding2-like mkdru theme
+description = Style metasearch results like the results from the data-well
+core = 7.x
+base theme = bartik
+
+stylesheets[all][] = css/mkdruding2.css
+
+regions[header] = Header
+regions[help] = Help
+regions[page_top] = Page top
+regions[page_bottom] = Page bottom
+regions[highlighted] = Highlighted
+
+regions[featured] = Featured
+regions[content] = Content
+regions[sidebar_first] = Sidebar first
+regions[sidebar_second] = Sidebar second
+
+regions[triptych_first] = Triptych first
+regions[triptych_middle] = Triptych middle
+regions[triptych_last] = Triptych last
+
+regions[footer_firstcolumn] = Footer first column
+regions[footer_secondcolumn] = Footer second column
+regions[footer_thirdcolumn] = Footer third column
+regions[footer_fourthcolumn] = Footer fourth column
+regions[footer] = Footer
--- /dev/null
+Drupal.theme.mkdruResult = function(hit, num, detailLink) {
+ var html = "";
+ html += '<li class="search-result" id="rec_' + hit.recid + '" >'
+ + '<h3 class="title">'
+ + '<a href="' + hit['location'][0]['md-electronic-url']
+ + '" target="_blank" >'
+ + hit["md-title"] + '</a></h3>';
+ html += '<div class="search-snippet-info">'
+ + '<p class="search-snippet"></p>'
+ + '<div class="ting-object clearfix">'
+ + '<div class="ting-overview clearfix">'
+ + '<div class="left-column left">'
+ + '<div class="picture"></div>'
+ + '</div>'
+ + '<div class="right-column left">';
+ if (hit["md-author"]) {
+ html += '<div class="creator"><span class="byline">By </span>'
+ + '<a class="author" href="/search/meta/'+hit['md-author']+'">'
+ + hit['md-author']+'</a>';
+ if (hit['md-date']) {
+ html += '<span class="date"> ('+hit['md-date']+')</span>';
+ }
+ html += '</div><p></p>';
+ }
+ html += "</div>";
+ if (hit["md-description"]) {
+ // limit description to 400 characters
+ html += hit["md-description"][0].substr(0, 400);
+ }
+ html += '</div>'
+ html += '</div>'
+ html += '</div>'
+ html += '</li>';
+ return html;
+};
--- /dev/null
+<?php
+function mkdruding2_preprocess_page(&$vars, $hook) {
+ //wouold be nice to include this only during search hook
+ drupal_add_js(drupal_get_path('theme', 'mkdruding2') . '/mkdruding2.js');
+}
+
--- /dev/null
+<div class="mkdru-detail"></div>
+<div class="mkdru-results">
+ <div class="mkdru-above mkdru-above-below mkdru-status-container">
+ <div class="mkdru-status-inner-container">
+ <span class="mkdru-counts"></span>
+ <span class="mkdru-status"></span>
+ </div>
+ </div>
+ <div class="mkdru-navi"></div>
+ <ul class="mkdru-result-list search-results">
+ </ul>
+ <div class="mkdru-below mkdru-above-below mkdru-pager-container">
+ <div class="mkdru-pager-inner-container">
+ <span class="mkdru-pager">
+ </span>
+ </div>
+ </div>
+</div>