Project

General

Profile

1 3641 aaronmk
Put template:
2
<VegBIEN>
3 3786 aaronmk
    <location id="-1">
4 4003 aaronmk
        <authorlocationcode>
5
            <_merge>
6
                <1>$institutionCode</1>
7 4062 aaronmk
                <2>
8
                    <_merge>
9
                        <1>$collectionCode</1>
10
                        <2>$collectionID</2>
11
                    </_merge>
12
                </2>
13 4058 aaronmk
                <3><_if name="if indirect voucher"><else>$catalogNumber</else></_if></3>
14 4003 aaronmk
            </_merge>
15
        </authorlocationcode>
16 3996 aaronmk
        <elevation>
17 4043 aaronmk
            <_replace>
18
                <\bca\.?></\bca\.?>
19
                <value>$verbatimElevation</value>
20
            </_replace>
21 3996 aaronmk
        </elevation>
22 3786 aaronmk
        <locationdetermination>
23
            <latitude>
24 4043 aaronmk
                <_nullIf>
25
                    <null>0</null>
26
                    <type>float</type>
27
                    <value>$decimalLatitude</value>
28
                </_nullIf>
29 3786 aaronmk
            </latitude>
30
            <longitude>
31 4043 aaronmk
                <_nullIf>
32
                    <null>0</null>
33
                    <type>float</type>
34
                    <value>$decimalLongitude</value>
35
                </_nullIf>
36 3786 aaronmk
            </longitude>
37
            <namedplace_id>
38
                <_simplifyPath>
39
                    <next>parent_id/namedplace</next>
40
                    <require>placename</require>
41
                    <path>
42
                        <namedplace>
43
                            <rank>county</rank>
44
                            <placename>$county</placename>
45
                            <parent_id>
46
                                <namedplace>
47
                                    <rank>stateProvince</rank>
48
                                    <placename>$stateProvince</placename>
49
                                    <parent_id>
50 3641 aaronmk
                                        <namedplace>
51 3786 aaronmk
                                            <rank>country</rank>
52
                                            <placename>$country</placename>
53 3641 aaronmk
                                            <parent_id>
54
                                                <namedplace>
55 3786 aaronmk
                                                    <rank>continent</rank>
56
                                                    <placename>$continent</placename>
57 3641 aaronmk
                                                </namedplace>
58
                                            </parent_id>
59
                                        </namedplace>
60 3786 aaronmk
                                    </parent_id>
61
                                </namedplace>
62
                            </parent_id>
63
                        </namedplace>
64
                    </path>
65
                </_simplifyPath>
66
            </namedplace_id>
67
        </locationdetermination>
68
        <locationevent>
69 4043 aaronmk
            <obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
70
            <obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
71 3907 aaronmk
            <taxonoccurrence>
72
                <aggregateoccurrence>
73
                    <plantobservation>
74 4043 aaronmk
                        <authorplantcode>$recordNumber</authorplantcode>
75 4006 aaronmk
                        <sourceaccessioncode>$id</sourceaccessioncode>
76 3907 aaronmk
                        <specimenreplicate>
77 4057 aaronmk
                            <catalognumber_dwc><_if name="if indirect voucher"><else>$catalogNumber</else></_if></catalognumber_dwc>
78 3962 aaronmk
                            <collectioncode_dwc>
79 4056 aaronmk
                                <_merge>
80 3962 aaronmk
                                    <1>$collectionCode</1>
81 3907 aaronmk
                                    <2>$collectionID</2>
82 4056 aaronmk
                                </_merge>
83 3962 aaronmk
                            </collectioncode_dwc>
84 4043 aaronmk
                            <collectionnumber>$recordNumber</collectionnumber>
85 3907 aaronmk
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
86
                            <sourceaccessioncode>$id</sourceaccessioncode>
87
                        </specimenreplicate>
88
                    </plantobservation>
89
                </aggregateoccurrence>
90 4007 aaronmk
                <sourceaccessioncode>
91
                    <_alt>
92
                        <1>$id</1>
93 4046 aaronmk
                        <2><_if name="if indirect voucher"><else>$catalogNumber</else></_if></2>
94
                        <3>$recordNumber</3>
95 4007 aaronmk
                    </_alt>
96
                </sourceaccessioncode>
97 3786 aaronmk
                <taxondetermination>
98 3980 aaronmk
                    <isoriginal>true</isoriginal>
99 3786 aaronmk
                    <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 3641 aaronmk
                                        <plantname>
115 3786 aaronmk
                                            <rank>binomial</rank>
116
                                            <plantname>$scientificName</plantname>
117 3641 aaronmk
                                            <parent_id>
118
                                                <plantname>
119 3786 aaronmk
                                                    <rank>authority</rank>
120
                                                    <plantname>$scientificNameAuthorship</plantname>
121 3641 aaronmk
                                                    <parent_id>
122
                                                        <plantname>
123 3786 aaronmk
                                                            <rank>subspecies</rank>
124
                                                            <plantname>$infraspecificEpithet</plantname>
125 3641 aaronmk
                                                            <parent_id>
126
                                                                <plantname>
127 3786 aaronmk
                                                                    <rank>species</rank>
128
                                                                    <plantname>$specificEpithet</plantname>
129 3641 aaronmk
                                                                    <parent_id>
130
                                                                        <plantname>
131 3786 aaronmk
                                                                            <rank>genus</rank>
132
                                                                            <plantname>$genus</plantname>
133 3641 aaronmk
                                                                            <parent_id>
134
                                                                                <plantname>
135 3786 aaronmk
                                                                                    <rank>family</rank>
136
                                                                                    <plantname>$family</plantname>
137 3641 aaronmk
                                                                                    <parent_id>
138
                                                                                        <plantname>
139 3786 aaronmk
                                                                                            <rank>order</rank>
140
                                                                                            <plantname>$order</plantname>
141 3641 aaronmk
                                                                                            <parent_id>
142
                                                                                                <plantname>
143 3786 aaronmk
                                                                                                    <rank>class</rank>
144
                                                                                                    <plantname>$class</plantname>
145 3641 aaronmk
                                                                                                    <parent_id>
146
                                                                                                        <plantname>
147 3786 aaronmk
                                                                                                            <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 3641 aaronmk
                                                                                                        </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 3786 aaronmk
                                    </path>
173
                                </_simplifyPath>
174
                            </plantname_id>
175
                        </plantconcept>
176
                    </plantconcept_id>
177 4043 aaronmk
                    <determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
178 3786 aaronmk
                </taxondetermination>
179 3934 aaronmk
                <verbatimcollectorname>$recordedBy</verbatimcollectorname>
180 3907 aaronmk
            </taxonoccurrence>
181 3786 aaronmk
        </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 4043 aaronmk
        <sourceaccessioncode>$id</sourceaccessioncode>
194 3786 aaronmk
    </location>
195 3641 aaronmk
</VegBIEN>
196 3907 aaronmk
Inserted 38 new rows into database