Project

General

Profile

« Previous | Next » 

Revision 4566

mappings/: Moved year/month/dayCollected mappings from Veg+-VegCore.csv to VegCore-VegBIEN.csv so that Veg+-VegCore.csv contains only renamings, not business logic. Note that this allows the year/month/dayCollected values to bypass the additional _dateRangeStart filter that is applied to text dates. The priority of the plain dateCollected field is now higher than the year/month/dayCollected fields when both are specified, because the dateCollected field presumably contains verbatim text while the year/month/dayCollected fields contain parsed date parts.

View differences:

test.xml.ref
184 184
            <taxonoccurrence>
185 185
                <aggregateoccurrence>
186 186
                    <collectiondate>
187
                        <_date>
188
                            <date>
189
                                <_alt>
190
                                    <0>$VerbatimCollectingDate</0>
191
                                    <1>
192
                                        <_date>
193
                                            <day>
194
                                                <_nullIf>
195
                                                    <null>0</null>
196
                                                    <type>float</type>
197
                                                    <value>$DayCollected</value>
198
                                                </_nullIf>
199
                                            </day>
200
                                            <month>
201
                                                <_nullIf>
202
                                                    <null>0</null>
203
                                                    <type>float</type>
204
                                                    <value>$MonthCollected</value>
205
                                                </_nullIf>
206
                                            </month>
207
                                            <year>
208
                                                <_nullIf>
209
                                                    <null>0</null>
210
                                                    <type>float</type>
211
                                                    <value>$YearCollected</value>
212
                                                </_nullIf>
213
                                            </year>
214
                                        </_date>
215
                                    </1>
216
                                </_alt>
217
                            </date>
218
                        </_date>
187
                        <_alt>
188
                            <1><_date><date>$VerbatimCollectingDate</date></_date></1>
189
                            <2>
190
                                <_date>
191
                                    <day>
192
                                        <_nullIf>
193
                                            <null>0</null>
194
                                            <type>float</type>
195
                                            <value>$DayCollected</value>
196
                                        </_nullIf>
197
                                    </day>
198
                                    <month>
199
                                        <_nullIf>
200
                                            <null>0</null>
201
                                            <type>float</type>
202
                                            <value>$MonthCollected</value>
203
                                        </_nullIf>
204
                                    </month>
205
                                    <year>
206
                                        <_nullIf>
207
                                            <null>0</null>
208
                                            <type>float</type>
209
                                            <value>$YearCollected</value>
210
                                        </_nullIf>
211
                                    </year>
212
                                </_date>
213
                            </2>
214
                        </_alt>
219 215
                    </collectiondate>
220 216
                    <count>$IndividualCount</count>
221 217
                    <notes>$FieldNotes</notes>

Also available in: Unified diff