Project

General

Profile

« Previous | Next » 

Revision 4043

mappings/DwC2-VegBIEN.specimens.csv, DwC1-DwC2.specimens.csv: Split eventDate into eventDate and dateCollected, where eventDate refers only to the date of the sampling event, but dateCollected also refers to the date the particular specimen was collected. (This distinction is important in merging with VegCSV, because in plots data, these two fields are distinct.) Remapped datasources with dateCollected-related fields to new dateCollected.

View differences:

inputs/QMOR/test/import.specimens.xml.ref
101 101
            </_range>
102 102
        </elevationrange>
103 103
        <locationdetermination>
104
            <coordsaccuracy><_noCV><value><_alt><1>$coordinateUncertaintyInMeters</1></_alt></value></_noCV></coordsaccuracy>
104
            <coordsaccuracy><_noCV><value>$coordinateUncertaintyInMeters</value></_noCV></coordsaccuracy>
105 105
            <footprintgeometry_dwc>$footprintWKT</footprintgeometry_dwc>
106 106
            <latitude>
107 107
                <_alt>
......
172 172
        </locationdetermination>
173 173
        <locationevent>
174 174
            <method_id><method><name>$samplingProtocol</name></method></method_id>
175
            <obsenddate><_date><date><_dateRangeEnd><value><_alt><2>$eventDate</2></_alt></value></_dateRangeEnd></date></_date></obsenddate>
176
            <obsstartdate><_date><date><_dateRangeStart><value><_alt><2>$eventDate</2></_alt></value></_dateRangeStart></date></_date></obsstartdate>
175
            <obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
176
            <obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
177 177
            <taxonoccurrence>
178 178
                <aggregateoccurrence>
179
                    <collectiondate><_date><date><_alt><2>$eventDate</2></_alt></date></_date></collectiondate>
180 179
                    <count>$individualCount</count>
181 180
                    <plantobservation>
182 181
                        <definedvalue fkey="tablerecord_id">
......
202 201
                        </specimenreplicate>
203 202
                    </plantobservation>
204 203
                </aggregateoccurrence>
205
                <sourceaccessioncode><_alt><1>$id</1></_alt></sourceaccessioncode>
204
                <sourceaccessioncode>$id</sourceaccessioncode>
206 205
                <taxondetermination>
207 206
                    <isoriginal>true</isoriginal>
208 207
                    <role>identifier</role>
......
283 282
                            </plantname_id>
284 283
                        </plantconcept>
285 284
                    </plantconcept_id>
286
                    <determinationdate><_date><date><_dateRangeStart><value><_alt><2>$dateIdentified</2></_alt></value></_dateRangeStart></date></_date></determinationdate>
285
                    <determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
287 286
                    <taxonfit>$identificationQualifier</taxonfit>
288 287
                </taxondetermination>
289 288
                <verbatimcollectorname>$recordedBy</verbatimcollectorname>
......
300 299
                </3>
301 300
            </_merge>
302 301
        </locationnarrative>
303
        <sourceaccessioncode><_alt><1>$id</1></_alt></sourceaccessioncode>
302
        <sourceaccessioncode>$id</sourceaccessioncode>
304 303
    </location>
