Hi Mike,

2014-04-29 20:04 GMT+09:00 Michael White <[email protected]>:
> Hi,
>
> DSpace 4.1, JSPUI . . .
>
> I'm trying to switch off the SOLR stats links for "non-admin" users - I've 
> checked "usage-statistics.cfg" and see:
>
> #View/download statistics
> authorization.admin.usage=true
> #Search/search result statistics
> authorization.admin.search=true
> #Workflow result statistics
> authorization.admin.workflow=true

Now JSPUI does not support last two kind of properties and
supports only authorization.admin.usage and "authorization.admin"
is used as the name of the property instead.

This seems a bug of JSPUI, so we should change the code,
DisplayStatisticsServlet.java, but temporarily you can set

authorization.admin = true

to hide usage statistics from anonymous users in the "usage-statistics.cfg".

> - but the stats download icons are still visible, and stats are available 
> behind them, even when not logged in (following several rebuilds and tomcat 
> restarts etc) . . .

The stats download icons are now alway visible in JSPUI. If you want to hide
it from anonymous users, add the "if-clause" to the line 262 in
dspace/webapps/jspui/display-item.jsp as follows:

<%
    if (admin_button ||
!ConfigurationManager.getBooleanProperty("usage-statistics",
"authorization.admin", true)) {
%>
<a class="statisticsLink btn btn-primary" href="<%=
request.getContextPath() %>/handle/<%= handle
%>/statistics"><fmt:message
key="jsp.display-item.display-statistics"/></a>
<%
}
%>


> Have I missed something? or am I doing something stupid? Anyone else 
> successfully turned these off in DSpace 4.1/JSPUI?
>
> Any pointers, suggestions etc welcome :-)
>
> Cheers,
>
> Mike
>
> Michael White
> eLearning Liaison and Development (eLD)
> Information Services
> S8, Library
> University of Stirling
> Stirling SCOTLAND
> FK9 4LA
> Email: [email protected]
> Tel: +44 (0) 1786 466877
> Fax: +44 (0) 1786 466880
> http://www.stir.ac.uk/is/staff/about/teams/aldt/#eld
>
>
>
> --
> The University of Stirling has been ranked in the top 12 of UK universities 
> for graduate employment*.
> 94% of our 2012 graduates were in work and/or further study within six months 
> of graduation.
> *The Telegraph
> The University of Stirling is a charity registered in Scotland, number SC 
> 011159.
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Regards,
Keiji Suzuki

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to