Project

General

Profile

« Previous | Next » 

Revision 3780

mappings/DwC2-VegBIEN.specimens.csv: Expanded {} expressions using expand_braces, so that each distinct output for the same input is on its own line, improving readability. This will also help enable search-and-replace reversing of XPaths for the re-rooting to location.

View differences:

import.specimens.xml.ref
44 44
                        </locationnarrative>
45 45
                        <sourceaccessioncode>
46 46
                            <_alt>
47
                                <1>$accession</1>
47 48
                                <2><_merge><2>$herbarium</2></_merge></2>
48
                                <1>$accession</1>
49 49
                            </_alt>
50 50
                        </sourceaccessioncode>
51 51
                    </location>
52 52
                </location_id>
53
                <obsstartdate>
53
                <obsenddate>
54 54
                    <_date>
55 55
                        <date>
56
                            <_dateRangeStart>
56
                            <_dateRangeEnd>
57 57
                                <value>
58 58
                                    <_alt>
59 59
                                        <1>
......
83 83
                                        </1>
84 84
                                    </_alt>
85 85
                                </value>
86
                            </_dateRangeStart>
86
                            </_dateRangeEnd>
87 87
                        </date>
88 88
                    </_date>
89
                </obsstartdate>
90
                <obsenddate>
89
                </obsenddate>
90
                <obsstartdate>
91 91
                    <_date>
92 92
                        <date>
93
                            <_dateRangeEnd>
93
                            <_dateRangeStart>
94 94
                                <value>
95 95
                                    <_alt>
96 96
                                        <1>
......
120 120
                                        </1>
121 121
                                    </_alt>
122 122
                                </value>
123
                            </_dateRangeEnd>
123
                            </_dateRangeStart>
124 124
                        </date>
125 125
                    </_date>
126
                </obsenddate>
126
                </obsstartdate>
127 127
            </locationevent>
128 128
        </locationevent_id>
129
        <collectioncode_dwc>$herbarium</collectioncode_dwc>
129 130
        <collectionnumber><_alt><1><_alt><1>$collectno</1></_alt></1></_alt></collectionnumber>
130 131
        <description>
131 132
            <_merge>
......
157 158
                </1>
158 159
            </_merge>
159 160
        </description>
161
        <growthform>
162
            <_map>
163
                <tree>*</tree>
164
                <shrub>*</shrub>
165
                <liana>*</liana>
166
                <vine>*</vine>
167
                <herb>*</herb>
168
                <hemiepiphyte>*</hemiepiphyte>
169
                <epiphyte>*</epiphyte>
170
                <grass>*</grass>
171
                <forb>*</forb>
172
                <moss>*</moss>
173
                <lichen>*</lichen>
174
                <fungus>*</fungus>
175
                <floating aquatic>*</floating aquatic>
176
                <submerged aquatic>*</submerged aquatic>
177
                <*></*>
178
                <value>
179
                    <_map>
180
                        <Y>cultivated</Y>
181
                        <N>wild</N>
182
                        <*></*>
183
                        <value>$cultivated</value>
184
                    </_map>
185
                </value>
186
            </_map>
187
        </growthform>
188
        <iscultivated>
189
            <_map>
190
                <cultivated>t</cultivated>
191
                <wild>f</wild>
192
                <*></*>
193
                <value>
194
                    <_map>
195
                        <Y>cultivated</Y>
196
                        <N>wild</N>
197
                        <*></*>
198
                        <value>$cultivated</value>
199
                    </_map>
200
                </value>
201
            </_map>
202
        </iscultivated>
203
        <isnative>
204
            <_map>
205
                <native>t</native>
206
                <exotic>f</exotic>
207
                <*></*>
208
                <value>
209
                    <_map>
210
                        <Y>cultivated</Y>
211
                        <N>wild</N>
212
                        <*></*>
213
                        <value>$cultivated</value>
214
                    </_map>
215
                </value>
216
            </_map>
217
        </isnative>
218
        <sourceaccessioncode>$accession</sourceaccessioncode>
160 219
        <taxondetermination>
161 220
            <isoriginal>true</isoriginal>
162 221
            <iscurrent>true</iscurrent>
......
216 275
                <4>$collector3</4>
217 276
            </_merge>
218 277
        </verbatimcollectorname>
219
        <collectioncode_dwc>$herbarium</collectioncode_dwc>
220
        <growthform>
221
            <_map>
222
                <tree>*</tree>
223
                <shrub>*</shrub>
224
                <liana>*</liana>
225
                <vine>*</vine>
226
                <herb>*</herb>
227
                <hemiepiphyte>*</hemiepiphyte>
228
                <epiphyte>*</epiphyte>
229
                <grass>*</grass>
230
                <forb>*</forb>
231
                <moss>*</moss>
232
                <lichen>*</lichen>
233
                <fungus>*</fungus>
234
                <floating aquatic>*</floating aquatic>
235
                <submerged aquatic>*</submerged aquatic>
236
                <*></*>
237
                <value>
238
                    <_map>
239
                        <Y>cultivated</Y>
240
                        <N>wild</N>
241
                        <*></*>
242
                        <value>$cultivated</value>
243
                    </_map>
244
                </value>
245
            </_map>
246
        </growthform>
247
        <iscultivated>
248
            <_map>
249
                <cultivated>t</cultivated>
250
                <wild>f</wild>
251
                <*></*>
252
                <value>
253
                    <_map>
254
                        <Y>cultivated</Y>
255
                        <N>wild</N>
256
                        <*></*>
257
                        <value>$cultivated</value>
258
                    </_map>
259
                </value>
260
            </_map>
261
        </iscultivated>
262
        <isnative>
263
            <_map>
264
                <native>t</native>
265
                <exotic>f</exotic>
266
                <*></*>
267
                <value>
268
                    <_map>
269
                        <Y>cultivated</Y>
270
                        <N>wild</N>
271
                        <*></*>
272
                        <value>$cultivated</value>
273
                    </_map>
274
                </value>
275
            </_map>
276
        </isnative>
277
        <sourceaccessioncode>$accession</sourceaccessioncode>
278 278
    </specimenreplicate>
279 279
</VegBIEN>
280 280
Inserted 15 new rows into database

Also available in: Unified diff