Project

General

Profile

« Previous | Next » 

Revision 4074

mappings/DwC2-VegBIEN.specimens.csv, VegCSV-VegBIEN.specimens.csv: Split occurrenceID into occurrenceID and individualID, where individualID refers to the plant in plots data and occurrenceID refers to the specimen in specimens data. This prevents plant sourceaccessioncodes from being mapped to the specimenreplicate, which was messing up stems mappings for the parent plantobservation. It also avoids mapping the specimenreplicate sourceaccessioncode to additional tables where it isn't needed. (Note that occurrenceID is needed for location to ensure that each specimen gets its own location to make locationdeterminations on. Everything else is directly or indirectly scoped by location when its own sourceaccessioncode isn't specified.)

View differences:

import.specimens.xml.ref
146 146
                    <notes>$Notes</notes>
147 147
                    <plantobservation>
148 148
                        <authorplantcode>$Number</authorplantcode>
149
                        <sourceaccessioncode>$ID</sourceaccessioncode>
150 149
                        <specimenreplicate>
151 150
                            <catalognumber_dwc><_if name="if indirect voucher"><else>$Barcode</else></_if></catalognumber_dwc>
152 151
                            <collectionnumber>$Number</collectionnumber>
......
155 154
                    </plantobservation>
156 155
                </aggregateoccurrence>
157 156
                <authortaxoncode>$Number</authortaxoncode>
158
                <sourceaccessioncode>$ID</sourceaccessioncode>
159 157
                <taxondetermination>
160 158
                    <isoriginal>true</isoriginal>
161 159
                    <role>identifier</role>

Also available in: Unified diff