From 1f54f75aa652d876e1e7a6f60b5c1ecf8d4f2e0b Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 27 Jun 2013 16:30:52 +0200 Subject: [PATCH] Better structure for termlist HTML. TERMLISTS heading renamed to Termlist --- experiments/spclient/mkws.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 8f106b0..fb40b8f 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", @@ -162,19 +162,26 @@ 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('
'); 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('
'); termlists.push('
' + M('Authors') + '
'); for (var i = 0; i < data.author.length && i < AuthorMax; i++ ) { termlists.push('' @@ -183,6 +190,8 @@ function my_onterm(data) { + data.author[i].freq + ')
'); } + termlists.push('
'); + var termlist = document.getElementById("termlist"); replaceHtml(termlist, termlists.join('')); } -- 1.7.10.4