305 304
</VegBIEN>
306 305
Inserted 34 new rows into database
mappings/DwC2-VegBIEN.specimens.csv
21 21
continent,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,country,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",
22 22
samplingProtocol,/location/locationevent/*_id/method/name,
23 23
fieldNumber,/location/locationevent/authoreventcode,
24
eventDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value,
25
eventDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value,
26
eventDate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date,
24
eventDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1,
25
dateCollected,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2,
26
eventDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1,
27
dateCollected,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2,
28
dateCollected,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date,
27 29
individualCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/count,
28 30
fieldNotes,/location/locationevent/taxonoccurrence/aggregateoccurrence/notes,
29 31
recordNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/authorplantcode,
mappings/DwC-VegBIEN.specimens.csv
63 63
samplingProtocol,/location/locationevent/*_id/method/name,
64 64
FieldNumber,/location/locationevent/authoreventcode,
65 65
fieldNumber,/location/locationevent/authoreventcode,
66
EventDate/_alt,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt,Allow datasource to define custom eventDate mappings that don't pass through the default eventDate mapping
67
eventDate/_alt,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt,Allow datasource to define custom eventDate mappings that don't pass through the default eventDate mapping
68
DayCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
69
dayCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
70
MonthCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
71
monthCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
72
YearCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
73
yearCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
74
EventDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2,
75
eventDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2,
76
CollectedDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/3,
77
collectedDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/3,
78
EventDate/_alt,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt,Allow datasource to define custom eventDate mappings that don't pass through the default eventDate mapping
79
eventDate/_alt,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt,Allow datasource to define custom eventDate mappings that don't pass through the default eventDate mapping
80
DayCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
81
dayCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
82
MonthCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
83
monthCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
84
YearCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
85
yearCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
86
EventDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2,
87
eventDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2,
88
CollectedDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/3,
89
collectedDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/3,
90
EventDate/_alt,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt,Allow datasource to define custom eventDate mappings that don't pass through the default eventDate mapping
91
eventDate/_alt,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt,Allow datasource to define custom eventDate mappings that don't pass through the default eventDate mapping
66
EventDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1,
67
eventDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1,
68
DateCollected/_alt,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt,Allow datasource to define custom dateCollected mappings that don't pass through the default dateCollected mapping
69
dateCollected/_alt,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt,Allow datasource to define custom dateCollected mappings that don't pass through the default dateCollected mapping
70
DayCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
71
dayCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
72
MonthCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
73
monthCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
74
YearCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
75
yearCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
76
DateCollected,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/2,
77
dateCollected,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/2,
78
CollectedDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/3,
79
collectedDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/3,
80
EventDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1,
81
eventDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1,
82
DateCollected/_alt,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt,Allow datasource to define custom dateCollected mappings that don't pass through the default dateCollected mapping
83
dateCollected/_alt,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt,Allow datasource to define custom dateCollected mappings that don't pass through the default dateCollected mapping
84
DayCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
85
dayCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
86
MonthCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
87
monthCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
88
YearCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
89
yearCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
90
DateCollected,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/2,
91
dateCollected,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/2,
92
CollectedDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/3,
93
collectedDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/3,
94
DateCollected/_alt,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt,Allow datasource to define custom dateCollected mappings that don't pass through the default dateCollected mapping
95
dateCollected/_alt,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt,Allow datasource to define custom dateCollected mappings that don't pass through the default dateCollected mapping
92 96
DayCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
93 97
dayCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
94 98
MonthCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
95 99
monthCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
96 100
YearCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
97 101
yearCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
98
EventDate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/2,
99
eventDate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/2,
102
DateCollected,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/2,
103
dateCollected,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/2,
100 104
CollectedDate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/3,
101 105
collectedDate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/3,
102 106
IndividualCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/count,
inputs/MT/test/import.specimens.xml.ref
70 70
                        <value>$establishmentMeans</value>
71 71
                    </_map>
72 72
                </isnative>
73
                <sourceaccessioncode><_alt><1>$id</1></_alt></sourceaccessioncode>
73
                <sourceaccessioncode>$id</sourceaccessioncode>
74 74
                <taxondetermination>
75 75
                    <isoriginal>true</isoriginal>
76 76
                    <role>identifier</role>
......
119 119
                </taxondetermination>
120 120
            </taxonoccurrence>
121 121
        </locationevent>
122
        <locationnarrative><_merge><1>$locality</1></_merge></locationnarrative>
123
        <sourceaccessioncode><_alt><1>$id</1></_alt></sourceaccessioncode>
122
        <locationnarrative>$locality</locationnarrative>
123
        <sourceaccessioncode>$id</sourceaccessioncode>
124 124
    </location>
125 125
</VegBIEN>
126 126
Inserted 22 new rows into database
inputs/XAL/test/import.specimens.xml.ref
9 9
            </_merge>
10 10
        </authorlocationcode>
11 11
        <elevation>
12
            <_alt>
13
                <2>
14
                    <_avg>
15
                        <max>
16
                            <_units>
17
                                <default>m</default>
18
                                <to>m</to>
19
                                <to></to>
12
            <_avg>
13
                <max>
14
                    <_units>
15
                        <default>m</default>
16
                        <to>m</to>
17
                        <to></to>
18
                        <value>
19
                            <_replace>
20
                                <\bca\.?></\bca\.?>
21
                                <value>$MaximumElevation</value>
22
                            </_replace>
23
                        </value>
24
                    </_units>
25
                </max>
26
                <min>
27
                    <_units>
28
                        <default>m</default>
29
                        <to>m</to>
30
                        <to></to>
31
                        <value>
32
                            <_rangeStart>
20 33
                                <value>
21 34
                                    <_replace>
22 35
                                        <\bca\.?></\bca\.?>
23
                                        <value>$MaximumElevation</value>
36
                                        <value>$MinimumElevation</value>
24 37
                                    </_replace>
25 38
                                </value>
26
                            </_units>
27
                        </max>
28
                        <min>
29
                            <_units>
30
                                <default>m</default>
31
                                <to>m</to>
32
                                <to></to>
33
                                <value>
34
                                    <_rangeStart>
35
                                        <value>
36
                                            <_replace>
37
                                                <\bca\.?></\bca\.?>
38
                                                <value>$MinimumElevation</value>
39
                                            </_replace>
40
                                        </value>
41
                                    </_rangeStart>
42
                                </value>
43
                            </_units>
44
                        </min>
45
                    </_avg>
46
                </2>
47
            </_alt>
39
                            </_rangeStart>
40
                        </value>
41
                    </_units>
42
                </min>
43
            </_avg>
48 44
        </elevation>
49 45
        <elevationrange>
50 46
            <_range>
......
95 91
            </_range>
96 92
        </elevationrange>
97 93
        <locationdetermination>
98
            <coordsaccuracy><_noCV><value><_alt><2>$CoordinatePrecision</2></_alt></value></_noCV></coordsaccuracy>
94
            <coordsaccuracy><_noCV><value>$CoordinatePrecision</value></_noCV></coordsaccuracy>
99 95
            <latitude>
100
                <_alt>
101
                    <2>
102
                        <_nullIf>
103
                            <null>0</null>
104
                            <type>float</type>
105
                            <value>$Latitude</value>
106
                        </_nullIf>
107
                    </2>
108
                </_alt>
96
                <_nullIf>
97
                    <null>0</null>
98
                    <type>float</type>
99
                    <value>$Latitude</value>
100
                </_nullIf>
109 101
            </latitude>
110 102
            <longitude>
111
                <_alt>
112
                    <2>
113
                        <_nullIf>
114
                            <null>0</null>
115
                            <type>float</type>
116
                            <value>$Longitude</value>
117
                        </_nullIf>
118
                    </2>
119
                </_alt>
103
                <_nullIf>
104
                    <null>0</null>
105
                    <type>float</type>
106
                    <value>$Longitude</value>
107
                </_nullIf>
120 108
            </longitude>
121 109
            <namedplace_id>
122 110
                <_simplifyPath>
......
156 144
                    <date>
157 145
                        <_dateRangeEnd>
158 146
                            <value>
159
                                <_alt>
160
                                    <1>
161
                                        <_date>
162
                                            <day>
163
                                                <_nullIf>
164
                                                    <null>0</null>
165
                                                    <type>float</type>
166
                                                    <value>$DayCollected</value>
167
                                                </_nullIf>
168
                                            </day>
169
                                            <month>
170
                                                <_nullIf>
171
                                                    <null>0</null>
172
                                                    <type>float</type>
173
                                                    <value>$MonthCollected</value>
174
                                                </_nullIf>
175
                                            </month>
176
                                            <year>
177
                                                <_nullIf>
178
                                                    <null>0</null>
179
                                                    <type>float</type>
180
                                                    <value>$YearCollected</value>
181
                                                </_nullIf>
182
                                            </year>
183
                                        </_date>
184
                                    </1>
185
                                </_alt>
147
                                <_date>
148
                                    <day>
149
                                        <_nullIf>
150
                                            <null>0</null>
151
                                            <type>float</type>
152
                                            <value>$DayCollected</value>
153
                                        </_nullIf>
154
                                    </day>
155
                                    <month>
156
                                        <_nullIf>
157
                                            <null>0</null>
158
                                            <type>float</type>
159
                                            <value>$MonthCollected</value>
160
                                        </_nullIf>
161
                                    </month>
162
                                    <year>
163
                                        <_nullIf>
164
                                            <null>0</null>
165
                                            <type>float</type>
166
                                            <value>$YearCollected</value>
167
                                        </_nullIf>
168
                                    </year>
169
                                </_date>
186 170
                            </value>
187 171
                        </_dateRangeEnd>
188 172
                    </date>
......
193 177
                    <date>
194 178
                        <_dateRangeStart>
195 179
                            <value>
196
                                <_alt>
197
                                    <1>
198
                                        <_date>
199
                                            <day>
200
                                                <_nullIf>
201
                                                    <null>0</null>
202
                                                    <type>float</type>
203
                                                    <value>$DayCollected</value>
204
                                                </_nullIf>
205
                                            </day>
206
                                            <month>
207
                                                <_nullIf>
208
                                                    <null>0</null>
209
                                                    <type>float</type>
210
                                                    <value>$MonthCollected</value>
211
                                                </_nullIf>
212
                                            </month>
213
                                            <year>
214
                                                <_nullIf>
215
                                                    <null>0</null>
216
                                                    <type>float</type>
217
                                                    <value>$YearCollected</value>
218
                                                </_nullIf>
219
                                            </year>
220
                                        </_date>
221
                                    </1>
222
                                </_alt>
180
                                <_date>
181
                                    <day>
182
                                        <_nullIf>
183
                                            <null>0</null>
184
                                            <type>float</type>
185
                                            <value>$DayCollected</value>
186
                                        </_nullIf>
187
                                    </day>
188
                                    <month>
189
                                        <_nullIf>
190
                                            <null>0</null>
191
                                            <type>float</type>
192
                                            <value>$MonthCollected</value>
193
                                        </_nullIf>
194
                                    </month>
195
                                    <year>
196
                                        <_nullIf>
197
                                            <null>0</null>
198
                                            <type>float</type>
199
                                            <value>$YearCollected</value>
200
                                        </_nullIf>
201
                                    </year>
202
                                </_date>
223 203
                            </value>
224 204
                        </_dateRangeStart>
225 205
                    </date>
......
230 210
                    <collectiondate>
231 211
                        <_date>
232 212
                            <date>
233
                                <_alt>
234
                                    <1>
235
                                        <_date>
236
                                            <day>
237
                                                <_nullIf>
238
                                                    <null>0</null>
239
                                                    <type>float</type>
240
                                                    <value>$DayCollected</value>
241
                                                </_nullIf>
242
                                            </day>
243
                                            <month>
244
                                                <_nullIf>
245
                                                    <null>0</null>
246
                                                    <type>float</type>
247
                                                    <value>$MonthCollected</value>
248
                                                </_nullIf>
249
                                            </month>
250
                                            <year>
251
                                                <_nullIf>
252
                                                    <null>0</null>
253
                                                    <type>float</type>
254
                                                    <value>$YearCollected</value>
255
                                                </_nullIf>
256
                                            </year>
257
                                        </_date>
258
                                    </1>
259
                                </_alt>
213
                                <_date>
214
                                    <day>
215
                                        <_nullIf>
216
                                            <null>0</null>
217
                                            <type>float</type>
218
                                            <value>$DayCollected</value>
219
                                        </_nullIf>
220
                                    </day>
221
                                    <month>
222
                                        <_nullIf>
223
                                            <null>0</null>
224
                                            <type>float</type>
225
                                            <value>$MonthCollected</value>
226
                                        </_nullIf>
227
                                    </month>
228
                                    <year>
229
                                        <_nullIf>
230
                                            <null>0</null>
231
                                            <type>float</type>
232
                                            <value>$YearCollected</value>
233
                                        </_nullIf>
234
                                    </year>
235
                                </_date>
260 236
                            </date>
261 237
                        </_date>
262 238
                    </collectiondate>
263 239
                    <count>$IndividualCount</count>
264 240
                    <notes>$Notes</notes>
265 241
                    <plantobservation>
266
                        <authorplantcode><_alt><1>$CollectorNumber</1></_alt></authorplantcode>
242
                        <authorplantcode>$CollectorNumber</authorplantcode>
267 243
                        <definedvalue fkey="tablerecord_id">
268 244
                            <userdefined_id>
269 245
                                <userdefined>
......
275 251
                        </definedvalue>
276 252
                        <specimenreplicate>
277 253
                            <_if name="if indirect voucher"><else><catalognumber_dwc>$CatalogNumber</catalognumber_dwc></else></_if>
278
                            <collectioncode_dwc><_alt><1>$CollectionCode</1></_alt></collectioncode_dwc>
279
                            <collectionnumber><_alt><1>$CollectorNumber</1></_alt></collectionnumber>
254
                            <collectioncode_dwc>$CollectionCode</collectioncode_dwc>
255
                            <collectionnumber>$CollectorNumber</collectionnumber>
280 256
                            <institution_id><party><organizationname>$InstitutionCode</organizationname></party></institution_id>
281 257
                        </specimenreplicate>
282 258
                    </plantobservation>
283 259
                </aggregateoccurrence>
284
                <sourceaccessioncode><_alt><2><_alt><1>$CollectorNumber</1></_alt></2></_alt></sourceaccessioncode>
260
                <sourceaccessioncode>$CollectorNumber</sourceaccessioncode>
285 261
                <taxondetermination>
286 262
                    <isoriginal>true</isoriginal>
287 263
                    <role>identifier</role>
......
367 343
                            <date>
368 344
                                <_dateRangeStart>
369 345
                                    <value>
370
                                        <_alt>
371
                                            <1>
372
                                                <_date>
373
                                                    <day>
374
                                                        <_nullIf>
375
                                                            <null>0</null>
376
                                                            <type>float</type>
377
                                                            <value>$DayIdentified</value>
378
                                                        </_nullIf>
379
                                                    </day>
380
                                                    <month>
381
                                                        <_nullIf>
382
                                                            <null>0</null>
383
                                                            <type>float</type>
384
                                                            <value>$MonthIdentified</value>
385
                                                        </_nullIf>
386
                                                    </month>
387
                                                    <year>
388
                                                        <_nullIf>
389
                                                            <null>0</null>
390
                                                            <type>float</type>
391
                                                            <value>$YearIdentified</value>
392
                                                        </_nullIf>
393
                                                    </year>
394
                                                </_date>
395
                                            </1>
396
                                        </_alt>
346
                                        <_date>
347
                                            <day>
348
                                                <_nullIf>
349
                                                    <null>0</null>
350
                                                    <type>float</type>
351
                                                    <value>$DayIdentified</value>
352
                                                </_nullIf>
353
                                            </day>
354
                                            <month>
355
                                                <_nullIf>
356
                                                    <null>0</null>
357
                                                    <type>float</type>
358
                                                    <value>$MonthIdentified</value>
359
                                                </_nullIf>
360
                                            </month>
361
                                            <year>
362
                                                <_nullIf>
363
                                                    <null>0</null>
364
                                                    <type>float</type>
365
                                                    <value>$YearIdentified</value>
366
                                                </_nullIf>
367
                                            </year>
368
                                        </_date>
397 369
                                    </value>
398 370
                                </_dateRangeStart>
399 371
                            </date>
......
433 405
                </_avg>
434 406
            </waterdepth>
435 407
        </locationevent>
436
        <locationnarrative><_merge><1>$Locality</1></_merge></locationnarrative>
408
        <locationnarrative>$Locality</locationnarrative>
437 409
    </location>
438 410
</VegBIEN>
439 411
Inserted 47 new rows into database
inputs/XAL/maps/VegBIEN.specimens.csv
15 15
Country,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
16 16
ContinentOcean,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,country,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",
17 17
FieldNumber,/location/locationevent/authoreventcode,
18
DayCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
19
MonthCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
20
YearCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
21
DayCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
22
MonthCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
23
YearCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
18
DayCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
19
MonthCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
20
YearCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
21
DayCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
22
MonthCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
23
YearCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
24 24
DayCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
25 25
MonthCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
26 26
YearCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
inputs/NY/test/import.specimens.xml.ref
9 9
            </_merge>
10 10
        </authorlocationcode>
11 11
        <elevation>
12
            <_alt>
13
                <2>
14
                    <_avg>
15
                        <max>
16
                            <_units>
17
                                <default>m</default>
18
                                <to>m</to>
19
                                <to></to>
12
            <_avg>
13
                <max>
14
                    <_units>
15
                        <default>m</default>
16
                        <to>m</to>
17
                        <to></to>
18
                        <value>
19
                            <_replace>
20
                                <\bca\.?></\bca\.?>
21
                                <value>$MaximumElevation</value>
22
                            </_replace>
23
                        </value>
24
                    </_units>
25
                </max>
26
                <min>
27
                    <_units>
28
                        <default>m</default>
29
                        <to>m</to>
30
                        <to></to>
31
                        <value>
32
                            <_rangeStart>
20 33
                                <value>
21 34
                                    <_replace>
22 35
                                        <\bca\.?></\bca\.?>
23
                                        <value>$MaximumElevation</value>
24
                                    </_replace>
25
                                </value>
26
                            </_units>
27
                        </max>
28
                        <min>
29
                            <_units>
30
                                <default>m</default>
31
                                <to>m</to>
32
                                <to></to>
33
                                <value>
34
                                    <_rangeStart>
35 36
                                        <value>
36
                                            <_replace>
37
                                                <\bca\.?></\bca\.?>
38
                                                <value>
39
                                                    <_nullIf>
40
                                                        <null>.</null>
41
                                                        <value>$MinimumElevation</value>
42
                                                    </_nullIf>
43
                                                </value>
44
                                            </_replace>
37
                                            <_nullIf>
38
                                                <null>.</null>
39
                                                <value>$MinimumElevation</value>
40
                                            </_nullIf>
45 41
                                        </value>
46
                                    </_rangeStart>
42
                                    </_replace>
47 43
                                </value>
48
                            </_units>
49
                        </min>
50
                    </_avg>
51
                </2>
52
            </_alt>
44
                            </_rangeStart>
45
                        </value>
46
                    </_units>
47
                </min>
48
            </_avg>
53 49
        </elevation>
54 50
        <elevationrange>
55 51
            <_range>
......
110 106
            </_range>
111 107
        </elevationrange>
112 108
        <locationdetermination>
113
            <coordsaccuracy><_noCV><value><_alt><2>$CoordinatePrecision</2></_alt></value></_noCV></coordsaccuracy>
109
            <coordsaccuracy><_noCV><value>$CoordinatePrecision</value></_noCV></coordsaccuracy>
114 110
            <footprintgeometry_dwc>$BoundingBox</footprintgeometry_dwc>
115 111
            <latitude>
116
                <_alt>
117
                    <2>
118
                        <_nullIf>
119
                            <null>0</null>
120
                            <type>float</type>
121
                            <value>$Latitude</value>
122
                        </_nullIf>
123
                    </2>
124
                </_alt>
112
                <_nullIf>
113
                    <null>0</null>
114
                    <type>float</type>
115
                    <value>$Latitude</value>
116
                </_nullIf>
125 117
            </latitude>
126 118
            <longitude>
127
                <_alt>
128
                    <2>
129
                        <_nullIf>
130
                            <null>0</null>
131
                            <type>float</type>
132
                            <value>$Longitude</value>
133
                        </_nullIf>
134
                    </2>
135
                </_alt>
119
                <_nullIf>
120
                    <null>0</null>
121
                    <type>float</type>
122
                    <value>$Longitude</value>
123
                </_nullIf>
136 124
            </longitude>
137 125
            <namedplace_id>
138 126
                <_simplifyPath>
......
171 159
                    <date>
172 160
                        <_dateRangeEnd>
173 161
                            <value>
174
                                <_alt>
175
                                    <1>
176
                                        <_date>
177
                                            <day>
178
                                                <_nullIf>
179
                                                    <null>0</null>
180
                                                    <type>float</type>
181
                                                    <value>$DayCollected</value>
182
                                                </_nullIf>
183
                                            </day>
184
                                            <month>
185
                                                <_nullIf>
186
                                                    <null>0</null>
187
                                                    <type>float</type>
188
                                                    <value>$MonthCollected</value>
189
                                                </_nullIf>
190
                                            </month>
191
                                            <year>
192
                                                <_nullIf>
193
                                                    <null>0</null>
194
                                                    <type>float</type>
195
                                                    <value>$YearCollected</value>
196
                                                </_nullIf>
197
                                            </year>
198
                                        </_date>
199
                                    </1>
200
                                </_alt>
162
                                <_date>
163
                                    <day>
164
                                        <_nullIf>
165
                                            <null>0</null>
166
                                            <type>float</type>
167
                                            <value>$DayCollected</value>
168
                                        </_nullIf>
169
                                    </day>
170
                                    <month>
171
                                        <_nullIf>
172
                                            <null>0</null>
173
                                            <type>float</type>
174
                                            <value>$MonthCollected</value>
175
                                        </_nullIf>
176
                                    </month>
177
                                    <year>
178
                                        <_nullIf>
179
                                            <null>0</null>
180
                                            <type>float</type>
181
                                            <value>$YearCollected</value>
182
                                        </_nullIf>
183
                                    </year>
184
                                </_date>
201 185
                            </value>
202 186
                        </_dateRangeEnd>
203 187
                    </date>
......
208 192
                    <date>
209 193
                        <_dateRangeStart>
210 194
                            <value>
211
                                <_alt>
212
                                    <1>
213
                                        <_date>
214
                                            <day>
215
                                                <_nullIf>
216
                                                    <null>0</null>
217
                                                    <type>float</type>
218
                                                    <value>$DayCollected</value>
219
                                                </_nullIf>
220
                                            </day>
221
                                            <month>
222
                                                <_nullIf>
223
                                                    <null>0</null>
224
                                                    <type>float</type>
225
                                                    <value>$MonthCollected</value>
226
                                                </_nullIf>
227
                                            </month>
228
                                            <year>
229
                                                <_nullIf>
230
                                                    <null>0</null>
231
                                                    <type>float</type>
232
                                                    <value>$YearCollected</value>
233
                                                </_nullIf>
234
                                            </year>
235
                                        </_date>
236
                                    </1>
237
                                </_alt>
195
                                <_date>
196
                                    <day>
197
                                        <_nullIf>
198
                                            <null>0</null>
199
                                            <type>float</type>
200
                                            <value>$DayCollected</value>
201
                                        </_nullIf>
202
                                    </day>
203
                                    <month>
204
                                        <_nullIf>
205
                                            <null>0</null>
206
                                            <type>float</type>
207
                                            <value>$MonthCollected</value>
208
                                        </_nullIf>
209
                                    </month>
210
                                    <year>
211
                                        <_nullIf>
212
                                            <null>0</null>
213
                                            <type>float</type>
214
                                            <value>$YearCollected</value>
215
                                        </_nullIf>
216
                                    </year>
217
                                </_date>
238 218
                            </value>
239 219
                        </_dateRangeStart>
240 220
                    </date>
......
245 225
                    <collectiondate>
246 226
                        <_date>
247 227
                            <date>
248
                                <_alt>
249
                                    <1>
250
                                        <_date>
251
                                            <day>
252
                                                <_nullIf>
253
                                                    <null>0</null>
254
                                                    <type>float</type>
255
                                                    <value>$DayCollected</value>
256
                                                </_nullIf>
257
                                            </day>
258
                                            <month>
259
                                                <_nullIf>
260
                                                    <null>0</null>
261
                                                    <type>float</type>
262
                                                    <value>$MonthCollected</value>
263
                                                </_nullIf>
264
                                            </month>
265
                                            <year>
266
                                                <_nullIf>
267
                                                    <null>0</null>
268
                                                    <type>float</type>
269
                                                    <value>$YearCollected</value>
270
                                                </_nullIf>
271
                                            </year>
272
                                        </_date>
273
                                    </1>
274
                                </_alt>
228
                                <_date>
229
                                    <day>
230
                                        <_nullIf>
231
                                            <null>0</null>
232
                                            <type>float</type>
233
                                            <value>$DayCollected</value>
234
                                        </_nullIf>
235
                                    </day>
236
                                    <month>
237
                                        <_nullIf>
238
                                            <null>0</null>
239
                                            <type>float</type>
240
                                            <value>$MonthCollected</value>
241
                                        </_nullIf>
242
                                    </month>
243
                                    <year>
244
                                        <_nullIf>
245
                                            <null>0</null>
246
                                            <type>float</type>
247
                                            <value>$YearCollected</value>
248
                                        </_nullIf>
249
                                    </year>
250
                                </_date>
275 251
                            </date>
276 252
                        </_date>
277 253
                    </collectiondate>
......
306 282
                        <sourceaccessioncode>$UniqueNYInternalRecordNumber</sourceaccessioncode>
307 283
                        <specimenreplicate>
308 284
                            <_if name="if indirect voucher"><else><catalognumber_dwc>$CatalogNumber</catalognumber_dwc></else></_if>
309
                            <collectioncode_dwc><_alt><1>$CollectionCode</1></_alt></collectioncode_dwc>
285
                            <collectioncode_dwc>$CollectionCode</collectioncode_dwc>
310 286
                            <collectionnumber>
311 287
                                <_alt>
312 288
                                    <1>$CollectorNumber</1>
......
414 390
                            <date>
415 391
                                <_dateRangeStart>
416 392
                                    <value>
417
                                        <_alt>
418
                                            <1>
419
                                                <_date>
420
                                                    <day>
421
                                                        <_nullIf>
422
                                                            <null>0</null>
423
                                                            <type>float</type>
424
                                                            <value>$DayIdentified</value>
425
                                                        </_nullIf>
426
                                                    </day>
427
                                                    <month>
428
                                                        <_nullIf>
429
                                                            <null>0</null>
430
                                                            <type>float</type>
431
                                                            <value>$MonthIdentified</value>
432
                                                        </_nullIf>
433
                                                    </month>
434
                                                    <year>
435
                                                        <_nullIf>
436
                                                            <null>0</null>
437
                                                            <type>float</type>
438
                                                            <value>$YearIdentified</value>
439
                                                        </_nullIf>
440
                                                    </year>
441
                                                </_date>
442
                                            </1>
443
                                        </_alt>
393
                                        <_date>
394
                                            <day>
395
                                                <_nullIf>
396
                                                    <null>0</null>
397
                                                    <type>float</type>
398
                                                    <value>$DayIdentified</value>
399
                                                </_nullIf>
400
                                            </day>
401
                                            <month>
402
                                                <_nullIf>
403
                                                    <null>0</null>
404
                                                    <type>float</type>
405
                                                    <value>$MonthIdentified</value>
406
                                                </_nullIf>
407
                                            </month>
408
                                            <year>
409
                                                <_nullIf>
410
                                                    <null>0</null>
411
                                                    <type>float</type>
412
                                                    <value>$YearIdentified</value>
413
                                                </_nullIf>
414
                                            </year>
415
                                        </_date>
444 416
                                    </value>
445 417
                                </_dateRangeStart>
446 418
                            </date>
......
507 479
                </3>
508 480
            </_merge>
509 481
        </locationnarrative>
510
        <sourceaccessioncode><_alt><1>$UniqueNYInternalRecordNumber</1></_alt></sourceaccessioncode>
482
        <sourceaccessioncode>$UniqueNYInternalRecordNumber</sourceaccessioncode>
511 483
    </location>
512 484
</VegBIEN>
513 485
Inserted 39 new rows into database
inputs/NY/maps/VegBIEN.specimens.csv
15 15
StateProvince,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",
16 16
Country,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
17 17
ContinentOcean,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,country,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",
18
DayCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
19
MonthCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
20
YearCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
21
DayCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
22
MonthCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
23
YearCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
18
DayCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
19
MonthCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
20
YearCollected,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
21
DayCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
22
MonthCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
23
YearCollected,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
24 24
DayCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
25 25
MonthCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
26 26
YearCollected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
inputs/Madidi/test/import.plots.xml.ref
2 2
<VegBIEN>
3 3
    <location id="-1">
4 4
        <area>$Area</area>
5
        <authorlocationcode><_alt><1>$Inventory name</1></_alt></authorlocationcode>
5
        <authorlocationcode>$Inventory name</authorlocationcode>
6 6
        <elevation>
7 7
            <_alt>
8 8
                <1>
......
59 59
                        <to>m</to>
60 60
                        <to></to>
61 61
                        <value>
62
                            <_alt>
63
                                <2>
64
                                    <_rangeEnd>
65
                                        <value>
66
                                            <_replace>
67
                                                <\bca\.?></\bca\.?>
68
                                                <value>$Minimum altitude</value>
69
                                            </_replace>
70
                                        </value>
71
                                    </_rangeEnd>
72
                                </2>
73
                            </_alt>
62
                            <_rangeEnd>
63
                                <value>
64
                                    <_replace>
65
                                        <\bca\.?></\bca\.?>
66
                                        <value>$Minimum altitude</value>
67
                                    </_replace>
68
                                </value>
69
                            </_rangeEnd>
74 70
                        </value>
75 71
                    </_units>
76 72
                </to>
......
79 75
        <landform>$Topographical situation</landform>
80 76
        <locationdetermination>
81 77
            <latitude>
82
                <_alt>
83
                    <1>
84
                        <_nullIf>
85
                            <null>0</null>
86
                            <type>float</type>
87
                            <value>
88
                                <_alt>
89
                                    <1>$Latitude</1>
90
                                    <2>$Latitude (DMS)</2>
91
                                </_alt>
92
                            </value>
93
                        </_nullIf>
94
                    </1>
95
                </_alt>
78
                <_nullIf>
79
                    <null>0</null>
80
                    <type>float</type>
81
                    <value>
82
                        <_alt>
83
                            <1>$Latitude</1>
84
                            <2>$Latitude (DMS)</2>
85
                        </_alt>
86
                    </value>
87
                </_nullIf>
96 88
            </latitude>
97 89
            <longitude>
98
                <_alt>
99
                    <1>
100
                        <_nullIf>
101
                            <null>0</null>
102
                            <type>float</type>
103
                            <value>
104
                                <_alt>
105
                                    <1>$Longitude</1>
106
                                    <2>$Longitude (DMS)</2>
107
                                </_alt>
108
                            </value>
109
                        </_nullIf>
110
                    </1>
111
                </_alt>
90
                <_nullIf>
91
                    <null>0</null>
92
                    <type>float</type>
93
                    <value>
94
                        <_alt>
95
                            <1>$Longitude</1>
96
                            <2>$Longitude (DMS)</2>
97
                        </_alt>
98
                    </value>
99
                </_nullIf>
112 100
            </longitude>
113 101
        </locationdetermination>
114 102
        <locationevent>
......
148 136
                <texture>$Textural class</texture>
149 137
            </soilobs>
150 138
        </locationevent>
151
        <locationnarrative><_merge><1>$Locality</1></_merge></locationnarrative>
139
        <locationnarrative>$Locality</locationnarrative>
152 140
        <notespublic>$Observaciones</notespublic>
153 141
        <slopeaspect>
154 142
            <_compass>
inputs/UNCC/test/import.specimens.xml.ref
1 1
Put template:
2 2
<VegBIEN>
3 3
    <location id="-1">
4
        <authorlocationcode><_merge><1>$herbarium</1></_merge></authorlocationcode>
4
        <authorlocationcode>$herbarium</authorlocationcode>
5 5
        <locationdetermination>
6 6
            <namedplace_id>
7 7
                <_simplifyPath>
......
34 34
                    <date>
35 35
                        <_dateRangeEnd>
36 36
                            <value>
37
                                <_alt>
38
                                    <1>
39
                                        <_date>
40
                                            <day>
41
                                                <_nullIf>
42
                                                    <null>0</null>
43
                                                    <type>float</type>
44
                                                    <value>$collday</value>
45
                                                </_nullIf>
46
                                            </day>
47
                                            <month>
48
                                                <_nullIf>
49
                                                    <null>0</null>
50
                                                    <type>float</type>
51
                                                    <value>$collmonth</value>
52
                                                </_nullIf>
53
                                            </month>
54
                                            <year>
55
                                                <_nullIf>
56
                                                    <null>0</null>
57
                                                    <type>float</type>
58
                                                    <value>$collyear</value>
59
                                                </_nullIf>
60
                                            </year>
61
                                        </_date>
62
                                    </1>
63
                                </_alt>
37
                                <_date>
38
                                    <day>
39
                                        <_nullIf>
40
                                            <null>0</null>
41
                                            <type>float</type>
42
                                            <value>$collday</value>
43
                                        </_nullIf>
44
                                    </day>
45
                                    <month>
46
                                        <_nullIf>
47
                                            <null>0</null>
48
                                            <type>float</type>
49
                                            <value>$collmonth</value>
50
                                        </_nullIf>
51
                                    </month>
52
                                    <year>
53
                                        <_nullIf>
54
                                            <null>0</null>
55
                                            <type>float</type>
56
                                            <value>$collyear</value>
57
                                        </_nullIf>
58
                                    </year>
59
                                </_date>
64 60
                            </value>
65 61
                        </_dateRangeEnd>
66 62
                    </date>
......
71 67
                    <date>
72 68
                        <_dateRangeStart>
73 69
                            <value>
74
                                <_alt>
75
                                    <1>
76
                                        <_date>
77
                                            <day>
78
                                                <_nullIf>
79
                                                    <null>0</null>
80
                                                    <type>float</type>
81
                                                    <value>$collday</value>
82
                                                </_nullIf>
83
                                            </day>
84
                                            <month>
85
                                                <_nullIf>
86
                                                    <null>0</null>
87
                                                    <type>float</type>
88
                                                    <value>$collmonth</value>
89
                                                </_nullIf>
90
                                            </month>
91
                                            <year>
92
                                                <_nullIf>
93
                                                    <null>0</null>
94
                                                    <type>float</type>
95
                                                    <value>$collyear</value>
96
                                                </_nullIf>
97
                                            </year>
98
                                        </_date>
99
                                    </1>
100
                                </_alt>
70
                                <_date>
71
                                    <day>
72
                                        <_nullIf>
73
                                            <null>0</null>
74
                                            <type>float</type>
75
                                            <value>$collday</value>
76
                                        </_nullIf>
77
                                    </day>
78
                                    <month>
79
                                        <_nullIf>
80
                                            <null>0</null>
81
                                            <type>float</type>
82
                                            <value>$collmonth</value>
83
                                        </_nullIf>
84
                                    </month>
85
                                    <year>
86
                                        <_nullIf>
87
                                            <null>0</null>
88
                                            <type>float</type>
89
                                            <value>$collyear</value>
90
                                        </_nullIf>
91
                                    </year>
92
                                </_date>
101 93
                            </value>
102 94
                        </_dateRangeStart>
103 95
                    </date>
......
108 100
                    <collectiondate>
109 101
                        <_date>
110 102
                            <date>
111
                                <_alt>
112
                                    <1>
113
                                        <_date>
114
                                            <day>
115
                                                <_nullIf>
116
                                                    <null>0</null>
117
                                                    <type>float</type>
118
                                                    <value>$collday</value>
119
                                                </_nullIf>
120
                                            </day>
121
                                            <month>
122
                                                <_nullIf>
123
                                                    <null>0</null>
124
                                                    <type>float</type>
125
                                                    <value>$collmonth</value>
126
                                                </_nullIf>
127
                                            </month>
128
                                            <year>
129
                                                <_nullIf>
130
                                                    <null>0</null>
131
                                                    <type>float</type>
132
                                                    <value>$collyear</value>
133
                                                </_nullIf>
134
                                            </year>
135
                                        </_date>
136
                                    </1>
137
                                </_alt>
103
                                <_date>
104
                                    <day>
105
                                        <_nullIf>
106
                                            <null>0</null>
107
                                            <type>float</type>
108
                                            <value>$collday</value>
109
                                        </_nullIf>
110
                                    </day>
111
                                    <month>
112
                                        <_nullIf>
113
                                            <null>0</null>
114
                                            <type>float</type>
115
                                            <value>$collmonth</value>
116
                                        </_nullIf>
117
                                    </month>
118
                                    <year>
119
                                        <_nullIf>
120
                                            <null>0</null>
121
                                            <type>float</type>
122
                                            <value>$collyear</value>
123
                                        </_nullIf>
124
                                    </year>
125
                                </_date>
138 126
                            </date>
139 127
                        </_date>
140 128
                    </collectiondate>
......
165 153
                        </_merge>
166 154
                    </notes>
167 155
                    <plantobservation>
168
                        <authorplantcode><_alt><1>$collectno</1></_alt></authorplantcode>
156
                        <authorplantcode>$collectno</authorplantcode>
169 157
                        <sourceaccessioncode>$accession</sourceaccessioncode>
170 158
                        <specimenreplicate>
171
                            <collectionnumber><_alt><1>$collectno</1></_alt></collectionnumber>
159
                            <collectionnumber>$collectno</collectionnumber>
172 160
                            <institution_id><party><organizationname>$herbarium</organizationname></party></institution_id>
173 161
                            <sourceaccessioncode>$accession</sourceaccessioncode>
174 162
                        </specimenreplicate>
......
207 195
                <sourceaccessioncode>
208 196
                    <_alt>
209 197
                        <1>$accession</1>
210
                        <2><_alt><1>$collectno</1></_alt></2>
198
                        <2>$collectno</2>
211 199
                    </_alt>
212 200
                </sourceaccessioncode>
213 201
                <taxondetermination>
......
281 269
                </3>
282 270
            </_merge>
283 271
        </locationnarrative>
284
        <sourceaccessioncode><_alt><1>$accession</1></_alt></sourceaccessioncode>
272
        <sourceaccessioncode>$accession</sourceaccessioncode>
285 273
    </location>
286 274
</VegBIEN>
287 275
Inserted 22 new rows into database
inputs/UNCC/maps/VegBIEN.specimens.csv
3 3
county,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",
4 4
state,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",
5 5
country,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
6
collday,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
7
collmonth,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
8
collyear,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
9
collday,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
10
collmonth,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
11
collyear,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
6
collday,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
7
collmonth,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
8
collyear,"/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
9
collday,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
10
collmonth,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
11
collyear,"/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
12 12
collday,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/day/_nullIf:[null=0,type=float]/value",
13 13
collmonth,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/month/_nullIf:[null=0,type=float]/value",
14 14
collyear,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/1/_date/year/_nullIf:[null=0,type=float]/value",
inputs/ACAD/test/import.specimens.xml.ref
9 9
            </_merge>
10 10
        </authorlocationcode>
11 11
        <elevation>
12
            <_alt>
13
                <1>
14
                    <_replace>
15
                        <\bca\.?></\bca\.?>
16
                        <value>$verbatimElevation</value>
17
                    </_replace>
18
                </1>
19
            </_alt>
12
            <_replace>
13
                <\bca\.?></\bca\.?>
14
                <value>$verbatimElevation</value>
15
            </_replace>
20 16
        </elevation>
21 17
        <locationdetermination>
22 18
            <latitude>
23
                <_alt>
24
                    <1>
25
                        <_nullIf>
26
                            <null>0</null>
27
                            <type>float</type>
28
                            <value>$decimalLatitude</value>
29
                        </_nullIf>
30
                    </1>
31
                </_alt>
19
                <_nullIf>
20
                    <null>0</null>
21
                    <type>float</type>
22
                    <value>$decimalLatitude</value>
23
                </_nullIf>
32 24
            </latitude>
33 25
            <longitude>
34
                <_alt>
35
                    <1>
36
                        <_nullIf>
37
                            <null>0</null>
38
                            <type>float</type>
39
                            <value>$decimalLongitude</value>
40
                        </_nullIf>
41
                    </1>
42
                </_alt>
26
                <_nullIf>
27
                    <null>0</null>
28
                    <type>float</type>
29
                    <value>$decimalLongitude</value>
30
                </_nullIf>
43 31
            </longitude>
44 32
            <namedplace_id>
45 33
                <_simplifyPath>
......
73 61
            </namedplace_id>
74 62
        </locationdetermination>
75 63
        <locationevent>
76
            <obsenddate><_date><date><_dateRangeEnd><value><_alt><2>$eventDate</2></_alt></value></_dateRangeEnd></date></_date></obsenddate>
77
            <obsstartdate><_date><date><_dateRangeStart><value><_alt><2>$eventDate</2></_alt></value></_dateRangeStart></date></_date></obsstartdate>
64
            <obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
65
            <obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
78 66
            <taxonoccurrence>
79 67
                <aggregateoccurrence>
80
                    <collectiondate><_date><date><_alt><2>$eventDate</2></_alt></date></_date></collectiondate>
81 68
                    <plantobservation>
82
                        <authorplantcode><_alt><2>$recordNumber</2></_alt></authorplantcode>
69
                        <authorplantcode>$recordNumber</authorplantcode>
83 70
                        <sourceaccessioncode>$id</sourceaccessioncode>
84 71
                        <specimenreplicate>
85 72
                            <_if name="if indirect voucher"><else><catalognumber_dwc>$catalogNumber</catalognumber_dwc></else></_if>
......
89 76
                                    <2>$collectionID</2>
90 77
                                </_alt>
91 78
                            </collectioncode_dwc>
92
                            <collectionnumber><_alt><2>$recordNumber</2></_alt></collectionnumber>
79
                            <collectionnumber>$recordNumber</collectionnumber>
93 80
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
94 81
                            <sourceaccessioncode>$id</sourceaccessioncode>
95 82
                        </specimenreplicate>
......
98 85
                <sourceaccessioncode>
99 86
                    <_alt>
100 87
                        <1>$id</1>
101
                        <2><_alt><2>$recordNumber</2></_alt></2>
88
                        <2>$recordNumber</2>
102 89
                    </_alt>
103 90
                </sourceaccessioncode>
104 91
                <taxondetermination>
......
181 168
                            </plantname_id>
182 169
                        </plantconcept>
183 170
                    </plantconcept_id>
184
                    <determinationdate><_date><date><_dateRangeStart><value><_alt><2>$dateIdentified</2></_alt></value></_dateRangeStart></date></_date></determinationdate>
171
                    <determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
185 172
                </taxondetermination>
186 173
                <verbatimcollectorname>$recordedBy</verbatimcollectorname>
187 174
            </taxonoccurrence>
......
197 184
                </3>
198 185
            </_merge>
199 186
        </locationnarrative>
200
        <sourceaccessioncode><_alt><1>$id</1></_alt></sourceaccessioncode>
187
        <sourceaccessioncode>$id</sourceaccessioncode>
201 188
    </location>
202 189
</VegBIEN>
203 190
Inserted 38 new rows into database
inputs/ACAD/maps/VegBIEN.specimens.csv
9 9
stateProvince,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",
10 10
country,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
11 11
continent,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,country,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=continent]/placename",
12
eventDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/2,
13
eventDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/2,
14
eventDate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_*/date/_alt/2,
12
eventDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value/_alt/1,
13
eventDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value/_alt/1,
15 14
recordNumber,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/authorplantcode/_alt/2,
16 15
id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode,
17 16
catalogNumber,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/_if[@name=""if indirect voucher""]/else/catalognumber_dwc",
inputs/CVS/test/import.organisms.xml.ref
1 1
Put template:
2 2
<VegBIEN>
3 3
    <location id="-1">
