Merge branch 'w2p-67668_Porting-IRUS-patch-to-DSpace-7' of https://github.com/atmire/DSpace into w2p-67668_Porting-IRUS-patch-to-DSpace-7

This commit is contained in:
Yana De Pauw
2020-02-05 12:01:37 +01:00
4 changed files with 22 additions and 20 deletions

View File

@@ -70,8 +70,6 @@
additivity='false'>
<AppenderRef ref='A2'/>
</logger>
<logger name='org.dspace.statistics.export.ExportUsageEventListener' level='DEBUG' />
# Block services logging except on exceptions
<logger name='org.dspace.kernel'

View File

@@ -12,7 +12,7 @@
# This lists a comma separated list of values that will be excluded for the given field.
# stats.tracker.type-value = Article, Postprint
# This lists a comma separated list of entity that will be included
# This lists a comma separated list of entities that will be included
# When no list is provided, the default value "Publication" will be used
# stats.tracker.entity-types = Publication
@@ -27,13 +27,12 @@ stats.tracker.produrl = https://irus.jisc.ac.uk/counter/
# Identifies data as OpenURL 1.0
stats.tracker.urlversion = Z39.88-2004
# The deployed user interface should be provided to build correct links to files.
# The dspace.type field can be set to either "xmlui" or "jspui".
stats.dspace.type = xmlui
# Add the agentregex configuration below uncommented to local.cfg to include the bot agents list by
# Project COUNTER when filtering bots in DSpace. The agents file is downloaded by the Apache ant
# stage of the build process.
# Spider options
stats.spider.ipmatch.enabled = true
stats.spider.agentempty.enabled = false
stats.spider.agentregex.enabled = true
# Default is downloaded during build: ${dspace.dir}/config/COUNTER_Robots_list.txt
stats.spider.agentregex.regexfile = ${dspace.dir}/config/COUNTER_Robots_list.txt
# Location of the COUNTER agents file
# stats.spider.agentregex.regexfile = ${dspace.dir}/config/spiders/agents/COUNTER_Robots_list.txt
# External URL to COUNTER the agents file
# stats.spider.agentregex.url = https://raw.githubusercontent.com/atmire/COUNTER-Robots/master/generated/COUNTER_Robots_list.txt

View File

@@ -22,8 +22,8 @@
</bean>
<!-- Irus statistics tracking -->
<bean class="org.dspace.statistics.export.ExportUsageEventListener">
<property name="eventService" ref="org.dspace.services.EventService"/>
</bean>
<!-- <bean class="org.dspace.statistics.export.ExportUsageEventListener">-->
<!-- <property name="eventService" ref="org.dspace.services.EventService"/>-->
<!-- </bean>-->
</beans>

View File

@@ -926,15 +926,20 @@ You may manually install this file by following these steps:
<!-- installs and/or updates Project Counter Robot List resolution database -->
<target name="update_spiders">
<echo>Downloading: https://raw.githubusercontent.com/atmire/COUNTER-Robots/master/generated/COUNTER_Robots_list.txt</echo>
<get src="https://raw.githubusercontent.com/atmire/COUNTER-Robots/master/generated/COUNTER_Robots_list.txt" dest="${dspace.dir}/config/COUNTER_Robots_list.txt" verbose="true" />
<echo>Downloading: ${stats.spider.agentregex.url}</echo>
<get src="${stats.spider.agentregex.url}" dest="${stats.spider.agentregex.regexfile}" verbose="true" />
</target>
<target name="check_spiders">
<condition property="need.spiders">
<not>
<available file="${dspace.dir}/config/COUNTER_Robots_list.txt" />
</not>
<and>
<not>
<available file="${stats.spider.agentregex.regexfile}" />
</not>
<not>
<contains string="${stats.spider.agentregex.url}" substring="stats.spider.agentregex.url"/>
</not>
</and>
</condition>
</target>