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
5 5
            <locationevent>
6 6
                <location_id>
7 7
                    <location>
8
                        <elevation>
9
                            <_alt>
10
                                <2>
11
                                    <_avg>
12
                                        <max>
13
                                            <_units>
14
                                                <default>m</default>
15
                                                <to>m</to>
16
                                                <to></to>
17
                                                <value>$maximumElevationInMeters</value>
18
                                            </_units>
19
                                        </max>
20
                                        <min>
21
                                            <_units>
22
                                                <default>m</default>
23
                                                <to>m</to>
24
                                                <to></to>
25
                                                <value>
26
                                                    <_rangeStart>
27
                                                        <value>
28
                                                            <_replace>
29
                                                                <\bca\.?></\bca\.?>
30
                                                                <value>$minimumElevationInMeters</value>
31
                                                            </_replace>
32
                                                        </value>
33
                                                    </_rangeStart>
34
                                                </value>
35
                                            </_units>
36
                                        </min>
37
                                    </_avg>
38
                                </2>
39
                            </_alt>
40
                        </elevation>
41
                        <elevationrange>
42
                            <_range>
43
                                <from>
44
                                    <_units>
45
                                        <default>m</default>
46
                                        <to>m</to>
47
                                        <to></to>
48
                                        <value>
49
                                            <_rangeStart>
50
                                                <value>
51
                                                    <_replace>
52
                                                        <\bca\.?></\bca\.?>
53
                                                        <value>$minimumElevationInMeters</value>
54
                                                    </_replace>
55
                                                </value>
56
                                            </_rangeStart>
57
                                        </value>
58
                                    </_units>
59
                                </from>
60
                                <to>
61
                                    <_units>
62
                                        <default>m</default>
63
                                        <to>m</to>
64
                                        <to></to>
65
                                        <value>
66
                                            <_alt>
67
                                                <1>$maximumElevationInMeters</1>
68
                                                <2>
69
                                                    <_rangeEnd>
70
                                                        <value>
71
                                                            <_replace>
72
                                                                <\bca\.?></\bca\.?>
73
                                                                <value>$minimumElevationInMeters</value>
74
                                                            </_replace>
75
                                                        </value>
76
                                                    </_rangeEnd>
77
                                                </2>
78
                                            </_alt>
79
                                        </value>
80
                                    </_units>
81
                                </to>
82
                            </_range>
83
                        </elevationrange>
8 84
                        <locationdetermination>
9 85
                            <coordsaccuracy><_noCV><value><_alt><1>$coordinateUncertaintyInMeters</1></_alt></value></_noCV></coordsaccuracy>
10 86
                            <footprintgeometry_dwc>$footprintWKT</footprintgeometry_dwc>
......
82 158
                                </3>
83 159
                            </_merge>
84 160
                        </locationnarrative>
85
                        <elevation>
86
                            <_alt>
87
                                <2>
88
                                    <_avg>
89
                                        <min>
90
                                            <_units>
91
                                                <default>m</default>
92
                                                <to>m</to>
93
                                                <to></to>
94
                                                <value>
95
                                                    <_rangeStart>
96
                                                        <value>
97
                                                            <_replace>
98
                                                                <\bca\.?></\bca\.?>
99
                                                                <value>$minimumElevationInMeters</value>
100
                                                            </_replace>
101
                                                        </value>
102
                                                    </_rangeStart>
103
                                                </value>
104
                                            </_units>
105
                                        </min>
106
                                        <max>
107
                                            <_units>
108
                                                <default>m</default>
109
                                                <to>m</to>
110
                                                <to></to>
111
                                                <value>$maximumElevationInMeters</value>
112
                                            </_units>
113
                                        </max>
114
                                    </_avg>
115
                                </2>
116
                            </_alt>
117
                        </elevation>
118
                        <elevationrange>
119
                            <_range>
120
                                <from>
121
                                    <_units>
122
                                        <default>m</default>
123
                                        <to>m</to>
124
                                        <to></to>
125
                                        <value>
126
                                            <_rangeStart>
127
                                                <value>
128
                                                    <_replace>
129
                                                        <\bca\.?></\bca\.?>
130
                                                        <value>$minimumElevationInMeters</value>
131
                                                    </_replace>
132
                                                </value>
133
                                            </_rangeStart>
134
                                        </value>
135
                                    </_units>
136
                                </from>
137
                                <to>
138
                                    <_units>
139
                                        <default>m</default>
140
                                        <to>m</to>
141
                                        <to></to>
142
                                        <value>
143
                                            <_alt>
144
                                                <2>
145
                                                    <_rangeEnd>
146
                                                        <value>
147
                                                            <_replace>
148
                                                                <\bca\.?></\bca\.?>
149
                                                                <value>$minimumElevationInMeters</value>
150
                                                            </_replace>
151
                                                        </value>
152
                                                    </_rangeEnd>
153
                                                </2>
154
                                                <1>$maximumElevationInMeters</1>
155
                                            </_alt>
156
                                        </value>
157
                                    </_units>
158
                                </to>
159
                            </_range>
160
                        </elevationrange>
161 161
                        <sourceaccessioncode>
162 162
                            <_alt>
163
                                <1>$id</1>
163 164
                                <2>
164 165
                                    <_merge>
166
                                        <1>$institutionCode</1>
167
                                        <2>$collectionCode</2>
165 168
                                        <3>$catalogNumber</3>
166
                                        <2>$collectionCode</2>
167
                                        <1>$institutionCode</1>
168 169
                                    </_merge>
169 170
                                </2>
170
                                <1>$id</1>
171 171
                            </_alt>
172 172
                        </sourceaccessioncode>
173 173
                    </location>
174 174
                </location_id>
175
                <obsenddate><_date><date><_dateRangeEnd><value><_alt><2>$eventDate</2></_alt></value></_dateRangeEnd></date></_date></obsenddate>
175 176
                <obsstartdate><_date><date><_dateRangeStart><value><_alt><2>$eventDate</2></_alt></value></_dateRangeStart></date></_date></obsstartdate>
176
                <obsenddate><_date><date><_dateRangeEnd><value><_alt><2>$eventDate</2></_alt></value></_dateRangeEnd></date></_date></obsenddate>
177 177
            </locationevent>
178 178
        </locationevent_id>
179
        <catalognumber_dwc>$catalogNumber</catalognumber_dwc>
180
        <collectioncode_dwc>$collectionCode</collectioncode_dwc>
179 181
        <collectionnumber><_alt><2>$collectionID</2></_alt></collectionnumber>
180 182
        <definedvalue fkey="tablerecord_id">
181 183
            <userdefined_id>
......
186 188
            </userdefined_id>
187 189
            <definedvalue>$sex</definedvalue>
188 190
        </definedvalue>
191
        <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
192
        <sourceaccessioncode>$id</sourceaccessioncode>
189 193
        <taxondetermination>
190 194
            <role>identifier</role>
191 195
            <determinationdate><_date><date><_dateRangeStart><value><_alt><2>$dateIdentified</2></_alt></value></_dateRangeStart></date></_date></determinationdate>
......
270 274
            </plantconcept_id>
271 275
        </taxondetermination>
272 276
        <verbatimcollectorname>$recordedBy</verbatimcollectorname>
273
        <catalognumber_dwc>$catalogNumber</catalognumber_dwc>
274
        <collectioncode_dwc>$collectionCode</collectioncode_dwc>
275
        <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
276
        <sourceaccessioncode>$id</sourceaccessioncode>
277 277
    </specimenreplicate>
278 278
</VegBIEN>
279 279
Inserted 28 new rows into database

Also available in: Unified diff