Lots more styling for MKWS elements.
[mkws-moved-to-github.git] / experiments / spclient / mkws.js
index fb40b8f..6bc3a30 100644 (file)
@@ -164,7 +164,7 @@ function my_onterm(data) {
     var termlists = [];
     termlists.push('<div class="title">' + M('Termlists') + '</div>');
 
-    termlists.push('<div class="termlist">');
+    termlists.push('<div class="facet">');
     termlists.push('<div class="termtitle">' + M('Sources') + '</div>');
     for (var i = 0; i < data.xtargets.length && i < SourceMax; i++ ) {
         termlists.push('<a href="#" target_id='+data.xtargets[i].id
@@ -173,16 +173,16 @@ function my_onterm(data) {
     }
     termlists.push('</div>');
 
-    termlists.push('<div class="termlist">');
-    termlists.push('<hr/><div class="termtitle">' + M('Subjects') + '</div>');
+    termlists.push('<div class="facet">');
+    termlists.push('<div class="termtitle">' + M('Subjects') + '</div>');
     for (var i = 0; i < data.subject.length && i < SubjectMax; i++ ) {
         termlists.push('<a href="#" onclick="limitQuery(\'su\', this.firstChild.nodeValue);return false;">' + data.subject[i].name + '</a><span>  ('
               + data.subject[i].freq + ')</span><br/>');
     }
     termlists.push('</div>');
 
-    termlists.push('<div class="termlist">');
-    termlists.push('<hr/><div class="termtitle">' + M('Authors') + '</div>');
+    termlists.push('<div class="facet">');
+    termlists.push('<div class="termtitle">' + M('Authors') + '</div>');
     for (var i = 0; i < data.author.length && i < AuthorMax; i++ ) {
         termlists.push('<a href="#" onclick="limitQuery(\'au\', this.firstChild.nodeValue);return false;">'
                             + data.author[i].name
@@ -530,7 +530,7 @@ function mkws_html_all(config) {
           <td valign="top">\
             <div id="ranking">\
               <form name="select" id="select" action="" >\
-        ' + M('Sort by') + mkws_html_sort(config) + '\
+        ' + M('Sort by') + ' ' + mkws_html_sort(config) + '\
         ' + M('and show') + ' ' + mkws_html_perpage(config) + '\
         ' + M('per page') + '.\
        </form>\