Project

General

Profile

1
<beans xmlns="http://www.springframework.org/schema/beans"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
4
	<bean id="xpath_system_metadata_100" class="java.util.ArrayList">
5
		<constructor-arg>
6
			<list>
7
				<bean class="org.dataone.cn.indexer.parser.SolrField">
8
					<constructor-arg name="name" value="id" />
9
					<constructor-arg name="xpath"
10
						value="/d100:systemMetadata/identifier/text()" />
11
				</bean>
12
				
13
				<bean class="org.dataone.cn.indexer.parser.SolrField">
14
					<constructor-arg name="name" value="formatId" />
15
					<constructor-arg name="xpath"
16
						value="/d100:systemMetadata/formatId/text()" />
17
				</bean>
18
				
19
				<bean class="org.dataone.cn.indexer.parser.SolrField">
20
					<constructor-arg name="name" value="formatType" />
21
					<constructor-arg name="xpath" value="/d100:systemMetadata/formatId/text()" />
22
					<property name="converter" ref="formatIdToFormatTypeConverter" />
23
				</bean>
24
				
25
				<bean class="org.dataone.cn.indexer.parser.SolrField">
26
					<constructor-arg name="name" value="size" />
27
					<constructor-arg name="xpath"
28
						value="/d100:systemMetadata/size/text()" />
29
				</bean>
30
				
31
				<bean class="org.dataone.cn.indexer.parser.SolrField">
32
					<constructor-arg name="name" value="checksum" />
33
					<constructor-arg name="xpath"
34
						value="/d100:systemMetadata/checksum/text()" />
35
				</bean>
36
				
37
				<bean class="org.dataone.cn.indexer.parser.SolrField">
38
					<constructor-arg name="name" value="submitter" />
39
					<constructor-arg name="xpath"
40
						value="/d100:systemMetadata/submitter/text()" />
41
				</bean>
42
				
43
				<bean class="org.dataone.cn.indexer.parser.SolrField">
44
					<constructor-arg name="name" value="checksumAlgorithm" />
45
					<constructor-arg name="xpath"
46
						value="/d100:systemMetadata/checksum/@algorithm" />
47
				</bean>
48
				
49
				<bean class="org.dataone.cn.indexer.parser.SolrField">
50
					<constructor-arg name="name" value="rightsHolder" />
51
					<constructor-arg name="xpath"
52
						value="/d100:systemMetadata/rightsHolder/text()" />
53
				</bean>
54

    
55
				<bean class="org.dataone.cn.indexer.parser.SolrField">
56
					<constructor-arg name="name" value="replicationAllowed" />
57
					<constructor-arg name="xpath"
58
						value="/d100:systemMetadata/replicationPolicy/@replicationAllowed" />
59
				</bean>
60
				
61
				<bean class="org.dataone.cn.indexer.parser.SolrField">
62
					<constructor-arg name="name" value="numberReplicas" />
63
					<constructor-arg name="xpath"
64
						value="/d100:systemMetadata/replicationPolicy/@numberReplicas" />
65
				</bean>
66

    
67
				<bean class="org.dataone.cn.indexer.parser.SolrField">
68
					<constructor-arg name="name" value="preferredReplicationMN" />
69
					<constructor-arg name="xpath"
70
						value="/d100:systemMetadata/replicationPolicy/preferredMemberNode/text()" />
71
					<property name="multivalue" value="true" />
72
				</bean>
73
				
74
				<bean class="org.dataone.cn.indexer.parser.SolrField">
75
					<constructor-arg name="name" value="blockedReplicationMN" />
76
					<constructor-arg name="xpath"
77
						value="/d100:systemMetadata/replicationPolicy/blockedMemberNode/text()" />
78
					<property name="multivalue" value="true" />
79
				</bean>
80
				
81
				<bean class="org.dataone.cn.indexer.parser.SolrField">
82
					<constructor-arg name="name" value="obsoletes" />
83
					<constructor-arg name="xpath"
84
						value="/d100:systemMetadata/obsoletes/text()" />
85
				</bean>
86

    
87
				<bean class="org.dataone.cn.indexer.parser.SolrField">
