Revision 4621
Added by Aaron Marcuse-Kubitza almost 12 years ago
test.xml.ref | ||
---|---|---|
1 | 1 |
Put template: |
2 | 2 |
<VegBIEN> |
3 |
<location id="-1">
|
|
4 |
<authorlocationcode>
|
|
5 |
<_alt>
|
|
6 |
<1>$ID</1>
|
|
7 |
<2>$Barcode</2>
|
|
8 |
</_alt>
|
|
9 |
</authorlocationcode>
|
|
10 |
<locationdetermination>
|
|
11 |
<latitude>
|
|
12 |
<_nullIf>
|
|
13 |
<null>0</null>
|
|
14 |
<type>float</type>
|
|
15 |
<value>$Lat</value>
|
|
16 |
</_nullIf>
|
|
17 |
</latitude>
|
|
18 |
<longitude>
|
|
19 |
<_nullIf>
|
|
20 |
<null>0</null>
|
|
21 |
<type>float</type>
|
|
22 |
<value>$Long</value>
|
|
23 |
</_nullIf>
|
|
24 |
</longitude>
|
|
25 |
<namedplace_id>
|
|
26 |
<_simplifyPath>
|
|
27 |
<next>parent_id</next>
|
|
28 |
<path>
|
|
29 |
<namedplace>
|
|
30 |
<rank>county</rank>
|
|
31 |
<parent_id>
|
|
3 |
<_simplifyPath id="-1">
|
|
4 |
<next>parent_id</next>
|
|
5 |
<path>
|
|
6 |
<location>
|
|
7 |
<authorlocationcode>
|
|
8 |
<_alt>
|
|
9 |
<1>$ID</1>
|
|
10 |
<2>$Barcode</2>
|
|
11 |
</_alt>
|
|
12 |
</authorlocationcode>
|
|
13 |
<locationdetermination>
|
|
14 |
<latitude>
|
|
15 |
<_nullIf>
|
|
16 |
<null>0</null>
|
|
17 |
<type>float</type>
|
|
18 |
<value>$Lat</value>
|
|
19 |
</_nullIf>
|
|
20 |
</latitude>
|
|
21 |
<longitude>
|
|
22 |
<_nullIf>
|
|
23 |
<null>0</null>
|
|
24 |
<type>float</type>
|
|
25 |
<value>$Long</value>
|
|
26 |
</_nullIf>
|
|
27 |
</longitude>
|
|
28 |
<namedplace_id>
|
|
29 |
<_simplifyPath>
|
|
30 |
<next>parent_id</next>
|
|
31 |
<path>
|
|
32 | 32 |
<namedplace> |
33 |
<rank>stateProvince</rank>
|
|
33 |
<rank>county</rank>
|
|
34 | 34 |
<parent_id> |
35 | 35 |
<namedplace> |
36 |
<rank>country</rank> |
|
37 |
<placename>$Country</placename> |
|
36 |
<rank>stateProvince</rank> |
|
37 |
<parent_id> |
|
38 |
<namedplace> |
|
39 |
<rank>country</rank> |
|
40 |
<placename>$Country</placename> |
|
41 |
</namedplace> |
|
42 |
</parent_id> |
|
38 | 43 |
</namedplace> |
39 | 44 |
</parent_id> |
40 | 45 |
</namedplace> |
41 |
</parent_id> |
|
42 |
</namedplace> |
|
43 |
</path> |
|
44 |
</_simplifyPath> |
|
45 |
</namedplace_id> |
|
46 |
</locationdetermination> |
|
47 |
<locationevent> |
|
48 |
<taxonoccurrence> |
|
49 |
<aggregateoccurrence> |
|
50 |
<collectiondate> |
|
51 |
<_date> |
|
52 |
<day> |
|
53 |
<_nullIf> |
|
54 |
<null>0</null> |
|
55 |
<type>float</type> |
|
56 |
<value>$Colldd</value> |
|
57 |
</_nullIf> |
|
58 |
</day> |
|
59 |
<month> |
|
60 |
<_nullIf> |
|
61 |
<null>0</null> |
|
62 |
<type>float</type> |
|
63 |
<value>$Collmm</value> |
|
64 |
</_nullIf> |
|
65 |
</month> |
|
66 |
<year> |
|
67 |
<_nullIf> |
|
68 |
<null>0</null> |
|
69 |
<type>float</type> |
|
70 |
<value>$Collyy</value> |
|
71 |
</_nullIf> |
|
72 |
</year> |
|
73 |
</_date> |
|
74 |
</collectiondate> |
|
75 |
<notes>$Notes</notes> |
|
76 |
<plantobservation> |
|
77 |
<collectionnumber>$Number</collectionnumber> |
|
78 |
<specimenreplicate> |
|
79 |
<catalognumber_dwc>$Barcode</catalognumber_dwc> |
|
80 |
<sourceaccessioncode>$ID</sourceaccessioncode> |
|
81 |
</specimenreplicate> |
|
82 |
</plantobservation> |
|
83 |
</aggregateoccurrence> |
|
84 |
<authortaxoncode>$Number</authortaxoncode> |
|
85 |
<taxondetermination> |
|
86 |
<party_id> |
|
87 |
<party> |
|
88 |
<givenname><_namePart><first>$Detby</first></_namePart></givenname> |
|
89 |
<middlename><_namePart><middle>$Detby</middle></_namePart></middlename> |
|
90 |
<surname><_namePart><last>$Detby</last></_namePart></surname> |
|
91 |
</party> |
|
92 |
</party_id> |
|
93 |
<plantconcept_id> |
|
94 |
<plantconcept> |
|
95 |
<plantname_id> |
|
96 |
<_simplifyPath> |
|
97 |
<next>parent_id</next> |
|
98 |
<path> |
|
99 |
<plantname> |
|
100 |
<rank>binomial</rank> |
|
101 |
<parent_id> |
|
46 |
</path> |
|
47 |
</_simplifyPath> |
|
48 |
</namedplace_id> |
|
49 |
</locationdetermination> |
|
50 |
<locationevent> |
|
51 |
<taxonoccurrence> |
|
52 |
<aggregateoccurrence> |
|
53 |
<collectiondate> |
|
54 |
<_date> |
|
55 |
<day> |
|
56 |
<_nullIf> |
|
57 |
<null>0</null> |
|
58 |
<type>float</type> |
|
59 |
<value>$Colldd</value> |
|
60 |
</_nullIf> |
|
61 |
</day> |
|
62 |
<month> |
|
63 |
<_nullIf> |
|
64 |
<null>0</null> |
|
65 |
<type>float</type> |
|
66 |
<value>$Collmm</value> |
|
67 |
</_nullIf> |
|
68 |
</month> |
|
69 |
<year> |
|
70 |
<_nullIf> |
|
71 |
<null>0</null> |
|
72 |
<type>float</type> |
|
73 |
<value>$Collyy</value> |
|
74 |
</_nullIf> |
|
75 |
</year> |
|
76 |
</_date> |
|
77 |
</collectiondate> |
|
78 |
<notes>$Notes</notes> |
|
79 |
<plantobservation> |
|
80 |
<collectionnumber>$Number</collectionnumber> |
|
81 |
<specimenreplicate> |
|
82 |
<catalognumber_dwc>$Barcode</catalognumber_dwc> |
|
83 |
<sourceaccessioncode>$ID</sourceaccessioncode> |
|
84 |
</specimenreplicate> |
|
85 |
</plantobservation> |
|
86 |
</aggregateoccurrence> |
|
87 |
<authortaxoncode>$Number</authortaxoncode> |
|
88 |
<taxondetermination> |
|
89 |
<party_id> |
|
90 |
<party> |
|
91 |
<givenname><_namePart><first>$Detby</first></_namePart></givenname> |
|
92 |
<middlename><_namePart><middle>$Detby</middle></_namePart></middlename> |
|
93 |
<surname><_namePart><last>$Detby</last></_namePart></surname> |
|
94 |
</party> |
|
95 |
</party_id> |
|
96 |
<plantconcept_id> |
|
97 |
<plantconcept> |
|
98 |
<plantname_id> |
|
99 |
<_simplifyPath> |
|
100 |
<next>parent_id</next> |
|
101 |
<path> |
|
102 | 102 |
<plantname> |
103 |
<rank>authority</rank>
|
|
103 |
<rank>binomial</rank>
|
|
104 | 104 |
<parent_id> |
105 | 105 |
<plantname> |
106 |
<rank>subspecies</rank>
|
|
106 |
<rank>authority</rank>
|
|
107 | 107 |
<parent_id> |
108 | 108 |
<plantname> |
109 |
<rank>species</rank> |
|
109 |
<rank>subspecies</rank>
|
|
110 | 110 |
<parent_id> |
111 | 111 |
<plantname> |
112 |
<rank>genus</rank> |
|
113 |
<plantname>$Genus</plantname> |
|
112 |
<rank>species</rank> |
|
114 | 113 |
<parent_id> |
115 | 114 |
<plantname> |
116 |
<rank>family</rank> |
|
117 |
<plantname>$Family</plantname> |
|
115 |
<rank>genus</rank> |
|
116 |
<plantname>$Genus</plantname> |
|
117 |
<parent_id> |
|
118 |
<plantname> |
|
119 |
<rank>family</rank> |
|
120 |
<plantname>$Family</plantname> |
|
121 |
</plantname> |
|
122 |
</parent_id> |
|
118 | 123 |
</plantname> |
119 | 124 |
</parent_id> |
120 | 125 |
</plantname> |
... | ... | |
124 | 129 |
</plantname> |
125 | 130 |
</parent_id> |
126 | 131 |
</plantname> |
127 |
</parent_id> |
|
128 |
</plantname> |
|
129 |
</path> |
|
130 |
</_simplifyPath> |
|
131 |
</plantname_id> |
|
132 |
</plantconcept> |
|
133 |
</plantconcept_id> |
|
134 |
<determinationdate> |
|
135 |
<_date> |
|
136 |
<year> |
|
137 |
<_nullIf> |
|
138 |
<null>0</null> |
|
139 |
<type>float</type> |
|
140 |
<value>$Detyy</value> |
|
141 |
</_nullIf> |
|
142 |
</year> |
|
143 |
</_date> |
|
144 |
</determinationdate> |
|
145 |
<taxonfit>$cf</taxonfit> |
|
146 |
</taxondetermination> |
|
147 |
<verbatimcollectorname> |
|
132 |
</path> |
|
133 |
</_simplifyPath> |
|
134 |
</plantname_id> |
|
135 |
</plantconcept> |
|
136 |
</plantconcept_id> |
|
137 |
<determinationdate> |
|
138 |
<_date> |
|
139 |
<year> |
|
140 |
<_nullIf> |
|
141 |
<null>0</null> |
|
142 |
<type>float</type> |
|
143 |
<value>$Detyy</value> |
|
144 |
</_nullIf> |
|
145 |
</year> |
|
146 |
</_date> |
|
147 |
</determinationdate> |
|
148 |
<taxonfit>$cf</taxonfit> |
|
149 |
</taxondetermination> |
|
150 |
<verbatimcollectorname> |
|
151 |
<_merge> |
|
152 |
<1>$Collector</1> |
|
153 |
<2>$Addcoll</2> |
|
154 |
</_merge> |
|
155 |
</verbatimcollectorname> |
|
156 |
</taxonoccurrence> |
|
157 |
</locationevent> |
|
158 |
<locationnarrative> |
|
148 | 159 |
<_merge> |
149 |
<1>$Collector</1> |
|
150 |
<2>$Addcoll</2> |
|
151 |
</_merge> |
|
152 |
</verbatimcollectorname> |
|
153 |
</taxonoccurrence> |
|
154 |
</locationevent> |
|
155 |
<locationnarrative> |
|
156 |
<_merge> |
|
157 |
<2> |
|
158 |
<_merge> |
|
159 |
<1> |
|
160 |
<2> |
|
161 |
<_merge> |
|
162 |
<1> |
|
163 |
<_label> |
|
164 |
<label>gazetteer</label> |
|
165 |
<value> |
|
166 |
<_merge> |
|
167 |
<1>$Gazetteer</1> |
|
168 |
<2>$Newgazett</2> |
|
169 |
</_merge> |
|
170 |
</value> |
|
171 |
</_label> |
|
172 |
</1> |
|
173 |
<2>$Locnotes</2> |
|
174 |
</_merge> |
|
175 |
</2> |
|
176 |
<3> |
|
160 | 177 |
<_label> |
161 |
<label>gazetteer</label> |
|
162 |
<value> |
|
163 |
<_merge> |
|
164 |
<1>$Gazetteer</1> |
|
165 |
<2>$Newgazett</2> |
|
166 |
</_merge> |
|
167 |
</value> |
|
178 |
<label>habitat</label> |
|
179 |
<value>$Ecology</value> |
|
168 | 180 |
</_label> |
169 |
</1> |
|
170 |
<2>$Locnotes</2> |
|
181 |
</3> |
|
171 | 182 |
</_merge> |
172 |
</2> |
|
173 |
<3> |
|
174 |
<_label> |
|
175 |
<label>habitat</label> |
|
176 |
<value>$Ecology</value> |
|
177 |
</_label> |
|
178 |
</3> |
|
179 |
</_merge> |
|
180 |
</locationnarrative> |
|
181 |
</location> |
|
183 |
</locationnarrative> |
|
184 |
</location> |
|
185 |
</path> |
|
186 |
</_simplifyPath> |
|
182 | 187 |
</VegBIEN> |
183 | 188 |
Inserted 26 new rows into database |
Also available in: Unified diff
mappings/VegCore-VegBIEN.csv: Added /_simplifyPath:[next=parent_id]/path to root so the returned subplot location will be its parent location if there is no subplot name or ID (indicating that that particular plot did not have subplots). Note that this also causes the parent_id forwarding effect to occur for all other tables containing parent_id, which will help prevent similar issues with subplot events, etc. This will hopefully fix the SALVIAS.plotObservations bug where some organisms did not have a subplot #, causing the subplot location to become NULL and causing the corresponding locationevent rows not to match the locationevent_unique_within_location index filter condition (which requires a parent_id), which caused multiple output table pkeys to be returned for those rows, violating the locationevent_pkeys temp table's primary key.