Project

General

Profile

1
Put template:
2
<VegBIEN>
3
    <location id="-1">
4
        <authorlocationcode>
5
            <_alt>
6
                <3>$id</3>
7
                <4>
8
                    <_merge>
9
                        <1>$institutionCode</1>
10
                        <2>
11
                            <_merge>
12
                                <1>$collectionCode</1>
13
                                <2>$collectionID</2>
14
                            </_merge>
15
                        </2>
16
                        <3><_if name="if indirect voucher"><else>$catalogNumber</else></_if></3>
17
                    </_merge>
18
                </4>
19
            </_alt>
20
        </authorlocationcode>
21
        <elevation>
22
            <_replace>
23
                <\bca\.?></\bca\.?>
24
                <value>$verbatimElevation</value>
25
            </_replace>
26
        </elevation>
27
        <locationdetermination>
28
            <latitude>
29
                <_nullIf>
30
                    <null>0</null>
31
                    <type>float</type>
32
                    <value>$decimalLatitude</value>
33
                </_nullIf>
34
            </latitude>
35
            <longitude>
36
                <_nullIf>
37
                    <null>0</null>
38
                    <type>float</type>
39
                    <value>$decimalLongitude</value>
40
                </_nullIf>
41
            </longitude>
42
            <namedplace_id>
43
                <_simplifyPath>
44
                    <next>parent_id/namedplace</next>
45
                    <require>placename</require>
46
                    <path>
47
                        <namedplace>
48
                            <rank>county</rank>
49
                            <placename>$county</placename>
50
                            <parent_id>
51
                                <namedplace>
52
                                    <rank>stateProvince</rank>
53
                                    <placename>$stateProvince</placename>
54
                                    <parent_id>
55
                                        <namedplace>
56
                                            <rank>country</rank>
57
                                            <placename>$country</placename>
58
                                            <parent_id>
59
                                                <namedplace>
60
                                                    <rank>continent</rank>
61
                                                    <placename>$continent</placename>
62
                                                </namedplace>
63
                                            </parent_id>
64
                                        </namedplace>
65
                                    </parent_id>
66
                                </namedplace>
67
                            </parent_id>
68
                        </namedplace>
69
                    </path>
70
                </_simplifyPath>
71
            </namedplace_id>
72
        </locationdetermination>
73
        <locationevent>
74
            <obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
75
            <obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
76
            <taxonoccurrence>
77
                <aggregateoccurrence>
78
                    <plantobservation>
79
                        <authorplantcode>$recordNumber</authorplantcode>
80
                        <sourceaccessioncode>$id</sourceaccessioncode>
81
                        <specimenreplicate>
82
                            <catalognumber_dwc><_if name="if indirect voucher"><else>$catalogNumber</else></_if></catalognumber_dwc>
83
                            <collectioncode_dwc>
84
                                <_merge>
85
                                    <1>$collectionCode</1>
86
                                    <2>$collectionID</2>
87
                                </_merge>
88
                            </collectioncode_dwc>
89
                            <collectionnumber>$recordNumber</collectionnumber>
90
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
91
                            <sourceaccessioncode>$id</sourceaccessioncode>
92
                        </specimenreplicate>
93
                    </plantobservation>
94
                </aggregateoccurrence>
95
                <authortaxoncode>$recordNumber</authortaxoncode>
96
                <sourceaccessioncode>$id</sourceaccessioncode>
97
                <taxondetermination>
98
                    <isoriginal>true</isoriginal>
99
                    <role>identifier</role>
100
                    <party_id>
101
                        <party>
102
                            <givenname><_namePart><first>$identifiedBy</first></_namePart></givenname>
103
                            <middlename><_namePart><middle>$identifiedBy</middle></_namePart></middlename>
104
                            <surname><_namePart><last>$identifiedBy</last></_namePart></surname>
105
                        </party>
106
                    </party_id>
107
                    <plantconcept_id>
108
                        <plantconcept>
109
                            <plantname_id>
110
                                <_simplifyPath>
111
                                    <next>parent_id/plantname</next>
112
                                    <require>plantname</require>
113
                                    <path>
114
                                        <plantname>
115
                                            <rank>binomial</rank>
116
                                            <plantname>$scientificName</plantname>
117
                                            <parent_id>
118
                                                <plantname>
119
                                                    <rank>authority</rank>
120
                                                    <plantname>$scientificNameAuthorship</plantname>
121
                                                    <parent_id>
122
                                                        <plantname>
123
                                                            <rank>subspecies</rank>
124
                                                            <plantname>$infraspecificEpithet</plantname>
125
                                                            <parent_id>
126
                                                                <plantname>
127
                                                                    <rank>species</rank>
128
                                                                    <plantname>$specificEpithet</plantname>
129
                                                                    <parent_id>
130
                                                                        <plantname>
131
                                                                            <rank>genus</rank>
132
                                                                            <plantname>$genus</plantname>
133
                                                                            <parent_id>
134
                                                                                <plantname>
135
                                                                                    <rank>family</rank>
136
                                                                                    <plantname>$family</plantname>
137
                                                                                    <parent_id>
138
                                                                                        <plantname>
139
                                                                                            <rank>order</rank>
140
                                                                                            <plantname>$order</plantname>
141
                                                                                            <parent_id>
142
                                                                                                <plantname>
143
                                                                                                    <rank>class</rank>
144
                                                                                                    <plantname>$class</plantname>
145
                                                                                                    <parent_id>
146
                                                                                                        <plantname>
147
                                                                                                            <rank>subkingdom</rank>
148
                                                                                                            <plantname>$phylum</plantname>
149
                                                                                                            <parent_id>
150
                                                                                                                <plantname>
151
                                                                                                                    <rank>kingdom</rank>
152
                                                                                                                    <plantname>$kingdom</plantname>
153
                                                                                                                </plantname>
154
                                                                                                            </parent_id>
155
                                                                                                        </plantname>
156
                                                                                                    </parent_id>
157
                                                                                                </plantname>
158
                                                                                            </parent_id>
159
                                                                                        </plantname>
160
                                                                                    </parent_id>
161
                                                                                </plantname>
162
                                                                            </parent_id>
163
                                                                        </plantname>
164
                                                                    </parent_id>
165
                                                                </plantname>
166
                                                            </parent_id>
167
                                                        </plantname>
168
                                                    </parent_id>
169
                                                </plantname>
170
                                            </parent_id>
171
                                        </plantname>
172
                                    </path>
173
                                </_simplifyPath>
174
                            </plantname_id>
175
                        </plantconcept>
176
                    </plantconcept_id>
177
                    <determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
178
                </taxondetermination>
179
                <verbatimcollectorname>$recordedBy</verbatimcollectorname>
180
            </taxonoccurrence>
181
        </locationevent>
182
        <locationnarrative>
183
            <_merge>
184
                <1>$locality</1>
185
                <3>
186
                    <_label>
187
                        <label>habitat</label>
188
                        <value>$habitat</value>
189
                    </_label>
190
                </3>
191
            </_merge>
192
        </locationnarrative>
193
    </location>
194
</VegBIEN>
195
Inserted 38 new rows into database
    (1-1/1)