Re: [Dspace-tech] Switch off SOLR stats?
Hi Keiji, 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. Excellent, many thanks, that worked perfectly :-) 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: Thanks again - this also worked as hoped/expected and removed the stats download icon from the item display page(s). For completeness, I also added a similar if-clause to the Community and Collection homepages (community-home.jsp and collection-home.jsp) in order to hide the stats download icon on these pages as well. So I've now successfully turned off the SOLR stats in my DSpace 4.1 DEV system :-) Thank you very much for the explanation of the issue and for the proposed solution which worked perfectly - your help is very much appreciated :-) Kind regards, Mike Michael White eLearning Liaison and Development (eLD) Information Services S8, Library University of Stirling Stirling SCOTLAND FK9 4LA Email: michael.wh...@stir.ac.uk Tel: +44 (0) 1786 466877 Fax: +44 (0) 1786 466880 http://www.stir.ac.uk/is/staff/about/teams/aldt/#eld -Original Message- From: zuki.ebe...@gmail.com [mailto:zuki.ebe...@gmail.com] On Behalf Of SUZUKI Keiji Sent: 30 April 2014 04:36 To: Michael White Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Switch off SOLR stats? Hi Mike, 2014-04-29 20:04 GMT+09:00 Michael White michael.wh...@stir.ac.uk: 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 %/statisticsfmt: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: michael.wh...@stir.ac.uk 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette Regards, Keiji Suzuki -- 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
[Dspace-tech] Switch off SOLR stats?
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 - 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) . . . 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: michael.wh...@stir.ac.uk 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Switch off SOLR stats?
Hi Mike, 2014-04-29 20:04 GMT+09:00 Michael White michael.wh...@stir.ac.uk: 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 %/statisticsfmt: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: michael.wh...@stir.ac.uk 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 DSpace-tech@lists.sourceforge.net 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette