Project

General

Profile

« Previous | Next » 

Revision 9696

Added by Jing Tao over 8 years ago

Add a new copy from d1_cn_index_processor.

View differences:

metacat-index/src/main/resources/application-context-isotc211-base.xml
46 46
			value="(//gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString/text())[1]" />
47 47
	</bean>
48 48
	
49
	<!-- index only the individualName (not organisationName) if there is a valid role -->
50
	<!-- valid roles: "owner", "originator", "principalInvestigator", "author" -->
51
	<!-- or -->
52
	<!-- index the organisationName the role is valid but no individualName is specified -->
49 53
	<bean id="isotc.origin" class="org.dataone.cn.indexer.parser.SolrField">
50 54
		<constructor-arg name="name" value="origin" />
51 55
		<constructor-arg name="xpath" 
52
			value='//gmd:CI_ResponsibleParty/gmd:individualName/gco:CharacterString/text() | //gmd:CI_ResponsibleParty/gmd:individualName/gmx:Anchor/text() | //gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString/text()' />
56
			value='//gmd:CI_ResponsibleParty[gmd:role/gmd:CI_RoleCode/text() = "owner" or gmd:role/gmd:CI_RoleCode/text() = "originator" or gmd:role/gmd:CI_RoleCode/text() = "principalInvestigator" or gmd:role/gmd:CI_RoleCode/text() = "author"]/gmd:individualName/gco:CharacterString/text() | //gmd:CI_ResponsibleParty[(gmd:role/gmd:CI_RoleCode/text() = "owner" or gmd:role/gmd:CI_RoleCode/text() = "originator" or gmd:role/gmd:CI_RoleCode/text() = "principalInvestigator" or gmd:role/gmd:CI_RoleCode/text() = "author") and (not(gmd:individualName) or gmd:individualName[@gco:nilReason = "missing"])]/gmd:organisationName/gco:CharacterString/text()' />
53 57
		<property name="multivalue" value="true" />
54 58
		<property name="dedupe" value="true" />
55 59
	</bean>

Also available in: Unified diff