88
					<constructor-arg name="name" value="obsoletedBy" />
89
					<constructor-arg name="xpath"
90
						value="/d100:systemMetadata/obsoletedBy/text()" />
91
				</bean>
92

    
93
				<bean class="org.dataone.cn.indexer.parser.SolrField">
94
					<constructor-arg name="name" value="dateUploaded" />
95
					<constructor-arg name="xpath"
96
						value="/d100:systemMetadata/dateUploaded/text()" />
97
					<property name="converter" ref="dateConverter" />
98
				</bean>
99

    
100
				<bean class="org.dataone.cn.indexer.parser.SolrField">
101
					<constructor-arg name="name" value="dateModified" />
102
					<constructor-arg name="xpath"
103
						value="/d100:systemMetadata/dateSysMetadataModified/text()" />
104
					<property name="converter" ref="dateConverter" />
105
				</bean>
106
				
107
				<bean class="org.dataone.cn.indexer.parser.SolrField">
108
					<constructor-arg name="name" value="datasource" />
109
					<constructor-arg name="xpath"
110
						value="/d100:systemMetadata/originMemberNode/text()" />
111
				</bean>
112

    
113
				<bean class="org.dataone.cn.indexer.parser.SolrField">
114
					<constructor-arg name="name" value="authoritativeMN" />
115
					<constructor-arg name="xpath"
116
						value="/d100:systemMetadata/authoritativeMemberNode/text()" />
117
				</bean>
118

    
119
				<bean class="org.dataone.cn.indexer.parser.SolrField">
120
					<constructor-arg name="name" value="replicaMN" />
121
					<constructor-arg name="xpath"
122
						value="/d100:systemMetadata/replica/replicaMemberNode/text()" />
123
					<property name="multivalue" value="true" />
124
				</bean>
125
				
126
				<bean class="org.dataone.cn.indexer.parser.SolrField">
127
					<constructor-arg name="name" value="replicaVerifiedDate" />
128
					<constructor-arg name="xpath"
129
						value="/d100:systemMetadata/replica/replicaVerified/text()" />
130
					<property name="multivalue" value="true" />
131
					<property name="converter" ref="dateConverter" />
132
				</bean>
133
				
134
				<bean class="org.dataone.cn.indexer.parser.SolrField">
135
					<constructor-arg name="name" value="readPermission" />
136
					<constructor-arg name="xpath"
137
						value="/d100:systemMetadata/accessPolicy/allow[permission= 'read']/subject/text()" />
138
					<property name="multivalue" value="true" />
139
					<property name="dedupe" value="true" />
140
				</bean>
141

    
142
				<bean class="org.dataone.cn.indexer.parser.SolrField">
143
					<constructor-arg name="name" value="writePermission" />
144
					<constructor-arg name="xpath"
145
						value="/d100:systemMetadata/accessPolicy/allow[permission= 'write']/subject/text()" />
146
					<property name="multivalue" value="true" />
147
					<property name="dedupe" value="true" />
148
				</bean>
149
				
150
				<bean class="org.dataone.cn.indexer.parser.SolrField">
151
					<constructor-arg name="name" value="changePermission" />
152
					<constructor-arg name="xpath"
153
						value="/d100:systemMetadata/accessPolicy/allow[permission= 'changePermission']/subject/text()" />
154
					<property name="multivalue" value="true" />
155
					<property name="dedupe" value="true" />
156
				</bean>
157

    
158
				<bean class="org.dataone.cn.indexer.parser.SolrField">
159
					<constructor-arg name="name" value="isPublic" />
160
					<constructor-arg name="xpath"
161
						value="/d100:systemMetadata/accessPolicy/allow[permission= 'read']/subject[text()='public']/text()" />
162
					<property name="converter" ref="booleanPublicConverter" />
163
				</bean>
164

    
165
		        <bean class="org.dataone.cn.indexer.parser.ResolveSolrField">
166
					<constructor-arg name="name" value="dataUrl" />
167
		        </bean>
168
			</list>
169
		</constructor-arg>
170
	</bean>
171
</beans>
(16-16/17)