mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
[DS-1291] Statistics no longer working.
This commit is contained in:
@@ -146,7 +146,7 @@ public class SolrLogger
|
|||||||
|
|
||||||
LookupService service = null;
|
LookupService service = null;
|
||||||
// Get the db file for the location
|
// Get the db file for the location
|
||||||
String dbfile = ConfigurationManager.getProperty("solr-statistics", "dbfile");
|
String dbfile = ConfigurationManager.getProperty("usage-statistics", "dbfile");
|
||||||
if (dbfile != null)
|
if (dbfile != null)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -298,6 +298,8 @@ public class SolrLogger
|
|||||||
|
|
||||||
// Save the location information if valid, save the event without
|
// Save the location information if valid, save the event without
|
||||||
// location information if not valid
|
// location information if not valid
|
||||||
|
if(locationService != null)
|
||||||
|
{
|
||||||
Location location = locationService.getLocation(ip);
|
Location location = locationService.getLocation(ip);
|
||||||
if (location != null
|
if (location != null
|
||||||
&& !("--".equals(location.countryCode)
|
&& !("--".equals(location.countryCode)
|
||||||
@@ -325,6 +327,7 @@ public class SolrLogger
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(dspaceObject != null){
|
if(dspaceObject != null){
|
||||||
doc1.addField("id", dspaceObject.getID());
|
doc1.addField("id", dspaceObject.getID());
|
||||||
|
Reference in New Issue
Block a user