Revision 8127
Added by Jing Tao over 11 years ago
metacat-index/src/main/resources/application-context-fgdc-std-0011-1999.xml | ||
---|---|---|
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 |
|
|
5 |
<bean id="fgdcstd00111999Subprocessor" |
|
6 |
class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor"> |
|
7 |
<property name="matchDocument" |
|
8 |
value="/d100:systemMetadata/formatId[text() = 'FGDC-STD-001.1-1999']"></property> |
|
9 |
<property name="fieldList"> |
|
10 |
<list> |
|
11 |
<ref bean="fgdc.abstract" /> |
|
12 |
<ref bean="fgdc.beginDate"/> |
|
13 |
<ref bean="fgdc.class" /> |
|
14 |
<ref bean="fgdc.contactOrganization"/> |
|
15 |
<ref bean="fgdc.eastBoundCoord"/> |
|
16 |
<ref bean="fgdc.westBoundCoord" /> |
|
17 |
<ref bean="fgdc.northBoundCoord" /> |
|
18 |
<ref bean="fgdc.southBoundCoord" /> |
|
19 |
<ref bean="fgdc.edition" /> |
|
20 |
<ref bean="fgdc.endDate" /> |
|
21 |
<ref bean="fgdc.gcmdKeyword"/> |
|
22 |
<ref bean="fgdc.keywords"/> |
|
23 |
<ref bean="fgdc.geoform" /> |
|
24 |
<ref bean="fgdc.genus" /> |
|
25 |
<ref bean="fgdc.kingdom" /> |
|
26 |
<ref bean="fgdc.order" /> |
|
27 |
<ref bean="fgdc.phylum" /> |
|
28 |
<ref bean="fgdc.species" /> |
|
29 |
<ref bean="fgdc.origin" /> |
|
30 |
<ref bean="fgdc.placeKey" /> |
|
31 |
<ref bean="fgdc.pubDate" /> |
|
32 |
<ref bean="fgdc.purpose" /> |
|
33 |
<ref bean="fgdc.title" /> |
|
34 |
<ref bean="fgdc.web_url" /> |
|
35 |
<ref bean="fgdc.fileID" /> |
|
36 |
<ref bean="fgdc.fullText" /> |
|
37 |
<ref bean="fgdc.presentationCat" /> |
|
38 |
<ref bean="fgdc.author"/> |
|
39 |
<ref bean="fgdc.investigator" /> |
|
40 |
<ref bean="fgdc.site" /> |
|
41 |
</list> |
|
42 |
</property> |
|
43 |
</bean> |
|
44 |
</beans> |
metacat-index/src/main/resources/application-context-fgdc-std-0012-1999.xml | ||
---|---|---|
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 |
|
|
5 |
<bean id="fgdcstd00121999Subprocessor" |
|
6 |
class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor"> |
|
7 |
<property name="matchDocument" |
|
8 |
value="/d100:systemMetadata/formatId[text() = 'FGDC-STD-001.2-1999']"></property> |
|
9 |
<property name="fieldList"> |
|
10 |
<list> |
|
11 |
<ref bean="fgdc.abstract" /> |
|
12 |
<ref bean="fgdc.beginDate"/> |
|
13 |
<ref bean="fgdc.class" /> |
|
14 |
<ref bean="fgdc.contactOrganization"/> |
|
15 |
<ref bean="fgdc.eastBoundCoord"/> |
|
16 |
<ref bean="fgdc.westBoundCoord" /> |
|
17 |
<ref bean="fgdc.northBoundCoord" /> |
|
18 |
<ref bean="fgdc.southBoundCoord" /> |
|
19 |
<ref bean="fgdc.edition" /> |
|
20 |
<ref bean="fgdc.endDate" /> |
|
21 |
<ref bean="fgdc.gcmdKeyword"/> |
|
22 |
<ref bean="fgdc.keywords"/> |
|
23 |
<ref bean="fgdc.geoform" /> |
|
24 |
<ref bean="fgdc.genus" /> |
|
25 |
<ref bean="fgdc.kingdom" /> |
|
26 |
<ref bean="fgdc.order" /> |
|
27 |
<ref bean="fgdc.phylum" /> |
|
28 |
<ref bean="fgdc.species" /> |
|
29 |
<ref bean="fgdc.origin" /> |
|
30 |
<ref bean="fgdc.placeKey" /> |
|
31 |
<ref bean="fgdc.pubDate" /> |
|
32 |
<ref bean="fgdc.purpose" /> |
|
33 |
<ref bean="fgdc.title" /> |
|
34 |
<ref bean="fgdc.web_url" /> |
|
35 |
<ref bean="fgdc.fileID" /> |
|
36 |
<ref bean="fgdc.fullText" /> |
|
37 |
<ref bean="fgdc.presentationCat" /> |
|
38 |
<ref bean="fgdc.author"/> |
|
39 |
<ref bean="fgdc.investigator" /> |
|
40 |
<ref bean="fgdc.site" /> |
|
41 |
</list> |
|
42 |
</property> |
|
43 |
</bean> |
|
44 |
</beans> |
metacat-index/src/main/resources/application-context-dryad-base.xml | ||
---|---|---|
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 |
|
|
5 |
<bean id="dryad.abstract" class="org.dataone.cn.indexer.parser.SolrField"> |
|
6 |
<constructor-arg name="name" value="abstract" /> |
|
7 |
<constructor-arg name="xpath" |
|
8 |
value="//dcterms:description[1]/text()" /> |
|
9 |
<property name="multivalue" value="false" /> |
|
10 |
</bean> |
|
11 |
|
|
12 |
<bean id="dryad.author" class="org.dataone.cn.indexer.parser.SolrField"> |
|
13 |
<constructor-arg name="name" value="author" /> |
|
14 |
<constructor-arg name="xpath" |
|
15 |
value="//dcterms:creator[1]/text()" /> |
|
16 |
<property name="multivalue" value="false" /> |
|
17 |
</bean> |
|
18 |
|
|
19 |
<bean id="dryad.keywords" class="org.dataone.cn.indexer.parser.SolrField"> |
|
20 |
<constructor-arg name="name" value="keywords" /> |
|
21 |
<constructor-arg name="xpath" |
|
22 |
value="//dcterms:subject/text()" /> |
|
23 |
<property name="multivalue" value="true" /> |
|
24 |
</bean> |
|
25 |
|
|
26 |
<bean id="dryad.pubDate" class="org.dataone.cn.indexer.parser.SolrField"> |
|
27 |
<constructor-arg name="name" value="pubDate" /> |
|
28 |
<constructor-arg name="xpath" value="//dcterms:dateSubmitted/text()" /> |
|
29 |
<property name="multivalue" value="false" /> |
|
30 |
<property name="converter" ref="dateConverter" /> |
|
31 |
</bean> |
|
32 |
|
|
33 |
<bean id="dryad.site" class="org.dataone.cn.indexer.parser.SolrField"> |
|
34 |
<constructor-arg name="name" value="site" /> |
|
35 |
<constructor-arg name="xpath" |
|
36 |
value="//dcterms:spatial/text()" /> |
|
37 |
<property name="multivalue" value="true" /> |
|
38 |
</bean> |
|
39 |
|
|
40 |
<bean id="dryad.title" class="org.dataone.cn.indexer.parser.SolrField"> |
|
41 |
<constructor-arg name="name" value="title" /> |
|
42 |
<constructor-arg name="xpath" |
|
43 |
value="//dcterms:title[1]/text()" /> |
|
44 |
<property name="multivalue" value="false" /> |
|
45 |
</bean> |
|
46 |
|
|
47 |
<bean id="dryad.scientificName" class="org.dataone.cn.indexer.parser.SolrField"> |
|
48 |
<constructor-arg name="name" value="scientificName" /> |
|
49 |
<constructor-arg name="xpath" |
|
50 |
value="//dwc:scientificName/text()" /> |
|
51 |
<property name="multivalue" value="true" /> |
|
52 |
</bean> |
|
53 |
|
|
54 |
<bean id="dryad.fileID" class="org.dataone.cn.indexer.parser.ResolveSolrField"> |
|
55 |
<constructor-arg name="name" value="fileID" /> |
|
56 |
</bean> |
|
57 |
|
|
58 |
<bean id="dryad.origin" class="org.dataone.cn.indexer.parser.SolrField"> |
|
59 |
<constructor-arg name="name" value="origin" /> |
|
60 |
<constructor-arg name="xpath" value='//dcterms:creator/text()' /> |
|
61 |
<property name="multivalue" value="true" /> |
|
62 |
<property name="dedupe" value="true" /> |
|
63 |
</bean> |
|
64 |
|
|
65 |
<bean id="dryad.investigator" class="org.dataone.cn.indexer.parser.SolrField"> |
|
66 |
<constructor-arg name="name" value="investigator" /> |
|
67 |
<constructor-arg name="xpath" value='//dcterms:creator/text()' /> |
|
68 |
<property name="multivalue" value="true" /> |
|
69 |
<property name="dedupe" value="true" /> |
|
70 |
</bean> |
|
71 |
|
|
72 |
<bean id="dryad.fullText" class="org.dataone.cn.indexer.parser.FullTextSolrField"> |
|
73 |
<constructor-arg name="name" value="text" /> |
|
74 |
<constructor-arg name="xpath" |
|
75 |
value="//*/text()" /> |
|
76 |
<property name="multivalue" value="false" /> |
|
77 |
<property name="combineNodes" value="true"/> |
|
78 |
<property name="dedupe" value="true"/> |
|
79 |
</bean> |
|
80 |
|
|
81 |
</beans> |
metacat-index/src/main/resources/application-context-eml-base.xml | ||
---|---|---|
1 |
<beans xmlns="http://www.springframework.org/schema/beans" |
|
2 |
xmlns:p="http://www.springframework.org/schema/p" |
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xsi:schemaLocation="http://www.springframework.org/schema/beans |
|
5 |
http://www.springframework.org/schema/beans/spring-beans.xsd |
|
6 |
http://www.springframework.org/schema/context |
|
7 |
http://www.springframework.org/schema/context/spring-context-3.0.xsd"> |
|
8 |
|
|
9 |
|
|
10 |
<bean id="eml.abstract" class="org.dataone.cn.indexer.parser.MergeSolrField"> |
|
11 |
<constructor-arg name="name" value="abstract" /> |
|
12 |
<constructor-arg name="xpath" |
|
13 |
value="//dataset/abstract/descendant::text()" /> |
|
14 |
<constructor-arg name="delimiter" value=" " /> |
|
15 |
<property name="multivalue" value="false" /> |
|
16 |
<property name="dedupe" value="false" /> |
|
17 |
</bean> |
|
18 |
|
|
19 |
<bean id="eml.keywords" class="org.dataone.cn.indexer.parser.SolrField"> |
|
20 |
<constructor-arg name="name" value="keywords" /> |
|
21 |
<constructor-arg name="xpath" |
|
22 |
value="//dataset/keywordSet/keyword/text()" /> |
|
23 |
<property name="multivalue" value="true" /> |
|
24 |
<property name="dedupe" value="true" /> |
|
25 |
</bean> |
|
26 |
|
|
27 |
<bean id="eml.southBoundCoord" class="org.dataone.cn.indexer.parser.SolrField"> |
|
28 |
<constructor-arg name="name" value="southBoundCoord" /> |
|
29 |
<constructor-arg name="xpath" |
|
30 |
value="//dataset/coverage/geographicCoverage/boundingCoordinates/southBoundingCoordinate/text()" /> |
|
31 |
<property name="multivalue" value="false" /> |
|
32 |
<property name="converter" ref="solrLatitudeConverter" /> |
|
33 |
</bean> |
|
34 |
|
|
35 |
<bean id="eml.northBoundCoord" class="org.dataone.cn.indexer.parser.SolrField"> |
|
36 |
<constructor-arg name="name" value="northBoundCoord" /> |
|
37 |
<constructor-arg name="xpath" |
|
38 |
value="//dataset/coverage/geographicCoverage/boundingCoordinates/northBoundingCoordinate/text()" /> |
|
39 |
<property name="multivalue" value="false" /> |
|
40 |
<property name="converter" ref="solrLatitudeConverter" /> |
|
41 |
</bean> |
|
42 |
|
|
43 |
<bean id="eml.westBoundCoord" class="org.dataone.cn.indexer.parser.SolrField"> |
|
44 |
<constructor-arg name="name" value="westBoundCoord" /> |
|
45 |
<constructor-arg name="xpath" |
|
46 |
value="//dataset/coverage/geographicCoverage/boundingCoordinates/westBoundingCoordinate/text()" /> |
|
47 |
<property name="multivalue" value="false" /> |
|
48 |
<property name="converter" ref="solrLongitudeConverter" /> |
|
49 |
</bean> |
|
50 |
|
|
51 |
<bean id="eml.eastBoundCoord" class="org.dataone.cn.indexer.parser.SolrField"> |
|
52 |
<constructor-arg name="name" value="eastBoundCoord" /> |
|
53 |
<constructor-arg name="xpath" |
|
54 |
value="//dataset/coverage/geographicCoverage/boundingCoordinates/eastBoundingCoordinate/text()" /> |
|
55 |
<property name="multivalue" value="false" /> |
|
56 |
<property name="converter" ref="solrLongitudeConverter" /> |
|
57 |
</bean> |
|
58 |
|
|
59 |
<bean id="eml.beginDate" class="org.dataone.cn.indexer.parser.SolrField"> |
|
60 |
<constructor-arg name="name" value="beginDate" /> |
|
61 |
<constructor-arg name="xpath" |
|
62 |
value="//dataset/coverage/temporalCoverage/rangeOfDates/beginDate/calendarDate/text()" /> |
|
63 |
<property name="multivalue" value="false" /> |
|
64 |
<property name="converter" ref="dateConverter" /> |
|
65 |
</bean> |
|
66 |
|
|
67 |
<bean id="eml.endDate" class="org.dataone.cn.indexer.parser.SolrField"> |
|
68 |
<constructor-arg name="name" value="endDate" /> |
|
69 |
<constructor-arg name="xpath" |
|
70 |
value="//dataset/coverage/temporalCoverage/rangeOfDates/endDate/calendarDate/text()" /> |
|
71 |
<property name="multivalue" value="false" /> |
|
72 |
<property name="converter" ref="dateConverter" /> |
|
73 |
</bean> |
|
74 |
|
|
75 |
<bean id="eml.pubDate" class="org.dataone.cn.indexer.parser.SolrField"> |
|
76 |
<constructor-arg name="name" value="pubDate" /> |
|
77 |
<constructor-arg name="xpath" value="//dataset/pubDate/text()" /> |
|
78 |
<property name="multivalue" value="false" /> |
|
79 |
<property name="converter" ref="dateConverter" /> |
|
80 |
</bean> |
|
81 |
|
|
82 |
<bean id="eml.title" class="org.dataone.cn.indexer.parser.SolrField"> |
|
83 |
<constructor-arg name="name" value="title" /> |
|
84 |
<constructor-arg name="xpath" value="//dataset/title/text()" /> |
|
85 |
<property name="multivalue" value="false" /> |
|
86 |
</bean> |
|
87 |
|
|
88 |
<bean id="eml.project" class="org.dataone.cn.indexer.parser.SolrField"> |
|
89 |
<constructor-arg name="name" value="project" /> |
|
90 |
<constructor-arg name="xpath" value="//dataset/project/title/text()" /> |
|
91 |
<property name="multivalue" value="false" /> |
|
92 |
</bean> |
|
93 |
|
|
94 |
<bean id="eml.author" class="org.dataone.cn.indexer.parser.CommonRootSolrField" |
|
95 |
p:multivalue="false" |
|
96 |
p:root-ref="authorNameRoot"> |
|
97 |
<constructor-arg name="name" value="author" /> |
|
98 |
</bean> |
|
99 |
|
|
100 |
<bean id="authorNameRoot" class="org.dataone.cn.indexer.parser.utility.RootElement" |
|
101 |
p:name="author" |
|
102 |
p:xPath="//dataset/creator/individualName" |
|
103 |
p:template="[givenName] [surName]"> |
|
104 |
<property name="leafs"> |
|
105 |
<list> |
|
106 |
<ref bean="givenNameLeaf"/> |
|
107 |
<ref bean="surNameLeaf"/> |
|
108 |
</list> |
|
109 |
</property> |
|
110 |
</bean> |
|
111 |
|
|
112 |
<bean id="eml.author_lname" class="org.dataone.cn.indexer.parser.SolrField"> |
|
113 |
<constructor-arg name="name" value="authorLastName" /> |
|
114 |
<constructor-arg name="xpath" |
|
115 |
value="//dataset/creator/individualName/surName/text()" /> |
|
116 |
<property name="multivalue" value="true" /> |
|
117 |
</bean> |
|
118 |
|
|
119 |
<bean id="eml.investigator" class="org.dataone.cn.indexer.parser.SolrField"> |
|
120 |
<constructor-arg name="name" value="investigator" /> |
|
121 |
<constructor-arg name="xpath" |
|
122 |
value="//dataset/creator/individualName/surName/text()" /> |
|
123 |
<property name="multivalue" value="true" /> |
|
124 |
</bean> |
|
125 |
|
|
126 |
<bean id="eml.origin" class="org.dataone.cn.indexer.parser.CommonRootSolrField" |
|
127 |
p:multivalue="true" |
|
128 |
p:root-ref="originRoot"> |
|
129 |
<constructor-arg name="name" value="origin" /> |
|
130 |
</bean> |
|
131 |
|
|
132 |
<bean id="originRoot" class="org.dataone.cn.indexer.parser.utility.RootElement" |
|
133 |
p:name="origin" |
|
134 |
p:xPath="//dataset/creator" |
|
135 |
p:template="[individualName]||[organizationName]"> |
|
136 |
<property name="leafs"><list><ref bean="organizationNameLeaf"/></list></property> |
|
137 |
<property name="subRoots"><list><ref bean="individualNameRoot" /></list></property> |
|
138 |
</bean> |
|
139 |
|
|
140 |
<bean id="organizationNameLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement" |
|
141 |
p:name="organizationName" |
|
142 |
p:xPath="organizationName/text()" /> |
|
143 |
|
|
144 |
<bean id="individualNameRoot" class="org.dataone.cn.indexer.parser.utility.RootElement" |
|
145 |
p:name="individualName" |
|
146 |
p:xPath="individualName" |
|
147 |
p:template="[givenName] [surName]"> |
|
148 |
<property name="leafs"> |
|
149 |
<list> |
|
150 |
<ref bean="givenNameLeaf"/> |
|
151 |
<ref bean="surNameLeaf"/> |
|
152 |
</list> |
|
153 |
</property> |
|
154 |
</bean> |
|
155 |
|
|
156 |
<bean id="givenNameLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement" |
|
157 |
p:name="givenName" |
|
158 |
p:xPath="givenName/text()" /> |
|
159 |
|
|
160 |
<bean id="surNameLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement" |
|
161 |
p:name="surName" |
|
162 |
p:xPath="surName/text()"/> |
|
163 |
|
|
164 |
<bean id="eml.contactOrganization" class="org.dataone.cn.indexer.parser.SolrField"> |
|
165 |
<constructor-arg name="name" value="contactOrganization" /> |
|
166 |
<constructor-arg name="xpath" |
|
167 |
value="//dataset/creator/organizationName/text()" /> |
|
168 |
<property name="multivalue" value="true" /> |
|
169 |
<property name="dedupe" value="true"/> |
|
170 |
</bean> |
|
171 |
|
|
172 |
<bean id="eml.fileID" class="org.dataone.cn.indexer.parser.ResolveSolrField"> |
|
173 |
<constructor-arg name="name" value="fileID" /> |
|
174 |
</bean> |
|
175 |
|
|
176 |
<bean id="eml.fullText" class="org.dataone.cn.indexer.parser.FullTextSolrField"> |
|
177 |
<constructor-arg name="name" value="text" /> |
|
178 |
<constructor-arg name="xpath" |
|
179 |
value="//dataset/*[not(self::dataTable)]//text()" /> |
|
180 |
<property name="multivalue" value="false" /> |
|
181 |
<property name="combineNodes" value="true"/> |
|
182 |
</bean> |
|
183 |
|
|
184 |
</beans> |
metacat-index/src/main/resources/application-context-eml201.xml | ||
---|---|---|
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 |
|
|
5 |
<bean id="eml201Subprocessor" |
|
6 |
class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor"> |
|
7 |
<property name="matchDocument" |
|
8 |
value="/d100:systemMetadata/formatId[text() = 'eml://ecoinformatics.org/eml-2.0.1']"></property> |
|
9 |
<property name="fieldList"> |
|
10 |
<list> |
|
11 |
<ref bean="eml.abstract" /> |
|
12 |
<ref bean="eml.keywords" /> |
|
13 |
<ref bean="eml.title" /> |
|
14 |
<ref bean="eml.project" /> |
|
15 |
<ref bean="eml.southBoundCoord" /> |
|
16 |
<ref bean="eml.northBoundCoord" /> |
|
17 |
<ref bean="eml.westBoundCoord" /> |
|
18 |
<ref bean="eml.eastBoundCoord" /> |
|
19 |
<ref bean="eml.beginDate" /> |
|
20 |
<ref bean="eml.endDate" /> |
|
21 |
<ref bean="eml.pubDate" /> |
|
22 |
<ref bean="eml.author" /> |
|
23 |
<ref bean="eml.author_lname" /> |
|
24 |
<ref bean="eml.investigator" /> |
|
25 |
<ref bean="eml.origin" /> |
|
26 |
<ref bean="eml.contactOrganization" /> |
|
27 |
<ref bean="eml.fileID" /> |
|
28 |
<ref bean="eml.fullText" /> |
|
29 |
</list> |
|
30 |
</property> |
|
31 |
</bean> |
|
32 |
</beans> |
metacat-index/src/main/resources/application-context-eml200.xml | ||
---|---|---|
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 |
|
|
5 |
<bean id="eml200Subprocessor" |
|
6 |
class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor"> |
|
7 |
<property name="matchDocument" |
|
8 |
value="/d100:systemMetadata/formatId[text() = 'eml://ecoinformatics.org/eml-2.0.0']"></property> |
|
9 |
<property name="fieldList"> |
|
10 |
<list> |
|
11 |
<ref bean="eml.abstract" /> |
|
12 |
<ref bean="eml.keywords" /> |
|
13 |
<ref bean="eml.title" /> |
|
14 |
<ref bean="eml.project" /> |
|
15 |
<ref bean="eml.southBoundCoord" /> |
|
16 |
<ref bean="eml.northBoundCoord" /> |
|
17 |
<ref bean="eml.westBoundCoord" /> |
|
18 |
<ref bean="eml.eastBoundCoord" /> |
|
19 |
<ref bean="eml.beginDate" /> |
|
20 |
<ref bean="eml.endDate" /> |
|
21 |
<ref bean="eml.pubDate" /> |
|
22 |
<ref bean="eml.author" /> |
|
23 |
<ref bean="eml.author_lname" /> |
|
24 |
<ref bean="eml.investigator" /> |
|
25 |
<ref bean="eml.origin" /> |
|
26 |
<ref bean="eml.contactOrganization" /> |
|
27 |
<ref bean="eml.fileID" /> |
|
28 |
<ref bean="eml.fullText" /> |
|
29 |
</list> |
|
30 |
</property> |
|
31 |
</bean> |
|
32 |
</beans> |
metacat-index/src/main/resources/application-context-eml211.xml | ||
---|---|---|
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 |
|
|
5 |
<bean id="eml211Subprocessor" |
|
6 |
class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor"> |
|
7 |
<property name="matchDocument" |
|
8 |
value="/d100:systemMetadata/formatId[text() = 'eml://ecoinformatics.org/eml-2.1.1']"></property> |
|
9 |
<property name="fieldList"> |
|
10 |
<list> |
|
11 |
<ref bean="eml.abstract" /> |
|
12 |
<ref bean="eml.keywords" /> |
|
13 |
<ref bean="eml.title" /> |
|
14 |
<ref bean="eml.project" /> |
|
15 |
<ref bean="eml.southBoundCoord" /> |
|
16 |
<ref bean="eml.northBoundCoord" /> |
|
17 |
<ref bean="eml.westBoundCoord" /> |
|
18 |
<ref bean="eml.eastBoundCoord" /> |
|
19 |
<ref bean="eml.beginDate" /> |
|
20 |
<ref bean="eml.endDate" /> |
|
21 |
<ref bean="eml.pubDate" /> |
|
22 |
<ref bean="eml.author" /> |
|
23 |
<ref bean="eml.author_lname" /> |
|
24 |
<ref bean="eml.investigator" /> |
|
25 |
<ref bean="eml.origin" /> |
|
26 |
<ref bean="eml.contactOrganization" /> |
|
27 |
<ref bean="eml.fileID" /> |
|
28 |
<ref bean="eml.fullText" /> |
|
29 |
</list> |
|
30 |
</property> |
|
31 |
</bean> |
|
32 |
</beans> |
metacat-index/src/main/resources/application-context-eml210.xml | ||
---|---|---|
1 |
<beans xmlns="http://www.springframework.org/schema/beans" |
|
2 |
xmlns:p="http://www.springframework.org/schema/p" |
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xsi:schemaLocation="http://www.springframework.org/schema/beans |
|
5 |
http://www.springframework.org/schema/beans/spring-beans.xsd |
|
6 |
http://www.springframework.org/schema/context |
|
7 |
http://www.springframework.org/schema/context/spring-context-3.0.xsd"> |
|
8 |
|
|
9 |
<bean id="eml210Subprocessor" |
|
10 |
class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor"> |
|
11 |
<property name="matchDocument" |
|
12 |
value="/d100:systemMetadata/formatId[text() = 'eml://ecoinformatics.org/eml-2.1.0']"></property> |
|
13 |
<property name="fieldList"> |
|
14 |
<list> |
|
15 |
<ref bean="eml.abstract" /> |
|
16 |
<ref bean="eml.keywords" /> |
|
17 |
<ref bean="eml.title" /> |
|
18 |
<ref bean="eml.project" /> |
|
19 |
<ref bean="eml.southBoundCoord" /> |
|
20 |
<ref bean="eml.northBoundCoord" /> |
|
21 |
<ref bean="eml.westBoundCoord" /> |
|
22 |
<ref bean="eml.eastBoundCoord" /> |
|
23 |
<ref bean="eml.beginDate" /> |
|
24 |
<ref bean="eml.endDate" /> |
|
25 |
<ref bean="eml.pubDate" /> |
|
26 |
<ref bean="eml.author" /> |
|
27 |
<ref bean="eml.author_lname" /> |
|
28 |
<ref bean="eml.investigator" /> |
|
29 |
<ref bean="eml.origin" /> |
|
30 |
<ref bean="eml.contactOrganization" /> |
|
31 |
<ref bean="eml.fileID" /> |
|
32 |
<ref bean="eml.fullText" /> |
|
33 |
</list> |
|
34 |
</property> |
|
35 |
</bean> |
|
36 |
</beans> |
metacat-index/src/main/resources/application-context-fgdc-base.xml | ||
---|---|---|
1 |
<beans xmlns="http://www.springframework.org/schema/beans" |
|
2 |
xmlns:p="http://www.springframework.org/schema/p" |
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xsi:schemaLocation="http://www.springframework.org/schema/beans |
|
5 |
http://www.springframework.org/schema/beans/spring-beans.xsd |
|
6 |
http://www.springframework.org/schema/context |
|
7 |
http://www.springframework.org/schema/context/spring-context-3.0.xsd"> |
|
8 |
|
|
9 |
<bean id="fgdc.abstract" class="org.dataone.cn.indexer.parser.MergeSolrField"> |
|
10 |
<constructor-arg name="name" value="abstract" /> |
|
11 |
<constructor-arg name="xpath" |
|
12 |
value="//metadata/idinfo/descript/abstract/descendant::text()" /> |
|
13 |
<constructor-arg name="delimiter" value=" " /> |
|
14 |
<property name="multivalue" value="false" /> |
|
15 |
<property name="dedupe" value="false" /> |
|
16 |
</bean> |
|
17 |
|
|
18 |
<bean id="fgdc.beginDate" class="org.dataone.cn.indexer.parser.SolrField"> |
|
19 |
<constructor-arg name="name" value="beginDate" /> |
|
20 |
<constructor-arg name="xpath" |
|
21 |
value="//metadata/idinfo/timeperd/timeinfo/rngdates/begdate/text()" /> |
|
22 |
<property name="multivalue" value="false" /> |
|
23 |
<property name="converter" ref="fgdcDateConverter" /> |
|
24 |
</bean> |
|
25 |
|
|
26 |
<bean id="fgdc.class" class="org.dataone.cn.indexer.parser.SolrField"> |
|
27 |
<constructor-arg name="name" value="class" /> |
|
28 |
<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Class"]/text()' /> |
|
29 |
<property name="multivalue" value="true" /> |
|
30 |
</bean> |
|
31 |
|
|
32 |
<bean id="fgdc.contactOrganization" class="org.dataone.cn.indexer.parser.SolrField"> |
|
33 |
<constructor-arg name="name" value="contactOrganization" /> |
|
34 |
<constructor-arg name="xpath" |
|
35 |
value="//metadata/distinfo/distrib/cntinfo/cntperp/cntorg/text() | //metadata/distinfo/distrib/cntinfo/cntorgp/cntorg/text()" /> |
|
36 |
<property name="multivalue" value="true" /> |
|
37 |
<property name="dedupe" value="true"/> |
|
38 |
</bean> |
|
39 |
|
|
40 |
<bean id="fgdc.eastBoundCoord" class="org.dataone.cn.indexer.parser.SolrField"> |
|
41 |
<constructor-arg name="name" value="eastBoundCoord" /> |
|
42 |
<constructor-arg name="xpath" |
|
43 |
value="//metadata/idinfo/spdom/bounding/eastbc/text()" /> |
|
44 |
<property name="multivalue" value="false" /> |
|
45 |
<property name="converter" ref="solrLongitudeConverter" /> |
|
46 |
</bean> |
|
47 |
|
|
48 |
<bean id="fgdc.northBoundCoord" class="org.dataone.cn.indexer.parser.SolrField"> |
|
49 |
<constructor-arg name="name" value="northBoundCoord" /> |
|
50 |
<constructor-arg name="xpath" |
|
51 |
value="//metadata/idinfo/spdom/bounding/northbc/text()" /> |
|
52 |
<property name="multivalue" value="false" /> |
|
53 |
<property name="converter" ref="solrLongitudeConverter" /> |
|
54 |
</bean> |
|
55 |
|
|
56 |
<bean id="fgdc.southBoundCoord" class="org.dataone.cn.indexer.parser.SolrField"> |
|
57 |
<constructor-arg name="name" value="southBoundCoord" /> |
|
58 |
<constructor-arg name="xpath" |
|
59 |
value="//metadata/idinfo/spdom/bounding/southbc/text()" /> |
|
60 |
<property name="multivalue" value="false" /> |
|
61 |
<property name="converter" ref="solrLongitudeConverter" /> |
|
62 |
</bean> |
|
63 |
|
|
64 |
<bean id="fgdc.westBoundCoord" class="org.dataone.cn.indexer.parser.SolrField"> |
|
65 |
<constructor-arg name="name" value="westBoundCoord" /> |
|
66 |
<constructor-arg name="xpath" |
|
67 |
value="//metadata/idinfo/spdom/bounding/westbc/text()" /> |
|
68 |
<property name="multivalue" value="false" /> |
|
69 |
<property name="converter" ref="solrLongitudeConverter" /> |
|
70 |
</bean> |
|
71 |
|
|
72 |
<bean id="fgdc.edition" class="org.dataone.cn.indexer.parser.SolrField"> |
|
73 |
<constructor-arg name="name" value="edition" /> |
|
74 |
<constructor-arg name="xpath" value='//metadata/idinfo/citeinfo/edition/text()' /> |
|
75 |
<property name="multivalue" value="false" /> |
|
76 |
</bean> |
|
77 |
|
|
78 |
<bean id="fgdc.endDate" class="org.dataone.cn.indexer.parser.SolrField"> |
|
79 |
<constructor-arg name="name" value="endDate" /> |
|
80 |
<constructor-arg name="xpath" |
|
81 |
value="//metadata/idinfo/timeperd/timeinfo/rngdates/enddate/text()" /> |
|
82 |
<property name="multivalue" value="false" /> |
|
83 |
<property name="converter" ref="fgdcDateConverter" /> |
|
84 |
</bean> |
|
85 |
|
|
86 |
<bean id="fgdc.gcmdKeyword" class="org.dataone.cn.indexer.parser.SolrField"> |
|
87 |
<constructor-arg name="name" value="gcmdKeyword" /> |
|
88 |
<constructor-arg name="xpath" |
|
89 |
value="//metadata/idinfo/keywords/theme[themekt='GCMD Science Keywords']/themekey/text()" /> |
|
90 |
<property name="multivalue" value="true" /> |
|
91 |
</bean> |
|
92 |
|
|
93 |
<bean id="fgdc.keywords" class="org.dataone.cn.indexer.parser.SolrField"> |
|
94 |
<constructor-arg name="name" value="keywords" /> |
|
95 |
<constructor-arg name="xpath" |
|
96 |
value="//metadata/idinfo/keywords/theme/themekey/text() | //metadata/idinfo/keywords/place/placekey/text()" /> |
|
97 |
<property name="multivalue" value="true" /> |
|
98 |
<property name="dedupe" value="true" /> |
|
99 |
<property name="disallowedValues"> |
|
100 |
<list> |
|
101 |
<value>none</value> |
|
102 |
</list> |
|
103 |
</property> |
|
104 |
</bean> |
|
105 |
|
|
106 |
<bean id="fgdc.genus" class="org.dataone.cn.indexer.parser.SolrField"> |
|
107 |
<constructor-arg name="name" value="genus" /> |
|
108 |
<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Genus"]/text()' /> |
|
109 |
<property name="multivalue" value="true" /> |
|
110 |
</bean> |
|
111 |
|
|
112 |
<bean id="fgdc.geoform" class="org.dataone.cn.indexer.parser.SolrField"> |
|
113 |
<constructor-arg name="name" value="geoform" /> |
|
114 |
<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/geoform/text()' /> |
|
115 |
<property name="multivalue" value="false" /> |
|
116 |
</bean> |
|
117 |
|
|
118 |
<bean id="fgdc.kingdom" class="org.dataone.cn.indexer.parser.SolrField"> |
|
119 |
<constructor-arg name="name" value="kingdom" /> |
|
120 |
<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Kingdom"]/text()' /> |
|
121 |
<property name="multivalue" value="true" /> |
|
122 |
</bean> |
|
123 |
|
|
124 |
<bean id="fgdc.order" class="org.dataone.cn.indexer.parser.SolrField"> |
|
125 |
<constructor-arg name="name" value="order" /> |
|
126 |
<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Order"]/text()' /> |
|
127 |
<property name="multivalue" value="true" /> |
|
128 |
</bean> |
|
129 |
|
|
130 |
<bean id="fgdc.phylum" class="org.dataone.cn.indexer.parser.MergeSolrField"> |
|
131 |
<constructor-arg name="name" value="phylum" /> |
|
132 |
<constructor-arg name="delimiter" value=" " /> |
|
133 |
<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Phylum"]/text() | //taxoncl/taxonrv[../taxonrn="Division"]/text()' /> |
|
134 |
<property name="multivalue" value="true" /> |
|
135 |
</bean> |
|
136 |
|
|
137 |
<bean id="fgdc.species" class="org.dataone.cn.indexer.parser.SolrField"> |
|
138 |
<constructor-arg name="name" value="species" /> |
|
139 |
<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Species"]/text()' /> |
|
140 |
<property name="multivalue" value="true" /> |
|
141 |
</bean> |
|
142 |
|
|
143 |
<bean id="fgdc.origin" class="org.dataone.cn.indexer.parser.SolrField"> |
|
144 |
<constructor-arg name="name" value="origin" /> |
|
145 |
<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/origin/text()' /> |
|
146 |
<property name="multivalue" value="true" /> |
|
147 |
</bean> |
|
148 |
|
|
149 |
<bean id="fgdc.placeKey" class="org.dataone.cn.indexer.parser.SolrField"> |
|
150 |
<constructor-arg name="name" value="placeKey" /> |
|
151 |
<constructor-arg name="xpath" value='//metadata/idinfo/keywords/place/placekey/text()' /> |
|
152 |
<property name="multivalue" value="true" /> |
|
153 |
</bean> |
|
154 |
|
|
155 |
<bean id="fgdc.pubDate" class="org.dataone.cn.indexer.parser.SolrField"> |
|
156 |
<constructor-arg name="name" value="pubDate" /> |
|
157 |
<constructor-arg name="xpath" |
|
158 |
value="//metadata/idinfo/citation/citeinfo/pubdate/text()" /> |
|
159 |
<property name="multivalue" value="false" /> |
|
160 |
<property name="converter" ref="fgdcDateConverter" /> |
|
161 |
</bean> |
|
162 |
|
|
163 |
<bean id="fgdc.purpose" class="org.dataone.cn.indexer.parser.MergeSolrField"> |
|
164 |
<constructor-arg name="name" value="purpose" /> |
|
165 |
<constructor-arg name="xpath" |
|
166 |
value="//metadata/idinfo/descript/purpose/descendant::text()" /> |
|
167 |
<constructor-arg name="delimiter" value=" " /> |
|
168 |
<property name="multivalue" value="false" /> |
|
169 |
<property name="dedupe" value="false" /> |
|
170 |
</bean> |
|
171 |
|
|
172 |
<bean id="fgdc.title" class="org.dataone.cn.indexer.parser.SolrField"> |
|
173 |
<constructor-arg name="name" value="title" /> |
|
174 |
<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/title/text()' /> |
|
175 |
<property name="multivalue" value="false" /> |
|
176 |
</bean> |
|
177 |
|
|
178 |
<bean id="fgdc.web_url" class="org.dataone.cn.indexer.parser.SolrField"> |
|
179 |
<constructor-arg name="name" value="webUrl" /> |
|
180 |
<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/onlink/text()' /> |
|
181 |
<property name="multivalue" value="true" /> |
|
182 |
</bean> |
|
183 |
|
|
184 |
<bean id="fgdc.fileID" class="org.dataone.cn.indexer.parser.ResolveSolrField"> |
|
185 |
<constructor-arg name="name" value="fileID" /> |
|
186 |
</bean> |
|
187 |
|
|
188 |
<bean id="fgdc.fullText" class="org.dataone.cn.indexer.parser.FullTextSolrField"> |
|
189 |
<constructor-arg name="name" value="text" /> |
|
190 |
<constructor-arg name="xpath" |
|
191 |
value="//metadata//text()" /> |
|
192 |
<property name="multivalue" value="false" /> |
|
193 |
<property name="combineNodes" value="true"/> |
|
194 |
</bean> |
|
195 |
|
|
196 |
<bean id="fgdc.project" class="org.dataone.cn.indexer.parser.MergeSolrField"> |
|
197 |
<constructor-arg name="name" value="project" /> |
|
198 |
<constructor-arg name="xpath" |
|
199 |
value="//metadata/idinfo/descript/purpose/descendant::text()" /> |
|
200 |
<constructor-arg name="delimiter" value=" " /> |
|
201 |
<property name="multivalue" value="false" /> |
|
202 |
<property name="dedupe" value="false" /> |
|
203 |
</bean> |
|
204 |
|
|
205 |
|
|
206 |
<bean id="fgdc.presentationCat" class="org.dataone.cn.indexer.parser.SolrField"> |
|
207 |
<constructor-arg name="name" value="presentationCat" /> |
|
208 |
<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/geoform/text()' /> |
|
209 |
<property name="multivalue" value="false" /> |
|
210 |
</bean> |
|
211 |
|
|
212 |
<bean id="fgdc.author" class="org.dataone.cn.indexer.parser.SolrField"> |
|
213 |
<constructor-arg name="name" value="author" /> |
|
214 |
<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/origin/text()' /> |
|
215 |
<property name="multivalue" value="false" /> |
|
216 |
</bean> |
|
217 |
|
|
218 |
<bean id="fgdc.investigator" class="org.dataone.cn.indexer.parser.SolrField"> |
|
219 |
<constructor-arg name="name" value="investigator" /> |
|
220 |
<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/origin/text()' /> |
|
221 |
<property name="multivalue" value="true" /> |
|
222 |
</bean> |
|
223 |
|
|
224 |
<bean id="fgdc.site" class="org.dataone.cn.indexer.parser.SolrField"> |
|
225 |
<constructor-arg name="name" value="site" /> |
|
226 |
<constructor-arg name="xpath" value='//metadata/idinfo/spdom/descgeog/text()' /> |
|
227 |
<property name="multivalue" value="true" /> |
|
228 |
</bean> |
|
229 |
</beans> |
metacat-index/src/main/resources/application-context-resourcemap.xml | ||
---|---|---|
1 |
<beans xmlns="http://www.springframework.org/schema/beans" |
|
2 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
3 |
xmlns:p="http://www.springframework.org/schema/p" |
|
4 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
|
5 |
|
|
6 |
<bean id="resourceMapSubprocessor" class="edu.ucsb.nceas.metacat.index.resourcemap.ResourceMapSubprocessor"> |
|
7 |
<property name="matchDocument" |
|
8 |
value="/d100:systemMetadata/formatId[text()='http://www.openarchives.org/ore/terms'] | /d100:systemMetadata/formatId[text()='http://www.w3.org/TR/rdf-syntax-grammar']" /> |
|
9 |
<!-- <property name="httpService" ref="httpService"></property> |
|
10 |
<property name="solrQueryUri" value="${solr.query.uri}"></property> --> |
|
11 |
</bean> |
|
12 |
|
|
13 |
<!-- <bean id="httpService" class="org.dataone.cn.indexer.solrhttp.HTTPService"> |
|
14 |
<constructor-arg ref="httpClientFactory" /> |
|
15 |
<property name="solrSchemaPath" value="${solr.schema.path}" /> |
|
16 |
<property name="solrIndexUri" value="${solr.index.uri}" /> |
|
17 |
</bean> |
|
18 |
|
|
19 |
<bean id="httpClientFactory" class="org.springframework.http.client.HttpComponentsClientHttpRequestFactory" |
|
20 |
p:connectTimeout="5000" > |
|
21 |
<constructor-arg ref="httpClient" /> |
|
22 |
</bean> |
|
23 |
|
|
24 |
<bean id="httpClient" class="org.apache.http.impl.client.DefaultHttpClient"> |
|
25 |
<constructor-arg ref="httpConnectionManager"/> |
|
26 |
</bean> |
|
27 |
|
|
28 |
<bean id="httpConnectionManager" class="org.apache.http.impl.conn.SingleClientConnManager"/> --> |
|
29 |
|
|
30 |
</beans> |
metacat-index/src/main/resources/application-context-fgdc-esri-csdg-80.xml | ||
---|---|---|
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 |
|
|
5 |
<bean id="fgdcEsri80Subprocessor" |
|
6 |
class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor"> |
|
7 |
<property name="matchDocument" |
|
8 |
value="/d100:systemMetadata/formatId[text() = 'http://www.esri.com/metadata/esriprof80.dtd']"></property> |
|
9 |
<property name="fieldList"> |
|
10 |
<list> |
|
11 |
<ref bean="fgdc.abstract" /> |
|
12 |
<ref bean="fgdc.beginDate"/> |
|
13 |
<ref bean="fgdc.class" /> |
|
14 |
<ref bean="fgdc.contactOrganization"/> |
|
15 |
<ref bean="fgdc.eastBoundCoord"/> |
|
16 |
<ref bean="fgdc.westBoundCoord" /> |
|
17 |
<ref bean="fgdc.northBoundCoord" /> |
|
18 |
<ref bean="fgdc.southBoundCoord" /> |
|
19 |
<ref bean="fgdc.edition" /> |
|
20 |
<ref bean="fgdc.endDate" /> |
|
21 |
<ref bean="fgdc.gcmdKeyword"/> |
|
22 |
<ref bean="fgdc.keywords"/> |
|
23 |
<ref bean="fgdc.geoform" /> |
|
24 |
<ref bean="fgdc.genus" /> |
|
25 |
<ref bean="fgdc.kingdom" /> |
|
26 |
<ref bean="fgdc.order" /> |
|
27 |
<ref bean="fgdc.phylum" /> |
|
28 |
<ref bean="fgdc.species" /> |
|
29 |
<ref bean="fgdc.origin" /> |
|
30 |
<ref bean="fgdc.placeKey" /> |
|
31 |
<ref bean="fgdc.pubDate" /> |
|
32 |
<ref bean="fgdc.purpose" /> |
|
33 |
<ref bean="fgdc.title" /> |
|
34 |
<ref bean="fgdc.web_url" /> |
|
35 |
<ref bean="fgdc.fileID" /> |
|
36 |
<ref bean="fgdc.fullText" /> |
|
37 |
<ref bean="fgdc.presentationCat" /> |
|
38 |
<ref bean="fgdc.author"/> |
|
39 |
<ref bean="fgdc.investigator" /> |
|
40 |
<ref bean="fgdc.site" /> |
|
41 |
</list> |
|
42 |
</property> |
|
43 |
</bean> |
|
44 |
</beans> |
metacat-index/src/main/resources/application-context-systemmeta100.xml | ||
---|---|---|
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> |
metacat-index/src/main/resources/application-context-fgdc-std-001-1998.xml | ||
---|---|---|
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 |
|
|
5 |
<bean id="fgdcstd0011998Subprocessor" |
|
6 |
class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor"> |
|
7 |
<property name="matchDocument" |
|
8 |
value="/d100:systemMetadata/formatId[text() = 'FGDC-STD-001-1998']"></property> |
|
9 |
<property name="fieldList"> |
|
10 |
<list> |
|
11 |
<ref bean="fgdc.abstract" /> |
|
12 |
<ref bean="fgdc.beginDate"/> |
|
13 |
<ref bean="fgdc.class" /> |
|
14 |
<ref bean="fgdc.contactOrganization"/> |
|
15 |
<ref bean="fgdc.eastBoundCoord"/> |
|
16 |
<ref bean="fgdc.westBoundCoord" /> |
|
17 |
<ref bean="fgdc.northBoundCoord" /> |
|
18 |
<ref bean="fgdc.southBoundCoord" /> |
|
19 |
<ref bean="fgdc.edition" /> |
|
20 |
<ref bean="fgdc.endDate" /> |
|
21 |
<ref bean="fgdc.gcmdKeyword"/> |
|
22 |
<ref bean="fgdc.keywords"/> |
|
23 |
<ref bean="fgdc.geoform" /> |
|
24 |
<ref bean="fgdc.genus" /> |
|
25 |
<ref bean="fgdc.kingdom" /> |
|
26 |
<ref bean="fgdc.order" /> |
|
27 |
<ref bean="fgdc.phylum" /> |
|
28 |
<ref bean="fgdc.species" /> |
|
29 |
<ref bean="fgdc.origin" /> |
|
30 |
<ref bean="fgdc.placeKey" /> |
|
31 |
<ref bean="fgdc.pubDate" /> |
|
32 |
<ref bean="fgdc.purpose" /> |
|
33 |
<ref bean="fgdc.title" /> |
|
34 |
<ref bean="fgdc.web_url" /> |
|
35 |
<ref bean="fgdc.fileID" /> |
|
36 |
<ref bean="fgdc.fullText" /> |
|
37 |
<ref bean="fgdc.presentationCat" /> |
|
38 |
<ref bean="fgdc.author"/> |
|
39 |
<ref bean="fgdc.investigator" /> |
|
40 |
<ref bean="fgdc.site" /> |
|
41 |
</list> |
|
42 |
</property> |
|
43 |
</bean> |
|
44 |
</beans> |
metacat-index/src/main/resources/application-context-dryad31.xml | ||
---|---|---|
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 |
|
|
5 |
<bean id="dryad31Subprocessor" |
|
6 |
class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor"> |
|
7 |
<property name="matchDocument" |
|
8 |
value="/d100:systemMetadata/formatId[text() = 'http://datadryad.org/profile/v3.1/dryad.xsd']"></property> |
|
9 |
<property name="fieldList"> |
|
10 |
<list> |
|
11 |
<ref bean="dryad.abstract" /> |
|
12 |
<ref bean="dryad.author" /> |
|
13 |
<ref bean="dryad.investigator" /> |
|
14 |
<ref bean="dryad.keywords" /> |
|
15 |
<ref bean="dryad.origin" /> |
|
16 |
<ref bean="dryad.pubDate" /> |
|
17 |
<ref bean="dryad.site" /> |
|
18 |
<ref bean="dryad.title" /> |
|
19 |
<ref bean="dryad.scientificName" /> |
|
20 |
<ref bean="dryad.fileID" /> |
|
21 |
<ref bean="dryad.fullText" /> |
|
22 |
</list> |
|
23 |
</property> |
|
24 |
</bean> |
|
25 |
</beans> |
metacat-index/src/main/resources/application-context-dryad30.xml | ||
---|---|---|
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 |
|
|
5 |
<bean id="dryad30Subprocessor" |
|
6 |
class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor"> |
|
7 |
<property name="matchDocument" |
|
8 |
value="/d100:systemMetadata/formatId[text() = 'http://purl.org/dryad/terms/']"></property> |
|
9 |
<property name="fieldList"> |
|
10 |
<list> |
|
11 |
<ref bean="dryad.abstract" /> |
|
12 |
<ref bean="dryad.author" /> |
|
13 |
<ref bean="dryad.investigator" /> |
|
14 |
<ref bean="dryad.keywords" /> |
|
15 |
<ref bean="dryad.origin" /> |
|
16 |
<ref bean="dryad.pubDate" /> |
|
17 |
<ref bean="dryad.site" /> |
|
18 |
<ref bean="dryad.title" /> |
|
19 |
<ref bean="dryad.scientificName" /> |
|
20 |
<ref bean="dryad.fileID" /> |
|
21 |
<ref bean="dryad.fullText" /> |
|
22 |
</list> |
|
23 |
</property> |
|
24 |
</bean> |
|
25 |
</beans> |
metacat-index/src/main/resources/application-context-systemmeta064.xml | ||
---|---|---|
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_064" class="java.util.ArrayList"> |
|
5 |
<constructor-arg> |
|
6 |
<list> |
|
7 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
8 |
<!-- --> |
|
9 |
<constructor-arg name="name" value="id" /> |
|
10 |
<constructor-arg name="xpath" |
|
11 |
value="/d064:systemMetadata/identifier/text()" /> |
|
12 |
</bean> |
|
13 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
14 |
<!-- --> |
|
15 |
<constructor-arg name="name" value="objectformat" /> |
|
16 |
<constructor-arg name="xpath" |
|
17 |
value="/d064:systemMetadata/fmtid/text()" /> |
|
18 |
</bean> |
|
19 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
20 |
<!-- --> |
|
21 |
<constructor-arg name="name" value="size" /> |
|
22 |
<constructor-arg name="xpath" |
|
23 |
value="/d064:systemMetadata/size/text()" /> |
|
24 |
</bean> |
|
25 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
26 |
<!-- --> |
|
27 |
<constructor-arg name="name" value="checksum" /> |
|
28 |
<constructor-arg name="xpath" |
|
29 |
value="/d064:systemMetadata/checksum/text()" /> |
|
30 |
</bean> |
|
31 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
32 |
<!-- --> |
|
33 |
<constructor-arg name="name" value="submitter" /> |
|
34 |
<constructor-arg name="xpath" |
|
35 |
value="/d064:systemMetadata/submitter/text()" /> |
|
36 |
</bean> |
|
37 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
38 |
<!-- --> |
|
39 |
<constructor-arg name="name" value="checksumAlgorithm" /> |
|
40 |
<constructor-arg name="xpath" |
|
41 |
value="/d064:systemMetadata/checksum/@algorithm" /> |
|
42 |
</bean> |
|
43 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
44 |
<!-- --> |
|
45 |
<constructor-arg name="name" value="rightsholder" /> |
|
46 |
<constructor-arg name="xpath" |
|
47 |
value="/d064:systemMetadata/rightsHolder/text()" /> |
|
48 |
</bean> |
|
49 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
50 |
<!-- --> |
|
51 |
<constructor-arg name="name" value="rep_allowed" /> |
|
52 |
<constructor-arg name="xpath" |
|
53 |
value="/d064:systemMetadata/replicationPolicy/@replicationAllowed" /> |
|
54 |
</bean> |
|
55 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
56 |
<!-- --> |
|
57 |
<constructor-arg name="name" value="n_replicas" /> |
|
58 |
<constructor-arg name="xpath" |
|
59 |
value="/d064:systemMetadata/replicationPolicy/@numberReplicas" /> |
|
60 |
</bean> |
|
61 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
62 |
<!-- --> |
|
63 |
<constructor-arg name="name" value="pref_rep_mn" /> |
|
64 |
<constructor-arg name="xpath" |
|
65 |
value="/d064:systemMetadata/replicationPolicy/preferredMemberNode/text()" /> |
|
66 |
<property name="multivalue" value="true" /> |
|
67 |
</bean> |
|
68 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
69 |
<!-- --> |
|
70 |
<constructor-arg name="name" value="blocked_rep_mn" /> |
|
71 |
<constructor-arg name="xpath" |
|
72 |
value="/d064:systemMetadata/replicationPolicy/blockedMemberNode/text()" /> |
|
73 |
<property name="multivalue" value="true" /> |
|
74 |
</bean> |
|
75 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
76 |
<!-- --> |
|
77 |
<constructor-arg name="name" value="obsoletes" /> |
|
78 |
<constructor-arg name="xpath" |
|
79 |
value="/d064:systemMetadata/obsoletes/text()" /> |
|
80 |
</bean> |
|
81 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
82 |
<!-- --> |
|
83 |
<constructor-arg name="name" value="obsoletedby" /> |
|
84 |
<constructor-arg name="xpath" |
|
85 |
value="/d064:systemMetadata/obsoletedBy/text()" /> |
|
86 |
</bean> |
|
87 |
<!--<bean class="org.dataone.cn.indexer.parser.SolrFieldResourceMap"> --> |
|
88 |
<!--<constructor-arg name="name" value="resourcemap"/> --> |
|
89 |
<!--<constructor-arg name="xpath" value="/d064:systemMetadata/objectFormat/fmtid/text()"/> --> |
|
90 |
<!--<constructor-arg name="resourceMapXpath" value="//cito:isDocumentedBy/@rdf:resource"/> --> |
|
91 |
<!--<constructor-arg name="multivalue" value="false"/> --> |
|
92 |
<!--<constructor-arg name="xmlNamespaceConfig" ref="xmlNamespaceResource"/> --> |
|
93 |
<!--<property name="resourceValueMatch" value="http://www.openarchives.org/ore/terms"/> --> |
|
94 |
<!--</bean> --> |
|
95 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
96 |
<!-- --> |
|
97 |
<constructor-arg name="name" value="dateuploaded" /> |
|
98 |
<constructor-arg name="xpath" |
|
99 |
value="/d064:systemMetadata/dateUploaded/text()" /> |
|
100 |
<property name="converter" ref="dateConverter" /> |
|
101 |
</bean> |
|
102 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
103 |
<!-- --> |
|
104 |
<constructor-arg name="name" value="datemodified" /> |
|
105 |
<constructor-arg name="xpath" |
|
106 |
value="/d064:systemMetadata/dateSysMetadataModified/text()" /> |
|
107 |
<property name="converter" ref="dateConverter" /> |
|
108 |
</bean> |
|
109 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
110 |
<!-- --> |
|
111 |
<constructor-arg name="name" value="datasource" /> |
|
112 |
<constructor-arg name="xpath" |
|
113 |
value="/d064:systemMetadata/originMemberNode/text()" /> |
|
114 |
</bean> |
|
115 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
116 |
<!-- --> |
|
117 |
<constructor-arg name="name" value="auth_mn" /> |
|
118 |
<constructor-arg name="xpath" |
|
119 |
value="/d064:systemMetadata/authoritativeMemberNode/text()" /> |
|
120 |
</bean> |
|
121 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
122 |
<!-- --> |
|
123 |
<constructor-arg name="name" value="replica_mn" /> |
|
124 |
<constructor-arg name="xpath" |
|
125 |
value="/d064:systemMetadata/replica/replicaMemberNode/text()" /> |
|
126 |
<property name="multivalue" value="true" /> |
|
127 |
</bean> |
|
128 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
129 |
<!-- --> |
|
130 |
<constructor-arg name="name" value="replica_verified" /> |
|
131 |
<constructor-arg name="xpath" |
|
132 |
value="/d064:systemMetadata/replica/replicaVerified/text()" /> |
|
133 |
<property name="multivalue" value="true" /> |
|
134 |
<property name="converter" ref="dateConverter" /> |
|
135 |
</bean> |
|
136 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
137 |
<!-- --> |
|
138 |
<constructor-arg name="name" value="readPermission" /> |
|
139 |
<constructor-arg name="xpath" |
|
140 |
value="/d064:systemMetadata/accessPolicy/allow[permission= 'read']/subject/text()" /> |
|
141 |
<property name="multivalue" value="true" /> |
|
142 |
</bean> |
|
143 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
144 |
<!-- --> |
|
145 |
<constructor-arg name="name" value="writePermission" /> |
|
146 |
<constructor-arg name="xpath" |
|
147 |
value="/d064:systemMetadata/accessPolicy/allow[permission= 'write']/subject/text()" /> |
|
148 |
<property name="multivalue" value="true" /> |
|
149 |
</bean> |
|
150 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
151 |
<!-- --> |
|
152 |
<constructor-arg name="name" value="changePermission" /> |
|
153 |
<constructor-arg name="xpath" |
|
154 |
value="/d064:systemMetadata/accessPolicy/allow[permission= 'changePermission']/subject/text()" /> |
|
155 |
<property name="multivalue" value="true" /> |
|
156 |
</bean> |
|
157 |
<bean class="org.dataone.cn.indexer.parser.SolrField"> |
|
158 |
<!-- --> |
|
159 |
<constructor-arg name="name" value="isPublic" /> |
|
160 |
<constructor-arg name="xpath" |
|
161 |
value="/d064:systemMetadata/accessPolicy/allow[permission= 'read']/subject[text()='public']/text()" /> |
|
162 |
<property name="multivalue" value="true" /> |
|
163 |
<property name="converter" ref="booleanPublicConverter" /> |
|
164 |
</bean> |
|
165 |
|
|
166 |
<bean class="org.dataone.cn.indexer.parser.WebUrlSolrField"> |
|
167 |
<!-- --> |
|
168 |
<constructor-arg name="name" value="web_url" /> |
|
169 |
<constructor-arg name="xpath" |
|
170 |
value="/d064:systemMetadata/identifier/text()" /> |
|
171 |
<constructor-arg name="nodesXPath" value="//replica[replicationStatus/text()='completed']/replicaMemberNode/text()" /> |
|
172 |
<property name="nodeRegistryService" ref="nodeRegistryService" /> |
|
173 |
<property name="onlyReferenceCNs" value="true" /> |
|
174 |
<property name="multivalue" value="true" /> |
|
175 |
</bean> |
|
176 |
<bean class="org.dataone.cn.indexer.parser.WebUrlSolrField"> |
|
177 |
<!-- --> |
|
178 |
<constructor-arg name="name" value="data_url" /> |
|
179 |
<constructor-arg name="xpath" |
|
180 |
value="/d064:systemMetadata/identifier/text()" /> |
|
181 |
<constructor-arg name="nodesXPath" value="//replica[replicationStatus/text()='completed']/replicaMemberNode/text()" /> |
|
182 |
<property name="nodeRegistryService" ref="nodeRegistryService" /> |
|
183 |
<property name="onlyReferenceCNs" value="false" /> |
|
184 |
<property name="multivalue" value="false" /> |
|
185 |
</bean> |
|
186 |
|
|
187 |
</list> |
|
188 |
</constructor-arg> |
|
189 |
</bean> |
|
190 |
|
|
191 |
</beans> |
metacat-index/src/main/resources/application-context-resource-map.xml | ||
---|---|---|
1 |
<beans xmlns="http://www.springframework.org/schema/beans" |
|
2 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
3 |
xmlns:p="http://www.springframework.org/schema/p" |
|
4 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
|
5 |
|
|
6 |
<bean id="resourceMapSubprocessor" class="edu.ucsb.nceas.metacat.index.resourcemap.ResourceMapSubprocessor"> |
|
7 |
<property name="matchDocument" |
|
8 |
value="/d100:systemMetadata/formatId[text()='http://www.openarchives.org/ore/terms'] | /d100:systemMetadata/formatId[text()='http://www.w3.org/TR/rdf-syntax-grammar']" /> |
|
9 |
<!-- <property name="httpService" ref="httpService"></property> |
|
10 |
<property name="solrQueryUri" value="${solr.query.uri}"></property> --> |
|
11 |
</bean> |
|
12 |
|
|
13 |
<!-- <bean id="httpService" class="org.dataone.cn.indexer.solrhttp.HTTPService"> |
|
14 |
<constructor-arg ref="httpClientFactory" /> |
|
15 |
<property name="solrSchemaPath" value="${solr.schema.path}" /> |
|
16 |
<property name="solrIndexUri" value="${solr.index.uri}" /> |
|
17 |
</bean> |
|
18 |
|
|
19 |
<bean id="httpClientFactory" class="org.springframework.http.client.HttpComponentsClientHttpRequestFactory" |
|
20 |
p:connectTimeout="5000" > |
|
21 |
<constructor-arg ref="httpClient" /> |
|
22 |
</bean> |
|
23 |
|
|
24 |
<bean id="httpClient" class="org.apache.http.impl.client.DefaultHttpClient"> |
|
25 |
<constructor-arg ref="httpConnectionManager"/> |
|
26 |
</bean> |
|
27 |
|
|
28 |
<bean id="httpConnectionManager" class="org.apache.http.impl.conn.SingleClientConnManager"/> --> |
|
29 |
|
|
30 |
</beans> |
metacat-index/src/main/resources/index-processor-context.xml | ||
---|---|---|
24 | 24 |
<import resource="application-context-dryad30.xml" /> |
25 | 25 |
<import resource="application-context-dryad31.xml" /> |
26 | 26 |
|
27 |
<import resource="application-context-resourcemap.xml" /> |
|
27 |
<import resource="application-context-resource-map.xml" />
|
|
28 | 28 |
<import resource="application-context-systemmeta100.xml" /> |
29 | 29 |
|
30 | 30 |
<bean id="dateConverter" class="org.dataone.cn.indexer.convert.SolrDateConverter" /> |
Also available in: Unified diff
Remove the application context files (except the resource map one). It will use the ones in the d1_cn_index_processor.