Revision 3919
Added by Aaron Marcuse-Kubitza over 12 years ago
import.specimens.xml.ref | ||
---|---|---|
137 | 137 |
<collectiondate> |
138 | 138 |
<_date> |
139 | 139 |
<date> |
140 |
<_alt> |
|
141 |
<1> |
|
142 |
<_date> |
|
143 |
<day> |
|
144 |
<_nullIf> |
|
145 |
<null>0</null> |
|
146 |
<type>float</type> |
|
147 |
<value>$DayCollected</value> |
|
148 |
</_nullIf> |
|
149 |
</day> |
|
150 |
<month> |
|
151 |
<_nullIf> |
|
152 |
<null>0</null> |
|
153 |
<type>float</type> |
|
154 |
<value>$MonthCollected</value> |
|
155 |
</_nullIf> |
|
156 |
</month> |
|
157 |
<year> |
|
158 |
<_nullIf> |
|
159 |
<null>0</null> |
|
160 |
<type>float</type> |
|
161 |
<value>$YearCollected</value> |
|
162 |
</_nullIf> |
|
163 |
</year> |
|
164 |
</_date> |
|
165 |
</1> |
|
166 |
</_alt> |
|
140 |
<_dateRangeStart> |
|
141 |
<value> |
|
142 |
<_alt> |
|
143 |
<1> |
|
144 |
<_date> |
|
145 |
<day> |
|
146 |
<_nullIf> |
|
147 |
<null>0</null> |
|
148 |
<type>float</type> |
|
149 |
<value>$DayCollected</value> |
|
150 |
</_nullIf> |
|
151 |
</day> |
|
152 |
<month> |
|
153 |
<_nullIf> |
|
154 |
<null>0</null> |
|
155 |
<type>float</type> |
|
156 |
<value>$MonthCollected</value> |
|
157 |
</_nullIf> |
|
158 |
</month> |
|
159 |
<year> |
|
160 |
<_nullIf> |
|
161 |
<null>0</null> |
|
162 |
<type>float</type> |
|
163 |
<value>$YearCollected</value> |
|
164 |
</_nullIf> |
|
165 |
</year> |
|
166 |
</_date> |
|
167 |
</1> |
|
168 |
</_alt> |
|
169 |
</value> |
|
170 |
</_dateRangeStart> |
|
167 | 171 |
</date> |
168 | 172 |
</_date> |
169 | 173 |
</collectiondate> |
Also available in: Unified diff
VegBIEN mappings: Wrapped dates in _date() and _dateRangeStart()/_dateRangeEnd(), to assist in importing date and date range values that PostgreSQL cannot parse. This will increase the import time, but hopefully also decrease the # of invalid values in the errors tables. (These functions can later be optimized to reduce the impact on import time.)