X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=experiments%2Fspclient%2Fmkws.js;h=6bc3a30790c8cb148932221fa555eaec69f8c942;hb=3c47d3fe9fecf21d12f38f6dda73c1b7e5ff2c49;hp=5db9f7e86ec88b483baa1be6bd4811b9bbf3fc76;hpb=dec2efeac34c321727cd999f2c72606ab1f2854f;p=mkws-moved-to-github.git
diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js
index 5db9f7e..6bc3a30 100644
--- a/experiments/spclient/mkws.js
+++ b/experiments/spclient/mkws.js
@@ -30,7 +30,7 @@ var mkws_locale_lang = {
"Authors": "Autoren",
"Subjects": "Schlagwörter",
"Sources": "Daten und Quellen",
- "TERMLISTS": "Termlisten",
+ "Termlists": "Termlisten",
"Next": "Weiter",
"Prev": "Zurück",
"Search": "Suche",
@@ -54,7 +54,7 @@ var mkws_locale_lang = {
"Authors": "Forfattere",
"Subjects": "Emner",
"Sources": "Kilder",
- "TERMLISTS": "TERMLISTS",
+ "Termlists": "Termlists",
"Next": "Næste",
"Prev": "Forrige",
"Search": "Søg",
@@ -150,11 +150,11 @@ function my_onstat(data) {
if (stat == null)
return;
- stat.innerHTML = 'STATUS INFO -- Active clients: '
- + data.activeclients
- + '/' + data.clients + ' -- '
- + 'Retrieved records: ' + data.records
- + '/' + data.hits + ' :.';
+ stat.innerHTML = 'Status info' +
+ ' -- ' +
+ '' + data.activeclients + '/' + data.clients + '' +
+ ' -- ' +
+ '' + data.records + '/' + data.hits + '';
}
function my_onterm(data) {
@@ -162,20 +162,27 @@ function my_onterm(data) {
return;
var termlists = [];
- termlists.push('
' + M('TERMLISTS') + ':
' + M('Sources') + '
');
+ termlists.push('' + M('Termlists') + '
');
+
+ termlists.push('');
+ termlists.push('
' + M('Sources') + '
');
for (var i = 0; i < data.xtargets.length && i < SourceMax; i++ ) {
termlists.push('
' + data.xtargets[i].name
+ ' (' + data.xtargets[i].freq + ')');
}
+ termlists.push('
');
- termlists.push('
' + M('Subjects') + '
');
+ termlists.push('');
+ termlists.push('
' + M('Subjects') + '
');
for (var i = 0; i < data.subject.length && i < SubjectMax; i++ ) {
termlists.push('
' + data.subject[i].name + ' ('
+ data.subject[i].freq + ')');
}
+ termlists.push('
');
- termlists.push('
' + M('Authors') + '
');
+ termlists.push('');
+
var termlist = document.getElementById("termlist");
replaceHtml(termlist, termlists.join(''));
}
@@ -370,15 +379,23 @@ function switchView(view) {
var targets = document.getElementById('mkwsTargets');
var records = document.getElementById('mkwsRecords');
+ var blanket = document.getElementById('mkwsBlanket');
switch(view) {
case 'targets':
targets.style.display = "block";
records.style.display = "none";
+ if (blanket) { blanket.style.display = "none"; }
break;
case 'records':
targets.style.display = "none";
records.style.display = "block";
+ if (blanket) { blanket.style.display = "block"; }
+ break;
+ case 'none':
+ targets.style.display = "none";
+ records.style.display = "none";
+ if (blanket) { blanket.style.display = "none"; }
break;
default:
alert('Unknown view.');
@@ -513,7 +530,7 @@ function mkws_html_all(config) {
\
\
\
|