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
                        <specimenreplicate>
81
                            <catalognumber_dwc><_if name="if indirect voucher"><else>$catalogNumber</else></_if></catalognumber_dwc>
82
                            <collectioncode_dwc>
83
                                <_merge>
84
                                    <1>$collectionCode</1>
85
                                    <2>$collectionID</2>
86
                                </_merge>
87
                            </collectioncode_dwc>
88
                            <collectionnumber>$recordNumber</collectionnumber>
89
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
90
                            <sourceaccessioncode>$id</sourceaccessioncode>
91
                        </specimenreplicate>
92
                    </plantobservation>
93
                </aggregateoccurrence>
94
                <authortaxoncode>$recordNumber</authortaxoncode>
95
                <taxondetermination>
96
                    <isoriginal>true</isoriginal>
97
                    <role>identifier</role>
98
                    <party_id>
99
                        <party>
100
                            <givenname><_namePart><first>$identifiedBy</first></_namePart></givenname>
101
                            <middlename><_namePart><middle>$identifiedBy</middle></_namePart></middlename>
102
                            <surname><_namePart><last>$identifiedBy</last></_namePart></surname>
103
                        </party>
104
                    </party_id>
105
                    <plantconcept_id>
106
                        <plantconcept>
107
                            <plantname_id>
108
                                <_simplifyPath>
109
                                    <next>parent_id/plantname</next>
110
                                    <require>plantname</require>
111
                                    <path>
112
                                        <plantname>
113
                                            <rank>binomial</rank>
114
                                            <plantname>$scientificName</plantname>
115
                                            <parent_id>
116
                                                <plantname>
117
                                                    <rank>authority</rank>
118
                                                    <plantname>$scientificNameAuthorship</plantname>
119
                                                    <parent_id>
120
                                                        <plantname>
121
                                                            <rank>subspecies</rank>
122
                                                            <plantname>$infraspecificEpithet</plantname>
123
                                                            <parent_id>
124
                                                                <plantname>
125
                                                                    <rank>species</rank>
126
                                                                    <plantname>$specificEpithet</plantname>
127
                                                                    <parent_id>
128
                                                                        <plantname>
129
                                                                            <rank>genus</rank>
130
                                                                            <plantname>$genus</plantname>
131
                                                                            <parent_id>
132
                                                                                <plantname>
133
                                                                                    <rank>family</rank>
134
                                                                                    <plantname>$family</plantname>
135
                                                                                    <parent_id>
136
                                                                                        <plantname>
137
                                                                                            <rank>order</rank>
138
                                                                                            <plantname>$order</plantname>
139
                                                                                            <parent_id>
140
                                                                                                <plantname>
141
                                                                                                    <rank>class</rank>
142
                                                                                                    <plantname>$class</plantname>
143
                                                                                                    <parent_id>
144
                                                                                                        <plantname>
145
                                                                                                            <rank>subkingdom</rank>
146
                                                                                                            <plantname>$phylum</plantname>
147
                                                                                                            <parent_id>
148
                                                                                                                <plantname>
149
                                                                                                                    <rank>kingdom</rank>
150
                                                                                                                    <plantname>$kingdom</plantname>
151
                                                                                                                </plantname>
152
                                                                                                            </parent_id>
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
                                    </path>
171
                                </_simplifyPath>
172
                            </plantname_id>
173
                        </plantconcept>
174
                    </plantconcept_id>
175
                    <determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
176
                </taxondetermination>
177
                <verbatimcollectorname>$recordedBy</verbatimcollectorname>
178
            </taxonoccurrence>
179
        </locationevent>
180
        <locationnarrative>
181
            <_merge>
182
                <1>$locality</1>
183
                <3>
184
                    <_label>
185
                        <label>habitat</label>
186
                        <value>$habitat</value>
187
                    </_label>
188
                </3>
189
            </_merge>
190
        </locationnarrative>
191
    </location>
192
</VegBIEN>
193
Inserted 38 new rows into database
    (1-1/1)