summaryrefslogtreecommitdiff
path: root/htroot/ConfigSearchPage_p.html
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2017-09-25 09:19:08 +0200
committerluccioman <luccioman@users.noreply.github.com>2017-09-25 09:19:08 +0200
commitef8aea7f8db9222ba437cd3ab28e330fd622ff92 (patch)
tree07371b5cb1ac710cc228769635e2da609d5e0bb3 /htroot/ConfigSearchPage_p.html
parent0b0980b36409168725aef3de787d97ae01e06b70 (diff)
Made the dates navigator max elements number user configurable.
Also used object properties on QueryParams instances, rather than using mutable class (static) properties.
Diffstat (limited to 'htroot/ConfigSearchPage_p.html')
-rw-r--r--htroot/ConfigSearchPage_p.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/htroot/ConfigSearchPage_p.html b/htroot/ConfigSearchPage_p.html
index 7bd5b4eab..a95ab21ee 100644
--- a/htroot/ConfigSearchPage_p.html
+++ b/htroot/ConfigSearchPage_p.html
@@ -179,13 +179,16 @@
<input type="checkbox" name="search.navigation.date" value="true" #(search.navigation.date)#::checked="checked" #(/search.navigation.date)# /> Date Navigation
+ <label title="Maximum days number in the histogram. Beware that a large value may trigger high CPU loads both on the server and on the browser with large result sets.">Maximum range (in days)
+ <input type="number" name="search.navigation.dates.maxcount" value="#[search.navigation.dates.maxcount]#" min="6" max="2147483647"/>
+ </label>
<link rel="stylesheet" href="env/morris.css">
<script src="js/raphael.min.js"></script>
<script src="js/morris.js"></script>
<script type="text/javascript" src="js/accessibleHistogram.js" charset="UTF-8"></script>
<div id="graph" style="height:200px"></div>
<script>
-var solr= $.getJSON("solr/collection1/select?q=*:*&defType=edismax&start=0&rows=0&wt=json&facet=true&facet.field=dates_in_content_dts&facet.sort=index", function(data) {
+var solr= $.getJSON("solr/collection1/select?q=*:*&defType=edismax&start=0&rows=0&wt=json&facet=true&facet.field=dates_in_content_dts&facet.sort=index&facet.limit=#[search.navigation.dates.maxcount]#", function(data) {
dates_in_content_dts = data.facet_counts.facet_fields.dates_in_content_dts;
var parsed = [];
for (var i = 0; i < dates_in_content_dts.length; i = i + 2) {