1
|
Put template:
|
2
|
<VegBIEN>
|
3
|
<_simplifyPath id="-1">
|
4
|
<next>parent_id</next>
|
5
|
<path>
|
6
|
<location>
|
7
|
<authorlocationcode>
|
8
|
<_alt>
|
9
|
<1>$id</1>
|
10
|
<2>
|
11
|
<_join>
|
12
|
<1>$institutionCode</1>
|
13
|
<2>
|
14
|
<_join>
|
15
|
<1>$collectionCode</1>
|
16
|
<2>$collectionID</2>
|
17
|
</_join>
|
18
|
</2>
|
19
|
<3>$catalogNumber</3>
|
20
|
</_join>
|
21
|
</2>
|
22
|
</_alt>
|
23
|
</authorlocationcode>
|
24
|
<elevation>
|
25
|
<_replace>
|
26
|
<\bca\.?></\bca\.?>
|
27
|
<value>$verbatimElevation</value>
|
28
|
</_replace>
|
29
|
</elevation>
|
30
|
<locationcoords>
|
31
|
<latitude>
|
32
|
<_nullIf>
|
33
|
<null>0</null>
|
34
|
<type>float</type>
|
35
|
<value>$decimalLatitude</value>
|
36
|
</_nullIf>
|
37
|
</latitude>
|
38
|
<longitude>
|
39
|
<_nullIf>
|
40
|
<null>0</null>
|
41
|
<type>float</type>
|
42
|
<value>$decimalLongitude</value>
|
43
|
</_nullIf>
|
44
|
</longitude>
|
45
|
</locationcoords>
|
46
|
<locationevent>
|
47
|
<obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
|
48
|
<obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
|
49
|
<taxonoccurrence>
|
50
|
<aggregateoccurrence>
|
51
|
<plantobservation>
|
52
|
<collectionnumber>$recordNumber</collectionnumber>
|
53
|
<specimenreplicate>
|
54
|
<catalognumber_dwc>$catalogNumber</catalognumber_dwc>
|
55
|
<collectioncode_dwc>
|
56
|
<_join>
|
57
|
<1>$collectionCode</1>
|
58
|
<2>$collectionID</2>
|
59
|
</_join>
|
60
|
</collectioncode_dwc>
|
61
|
<institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
|
62
|
<sourceaccessioncode>$id</sourceaccessioncode>
|
63
|
</specimenreplicate>
|
64
|
</plantobservation>
|
65
|
</aggregateoccurrence>
|
66
|
<authortaxoncode>
|
67
|
<_alt>
|
68
|
<1>$recordNumber</1>
|
69
|
<2>$scientificName</2>
|
70
|
</_alt>
|
71
|
</authortaxoncode>
|
72
|
<taxondetermination>
|
73
|
<party_id>
|
74
|
<party>
|
75
|
<givenname><_namePart><first>$identifiedBy</first></_namePart></givenname>
|
76
|
<middlename><_namePart><middle>$identifiedBy</middle></_namePart></middlename>
|
77
|
<surname><_namePart><last>$identifiedBy</last></_namePart></surname>
|
78
|
</party>
|
79
|
</party_id>
|
80
|
<taxonpath_id>
|
81
|
<taxonpath>
|
82
|
<class>$class</class>
|
83
|
<family>$family</family>
|
84
|
<genus>$genus</genus>
|
85
|
<kingdom>$kingdom</kingdom>
|
86
|
<order>$order</order>
|
87
|
<phylum>$phylum</phylum>
|
88
|
<scientificname>$scientificName</scientificname>
|
89
|
<scientificnameauthor>$scientificNameAuthorship</scientificnameauthor>
|
90
|
<species>$specificEpithet</species>
|
91
|
<subspecies>
|
92
|
<_name>
|
93
|
<first>$taxonRank</first>
|
94
|
<last>$infraspecificEpithet</last>
|
95
|
</_name>
|
96
|
</subspecies>
|
97
|
</taxonpath>
|
98
|
</taxonpath_id>
|
99
|
<determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
|
100
|
</taxondetermination>
|
101
|
<verbatimcollectorname>$recordedBy</verbatimcollectorname>
|
102
|
</taxonoccurrence>
|
103
|
</locationevent>
|
104
|
<locationnarrative>
|
105
|
<_merge>
|
106
|
<1>$locality</1>
|
107
|
<3>
|
108
|
<_label>
|
109
|
<label>habitat</label>
|
110
|
<value>$habitat</value>
|
111
|
</_label>
|
112
|
</3>
|
113
|
</_merge>
|
114
|
</locationnarrative>
|
115
|
<locationplace>
|
116
|
<namedplace_id>
|
117
|
<namedplace>
|
118
|
<rank>county</rank>
|
119
|
<placename>$county</placename>
|
120
|
<parent_id>
|
121
|
<namedplace>
|
122
|
<rank>stateProvince</rank>
|
123
|
<placename>$stateProvince</placename>
|
124
|
<parent_id>
|
125
|
<namedplace>
|
126
|
<rank>country</rank>
|
127
|
<placename>$country</placename>
|
128
|
<parent_id>
|
129
|
<namedplace>
|
130
|
<rank>continent</rank>
|
131
|
<placename>$continent</placename>
|
132
|
</namedplace>
|
133
|
</parent_id>
|
134
|
</namedplace>
|
135
|
</parent_id>
|
136
|
</namedplace>
|
137
|
</parent_id>
|
138
|
</namedplace>
|
139
|
</namedplace_id>
|
140
|
</locationplace>
|
141
|
</location>
|
142
|
</path>
|
143
|
</_simplifyPath>
|
144
|
</VegBIEN>
|
145
|
Inserted 28 new rows into database
|