From 8a1097f14005cfacb3c4ac1cdc5aaaba306bf971 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 1 Jul 2013 17:12:35 +0100 Subject: [PATCH] Rename variable. --- experiments/spclient/mkws.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 105c702..45c6b28 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -167,24 +167,24 @@ function my_onterm(data) { // display if we first got results $("#termlist").parent().show(); - var termlists = []; - termlists.push('
' + M('Termlists') + '
'); + var acc = []; + acc.push('
' + M('Termlists') + '
'); var facets = mkws_config.facets; for(var i = 0; i < facets.length; i++) { if (facets[i] == "sources") { - add_single_facet(termlists, "Sources", data.xtargets, SourceMax, null); + add_single_facet(acc, "Sources", data.xtargets, SourceMax, null); } else if (facets[i] == "subjects") { - add_single_facet(termlists, "Subjects", data.subject, SubjectMax, "su"); + add_single_facet(acc, "Subjects", data.subject, SubjectMax, "su"); } else if (facets[i] == "authors") { - add_single_facet(termlists, "Authors", data.author, AuthorMax, "au"); + add_single_facet(acc, "Authors", data.author, AuthorMax, "au"); } else { alert("bad facet configuration: '" + facets[i] + "'"); } } var termlist = document.getElementById("termlist"); - replaceHtml(termlist, termlists.join('')); + replaceHtml(termlist, acc.join('')); } function add_single_facet(acc, caption, data, max, cclIndex) { -- 1.7.10.4