mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +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
|
||||
.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 !
|
||||
statisticYearCores.add(((HttpSolrClient) solr)
|
||||
.getBaseURL()
|
||||
|
Reference in New Issue
Block a user