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