Project

General

Profile

« Previous | Next » 

Revision 4562

mappings/VegCore-VegBIEN.csv: Don't map dateCollected to locationevent.obsstartdate/obsenddate because this is the date the specimen was collected, not the date (range) of the entire collection event. This distinction may not be meaningful for specimens data, but VegBIEN should reflect what the data provider designated. This also reduces the number of dateCollected-related mappings needed for any dateCollected-related field, such as year/month/dayCollected.

View differences:

test.xml.ref
48 48
            </namedplace_id>
49 49
        </locationdetermination>
50 50
        <locationevent>
51
            <obsenddate>
52
                <_date>
53
                    <date>
54
                        <_dateRangeEnd>
55
                            <value>
56
                                <_date>
57
                                    <day>
58
                                        <_nullIf>
59
                                            <null>0</null>
60
                                            <type>float</type>
61
                                            <value>$coll_day</value>
62
                                        </_nullIf>
63
                                    </day>
64
                                    <month>
65
                                        <_nullIf>
66
                                            <null>0</null>
67
                                            <type>float</type>
68
                                            <value>$coll_month</value>
69
                                        </_nullIf>
70
                                    </month>
71
                                    <year>
72
                                        <_nullIf>
73
                                            <null>0</null>
74
                                            <type>float</type>
75
                                            <value>$coll_year</value>
76
                                        </_nullIf>
77
                                    </year>
78
                                </_date>
79
                            </value>
80
                        </_dateRangeEnd>
81
                    </date>
82
                </_date>
83
            </obsenddate>
84
            <obsstartdate>
85
                <_date>
86
                    <date>
87
                        <_dateRangeStart>
88
                            <value>
89
                                <_date>
90
                                    <day>
91
                                        <_nullIf>
92
                                            <null>0</null>
93
                                            <type>float</type>
94
                                            <value>$coll_day</value>
95
                                        </_nullIf>
96
                                    </day>
97
                                    <month>
98
                                        <_nullIf>
99
                                            <null>0</null>
100
                                            <type>float</type>
101
                                            <value>$coll_month</value>
102
                                        </_nullIf>
103
                                    </month>
104
                                    <year>
105
                                        <_nullIf>
106
                                            <null>0</null>
107
                                            <type>float</type>
108
                                            <value>$coll_year</value>
109
                                        </_nullIf>
110
                                    </year>
111
                                </_date>
112
                            </value>
113
                        </_dateRangeStart>
114
                    </date>
115
                </_date>
116
            </obsstartdate>
117 51
            <taxonoccurrence>
118 52
                <aggregateoccurrence>
119 53
                    <collectiondate>

Also available in: Unified diff