pull/461/head
reger24 3 years ago
parent 0e74b01dad
commit 0e4c93f02a

@ -109,8 +109,8 @@ function updatepage(str) {
<script type="text/javascript" src="js/accessibleHistogram.js" charset="UTF-8"></script> <script type="text/javascript" src="js/accessibleHistogram.js" charset="UTF-8"></script>
<div id="graph" style="height:200px"></div> <div id="graph" style="height:200px"></div>
<script> <script>
var solr= $.getJSON("solr/collection1/select?q=*:*&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=*:*&start=0&rows=0&wt=json&facet=true&facet.sort=index&facet.range=dates_in_content_dts&f.dates_in_content_dts.facet.range.start=NOW/DAY-99DAYS&f.dates_in_content_dts.facet.range.end=NOW/DAY%2B1DAY&f.dates_in_content_dts.facet.range.gap=%2B1DAY", function(data) {
dates_in_content_dts = data.facet_counts.facet_fields.dates_in_content_dts; dates_in_content_dts = data.facet_counts.facet_ranges.dates_in_content_dts.counts;
var parsed = []; var parsed = [];
for (var i = 0; i < dates_in_content_dts.length; i = i + 2) { for (var i = 0; i < dates_in_content_dts.length; i = i + 2) {
var date = dates_in_content_dts[i]; var date = dates_in_content_dts[i];

Loading…
Cancel
Save