4
        <authorlocationcode><_alt><2>$authorObsCode</2></_alt></authorlocationcode>
4
        <authorlocationcode>$authorObsCode</authorlocationcode>
5 5
        <locationdetermination>
6
            <coordsaccuracy><_noCV><value><_alt><1>$locationAccuracy-m</1></_alt></value></_noCV></coordsaccuracy>
6
            <coordsaccuracy><_noCV><value>$locationAccuracy-m</value></_noCV></coordsaccuracy>
7 7
            <latitude>
8
                <_alt>
9
                    <1>
10
                        <_nullIf>
11
                            <null>0</null>
12
                            <type>float</type>
13
                            <value>
14
                                <_alt>
15
                                    <1>$realLatitude</1>
16
                                    <2>$publicLatitude</2>
17
                                </_alt>
18
                            </value>
19
                        </_nullIf>
20
                    </1>
21
                </_alt>
8
                <_nullIf>
9
                    <null>0</null>
10
                    <type>float</type>
11
                    <value>
12
                        <_alt>
13
                            <1>$realLatitude</1>
14
                            <2>$publicLatitude</2>
15
                        </_alt>
16
                    </value>
17
                </_nullIf>
22 18
            </latitude>
23 19
            <longitude>
24
                <_alt>
25
                    <1>
26
                        <_nullIf>
27
                            <null>0</null>
28
                            <type>float</type>
29
                            <value>
30
                                <_alt>
31
                                    <1>$realLongitude</1>
32
                                    <2>$publicLongitude</2>
33
                                </_alt>
34
                            </value>
35
                        </_nullIf>
36
                    </1>
37
                </_alt>
20
                <_nullIf>
21
                    <null>0</null>
22
                    <type>float</type>
23
                    <value>
24
                        <_alt>
25
                            <1>$realLongitude</1>
26
                            <2>$publicLongitude</2>
27
                        </_alt>
28
                    </value>
29
                </_nullIf>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff