There is a bug in DSpace 1.5.1 that prevents the reports from being
viewed, you need to apply the following patch to fix the problem. Once
that is fixed you need to run stat-initial, then periodically run stat-
general and stat-monthly. You do not need to run the report scripts.
Index: dspace-api/src/main/java/org/dspace/app/statistics/
LogAnalyser.java
===================================================================
--- dspace-api/src/main/java/org/dspace/app/statistics/
LogAnalyser.java (revision 1349)
+++ dspace-api/src/main/java/org/dspace/app/statistics/
LogAnalyser.java (revision 1350)
@@ -224,7 +224,8 @@
////////////////////////
/** the log directory to be analysed */
- private static String logDir =
ConfigurationManager.getProperty("log.dir");
+ private static String logDir =
ConfigurationManager.getProperty("dspace.dir") +
+ File.separator + "log";;
/** the regex to describe the file name format */
private static String fileTemplate = "dspace\\.log.*";
Index: dspace-api/src/main/java/org/dspace/app/statistics/
StatisticsLoader.java
===================================================================
--- dspace-api/src/main/java/org/dspace/app/statistics/
StatisticsLoader.java (revision 1349)
+++ dspace-api/src/main/java/org/dspace/app/statistics/
StatisticsLoader.java (revision 1350)
@@ -352,7 +367,7 @@
*/
private static File[] getAnalysisAndReportFileList()
{
- File reportDir = new
File(ConfigurationManager.getProperty("report.dir"));
+ File reportDir = new
File(ConfigurationManager.getProperty("log.dir"));
if (reportDir != null)
{
return reportDir.listFiles(new AnalysisAndReportFilter());
On Mar 4, 2009, at 3:37 PM, Floyd, Randall Dean wrote:
> Hi all,
>
> Does anybody have the standard packaged stats reporting working within
> XMLUI? I can't see any reports. I am logged in as admin, but all it
> ever says is 'No reports currently available'. I have followed the
> directions exactly to use the new Java-based stats generators (vs, the
> Perl-based ones). I know I have this configured correctly because
> when
> I run all the required scripts I get exactly what I expect, which is
> correctly named and formatted *.dat files in my log directory, and the
> corresponding HTML files in reports. Upon visual inspection, all of
> these files contain reasonably accurate data.
>
> From looking at StatisticsViewer.java it appears that the XMLUI
> version does not use the HTML reports and instead uses the DSpace
> stats
> APIs directly. In my case, the result of instantiating the log data
> returns null and just falls through to the 'no reports' messages. It
> stands to reason to me that if the command-line analyzers can produce
> accurate HTML reports from the data files, then the XMLUI should be
> able to. Am I missing a step? What is the XMLUI looking for that it
> can't find?
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source
> code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech