Project

General

Profile

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