mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 06:53:09 +00:00
Fix #8933: Only add the base statistic core if it hasn't already been added
This commit is contained in:
@@ -1691,6 +1691,14 @@ public class SolrLoggerServiceImpl implements SolrLoggerService, InitializingBea
|
|||||||
statisticYearCores
|
statisticYearCores
|
||||||
.add(baseSolrUrl.replace("http://", "").replace("https://", "") + statCoreName);
|
.add(baseSolrUrl.replace("http://", "").replace("https://", "") + statCoreName);
|
||||||
}
|
}
|
||||||
|
var baseCore = ((HttpSolrClient) solr)
|
||||||
|
.getBaseURL()
|
||||||
|
.replace("http://", "")
|
||||||
|
.replace("https://", "");
|
||||||
|
if (!statisticYearCores.contains(baseCore)) {
|
||||||
|
//Also add the core containing the current year, if it hasn't been added already
|
||||||
|
statisticYearCores.add(baseCore);
|
||||||
|
}
|
||||||
//Also add the core containing the current year !
|
//Also add the core containing the current year !
|
||||||
statisticYearCores.add(((HttpSolrClient) solr)
|
statisticYearCores.add(((HttpSolrClient) solr)
|
||||||
.getBaseURL()
|
.getBaseURL()
|
||||||
|
Reference in New Issue
Block a user