Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DS-3272: Result count for XMLUI's usage stats is now a configurable option #1470

Closed
wants to merge 3 commits into from
Closed

Conversation

pgray64
Copy link

@pgray64 pgray64 commented Jul 21, 2016

Number of results displayed for XMLUI usage stats is now a configurable option in [dspace]/config/modules/usage-statistics.cfg. This was previously hardcoded in the Java source.

If no such option is specified, result count defaults to 10.

@@ -28,6 +28,8 @@ usage-statistics.authorization.admin.usage=true
usage-statistics.authorization.admin.search=true
#Workflow result statistics
usage-statistics.authorization.admin.workflow=true
#Number of results to show in statistics-home for usage stats
itemcount.usage = 10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be renamed usage-statistics.itemcount.usage to support the new DSpace 6 Configuration System: https://wiki.duraspace.org/display/DSDOC6x/Configuration+Reference

* @return number of results to display
*/
private int chooseResultCount() {
Integer numItems = ConfigurationManager.getIntProperty("usage-statistics", "itemcount.usage");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use ConfigurationService instead of ConfigurationManager to support the new DSpace 6 Configuration System: https://wiki.duraspace.org/display/DSDOC6x/Configuration+Reference

@tdonohue tdonohue changed the title Result count for XMLUI's usage stats is now a configurable option DS-3272: Result count for XMLUI's usage stats is now a configurable option Feb 3, 2017
@tdonohue
Copy link
Member

Closing as this PR must be recreated on dspace-6_x branch. XMLUI has been removed from master. See this mailing list notice: https://groups.google.com/d/msg/dspace-devel/aEFqSn46ryM/iPRr_IMLCwAJ

@tdonohue tdonohue closed this Feb 21, 2017
4science-it pushed a commit to 4Science/DSpace that referenced this pull request Jan 5, 2024
[DSC-1435] improve for email template for subscriptions_content and email about subscribed statistics update.

Approved-by: Daniele Ninfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants