From: Mike Taylor Date: Thu, 23 Jan 2014 16:24:06 +0000 (+0000) Subject: Eliminate used-once constants m_SourceMax, m_SubjectMax and m_AuthorMax. X-Git-Tag: 1.0.0~1636 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;ds=sidebyside;h=36a6ecc83073a4700b45a5b5ea9d089dad05350a;p=mkws-moved-to-github.git Eliminate used-once constants m_SourceMax, m_SubjectMax and m_AuthorMax. We'll do facet-list length properly later. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 8b8ff07..7b0556d 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -151,9 +151,6 @@ function _make_mkws_team($, teamName) { var m_curDetRecId = ''; var m_curDetRecData = null; var m_submitted = false; - var m_SourceMax = 16; - var m_SubjectMax = 10; - var m_AuthorMax = 10; var m_query; // initially undefined var m_debug_time = { // Timestamps for logging @@ -366,11 +363,11 @@ function _make_mkws_team($, teamName) { for(var i = 0; i < facets.length; i++) { if (facets[i] == "sources") { - add_single_facet(acc, "Sources", data.xtargets, m_SourceMax, null); + add_single_facet(acc, "Sources", data.xtargets, 16, null); } else if (facets[i] == "subjects") { - add_single_facet(acc, "Subjects", data.subject, m_SubjectMax, "subject"); + add_single_facet(acc, "Subjects", data.subject, 10, "subject"); } else if (facets[i] == "authors") { - add_single_facet(acc, "Authors", data.author, m_AuthorMax, "author"); + add_single_facet(acc, "Authors", data.author, 10, "author"); } else { alert("bad facet configuration: '" + facets[i] + "'"); }