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
                <3>$catalogNumber</3>
9
            </_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 3946 aaronmk
                            <_if name="if indirect voucher"><else><catalognumber_dwc>$catalogNumber</catalognumber_dwc></else></_if>
73 3962 aaronmk
                            <collectioncode_dwc>
74 3907 aaronmk
                                <_alt>
75 3962 aaronmk
                                    <1>$collectionCode</1>
76 3907 aaronmk
                                    <2>$collectionID</2>
77
                                </_alt>
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 4043 aaronmk
                        <2>$recordNumber</2>
89 4007 aaronmk
                    </_alt>
90
                </sourceaccessioncode>
91 3786 aaronmk
                <taxondetermination>
92 3980 aaronmk
                    <isoriginal>true</isoriginal>
93 3786 aaronmk
                    <role>identifier</role>
94
                    <party_id>
95
                        <party>
96
                            <givenname><_namePart><first>$identifiedBy</first></_namePart></givenname>
97
                            <middlename><_namePart><middle>$identifiedBy</middle></_namePart></middlename>
98
                            <surname><_namePart><last>$identifiedBy</last></_namePart></surname>
99
                        </party>
100
                    </party_id>
101
                    <plantconcept_id>
102
                        <plantconcept>
103
                            <plantname_id>
104
                                <_simplifyPath>
105
                                    <next>parent_id/plantname</next>
106
                                    <require>plantname</require>
107
                                    <path>
108 3641 aaronmk
                                        <plantname>
109 3786 aaronmk
                                            <rank>binomial</rank>
110
                                            <plantname>$scientificName</plantname>
111 3641 aaronmk
                                            <parent_id>
112
                                                <plantname>
113 3786 aaronmk
                                                    <rank>authority</rank>
114
                                                    <plantname>$scientificNameAuthorship</plantname>
115 3641 aaronmk
                                                    <parent_id>
116
                                                        <plantname>
117 3786 aaronmk
                                                            <rank>subspecies</rank>
118
                                                            <plantname>$infraspecificEpithet</plantname>
119 3641 aaronmk
                                                            <parent_id>
120
                                                                <plantname>
121 3786 aaronmk
                                                                    <rank>species</rank>
122
                                                                    <plantname>$specificEpithet</plantname>
123 3641 aaronmk
                                                                    <parent_id>
124
                                                                        <plantname>
125 3786 aaronmk
                                                                            <rank>genus</rank>
126
                                                                            <plantname>$genus</plantname>
127 3641 aaronmk
                                                                            <parent_id>
128
                                                                                <plantname>
129 3786 aaronmk
                                                                                    <rank>family</rank>
130
                                                                                    <plantname>$family</plantname>
131 3641 aaronmk
                                                                                    <parent_id>
132
                                                                                        <plantname>
133 3786 aaronmk
                                                                                            <rank>order</rank>
134
                                                                                            <plantname>$order</plantname>
135 3641 aaronmk
                                                                                            <parent_id>
136
                                                                                                <plantname>
137 3786 aaronmk
                                                                                                    <rank>class</rank>
138
                                                                                                    <plantname>$class</plantname>
139 3641 aaronmk
                                                                                                    <parent_id>
140
                                                                                                        <plantname>
141 3786 aaronmk
                                                                                                            <rank>subkingdom</rank>
142
                                                                                                            <plantname>$phylum</plantname>
143
                                                                                                            <parent_id>
144
                                                                                                                <plantname>
145
                                                                                                                    <rank>kingdom</rank>
146
                                                                                                                    <plantname>$kingdom</plantname>
147
                                                                                                                </plantname>
148
                                                                                                            </parent_id>
149 3641 aaronmk
                                                                                                        </plantname>
150
                                                                                                    </parent_id>
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 3786 aaronmk
                                    </path>
167
                                </_simplifyPath>
168
                            </plantname_id>
169
                        </plantconcept>
170
                    </plantconcept_id>
171 4043 aaronmk
                    <determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
172 3786 aaronmk
                </taxondetermination>
173 3934 aaronmk
                <verbatimcollectorname>$recordedBy</verbatimcollectorname>
174 3907 aaronmk
            </taxonoccurrence>
175 3786 aaronmk
        </locationevent>
176
        <locationnarrative>
177
            <_merge>
178
                <1>$locality</1>
179
                <3>
180
                    <_label>
181
                        <label>habitat</label>
182
                        <value>$habitat</value>
183
                    </_label>
184
                </3>
185
            </_merge>
186
        </locationnarrative>
187 4043 aaronmk
        <sourceaccessioncode>$id</sourceaccessioncode>
188 3786 aaronmk
    </location>
189 3641 aaronmk
</VegBIEN>
190 3907 aaronmk
Inserted 38 new rows into database