Revision 8603
Added by ben leinfelder almost 11 years ago
metacat-index/src/main/resources/application-context-eml200.xml | ||
---|---|---|
19 | 19 |
<ref bean="eml.site" /> |
20 | 20 |
<ref bean="eml.beginDate" /> |
21 | 21 |
<ref bean="eml.endDate" /> |
22 |
<ref bean="eml.singleBeginDate" /> |
|
23 |
<ref bean="eml.singleEndDate" /> |
|
24 | 22 |
<ref bean="eml.pubDate" /> |
25 | 23 |
<ref bean="eml.author" /> |
26 | 24 |
<ref bean="eml.author_lname" /> |
metacat-index/src/main/resources/application-context-eml201.xml | ||
---|---|---|
19 | 19 |
<ref bean="eml.site" /> |
20 | 20 |
<ref bean="eml.beginDate" /> |
21 | 21 |
<ref bean="eml.endDate" /> |
22 |
<ref bean="eml.singleBeginDate" /> |
|
23 |
<ref bean="eml.singleEndDate" /> |
|
24 | 22 |
<ref bean="eml.pubDate" /> |
25 | 23 |
<ref bean="eml.author" /> |
26 | 24 |
<ref bean="eml.authorGivenName"/> |
metacat-index/src/main/resources/application-context-eml210.xml | ||
---|---|---|
23 | 23 |
<ref bean="eml.site" /> |
24 | 24 |
<ref bean="eml.beginDate" /> |
25 | 25 |
<ref bean="eml.endDate" /> |
26 |
<ref bean="eml.singleBeginDate" /> |
|
27 |
<ref bean="eml.singleEndDate" /> |
|
28 | 26 |
<ref bean="eml.pubDate" /> |
29 | 27 |
<ref bean="eml.author" /> |
30 | 28 |
<ref bean="eml.authorGivenName"/> |
metacat-index/src/main/resources/application-context-eml211.xml | ||
---|---|---|
19 | 19 |
<ref bean="eml.site" /> |
20 | 20 |
<ref bean="eml.beginDate" /> |
21 | 21 |
<ref bean="eml.endDate" /> |
22 |
<ref bean="eml.singleBeginDate" /> |
|
23 |
<ref bean="eml.singleEndDate" /> |
|
24 | 22 |
<ref bean="eml.pubDate" /> |
25 | 23 |
<ref bean="eml.author" /> |
26 | 24 |
<ref bean="eml.authorGivenName"/> |
metacat-index/src/main/resources/application-context-eml-base.xml | ||
---|---|---|
65 | 65 |
<bean id="eml.beginDate" class="org.dataone.cn.indexer.parser.SolrField"> |
66 | 66 |
<constructor-arg name="name" value="beginDate" /> |
67 | 67 |
<constructor-arg name="xpath" |
68 |
value="//dataset/coverage/temporalCoverage/rangeOfDates/beginDate/calendarDate/text()" /> |
|
68 |
value="//dataset/coverage/temporalCoverage/rangeOfDates/beginDate/calendarDate/text() | //dataset/coverage/temporalCoverage/singleDateTime/calendarDate/text()" />
|
|
69 | 69 |
<property name="multivalue" value="false" /> |
70 | 70 |
<property name="converter" ref="dateConverter" /> |
71 | 71 |
</bean> |
... | ... | |
73 | 73 |
<bean id="eml.endDate" class="org.dataone.cn.indexer.parser.SolrField"> |
74 | 74 |
<constructor-arg name="name" value="endDate" /> |
75 | 75 |
<constructor-arg name="xpath" |
76 |
value="//dataset/coverage/temporalCoverage/rangeOfDates/endDate/calendarDate/text()" /> |
|
76 |
value="//dataset/coverage/temporalCoverage/rangeOfDates/endDate/calendarDate/text() | //dataset/coverage/temporalCoverage/singleDateTime/calendarDate/text()" />
|
|
77 | 77 |
<property name="multivalue" value="false" /> |
78 | 78 |
<property name="converter" ref="dateConverter" /> |
79 | 79 |
</bean> |
80 | 80 |
|
81 |
<bean id="eml.singleBeginDate" class="org.dataone.cn.indexer.parser.SolrField"> |
|
82 |
<constructor-arg name="name" value="beginDate" /> |
|
83 |
<constructor-arg name="xpath" |
|
84 |
value="//dataset/coverage/temporalCoverage/singleDateTime/calendarDate/text()" /> |
|
85 |
<property name="multivalue" value="false" /> |
|
86 |
<property name="converter" ref="dateConverter" /> |
|
87 |
</bean> |
|
88 |
|
|
89 |
<bean id="eml.singleEndDate" class="org.dataone.cn.indexer.parser.SolrField"> |
|
90 |
<constructor-arg name="name" value="endDate" /> |
|
91 |
<constructor-arg name="xpath" |
|
92 |
value="//dataset/coverage/temporalCoverage/singleDateTime/calendarDate/text()" /> |
|
93 |
<property name="multivalue" value="false" /> |
|
94 |
<property name="converter" ref="dateConverter" /> |
|
95 |
</bean> |
|
96 |
|
|
97 | 81 |
<bean id="eml.pubDate" class="org.dataone.cn.indexer.parser.SolrField"> |
98 | 82 |
<constructor-arg name="name" value="pubDate" /> |
99 | 83 |
<constructor-arg name="xpath" value="//dataset/pubDate/text()" /> |
Also available in: Unified diff
use rangeOfDates | singleDateTime to populate the beginDate and endDate index fields. https://projects.ecoinformatics.org/ecoinfo/issues/6285