Project

General

Profile

« Previous | Next » 

Revision 12961

fix: mappings/VegCore-VegBIEN.csv: taxonoccurrence.sourceaccessioncode: need to populate from aggregateOrganismObservationID when only that is available

View differences:

trunk/inputs/CVS/stemCount_/test.xml.ref
21 21
                                        </plantobservation>
22 22
                                        <sourceaccessioncode>$aggregateOrganismObservationID</sourceaccessioncode>
23 23
                                    </aggregateoccurrence>
24
                                    <sourceaccessioncode>$aggregateOrganismObservationID</sourceaccessioncode>
24 25
                                </taxonoccurrence>
25 26
                            </locationevent>
26 27
                        </locationevent>
......
30 31
        </path>
31 32
    </_setDefault>
32 33
</VegBIEN>
33
Inserted 5 new rows into database
34
Inserted 7 new rows into database
trunk/inputs/VegBank/stemcount_/test.xml.ref
21 21
                                        </plantobservation>
22 22
                                        <sourceaccessioncode>$aggregateOrganismObservationID</sourceaccessioncode>
23 23
                                    </aggregateoccurrence>
24
                                    <sourceaccessioncode>$aggregateOrganismObservationID</sourceaccessioncode>
24 25
                                </taxonoccurrence>
25 26
                            </locationevent>
26 27
                        </locationevent>
......
30 31
        </path>
31 32
    </_setDefault>
32 33
</VegBIEN>
33
Inserted 5 new rows into database
34
Inserted 7 new rows into database
trunk/mappings/VegCore-VegBIEN.csv
223 223
individualID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/else/_first/2",
224 224
dataProviderRecordID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/sourceaccessioncode/_first/3,
225 225
occurrenceID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/sourceaccessioncode/_first/3,
226
aggregateOrganismObservationID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/sourceaccessioncode/_first/4,
226 227
identifiedBy,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal=true]/*_id/party/fullname,
227 228
parentScientificNameID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal=true]/*_id/taxonverbatim/*_id/taxonlabel/_taxonlabel_set_parent_id/parent_id/taxonlabel/sourceaccessioncode,
228 229
parentTaxonConceptID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal=true]/*_id/taxonverbatim/*_id/taxonlabel/_taxonlabel_set_parent_id/parent_id/taxonlabel/sourceaccessioncode,
trunk/mappings/for_review/VegCore-VegBIEN.csv
223 223
individualID,"//taxonoccurrence/sourceaccessioncode/_if[@name=""if organism in AggregateOccurrence""]/else",
224 224
dataProviderRecordID,//taxonoccurrence/sourceaccessioncode,
225 225
occurrenceID,//taxonoccurrence/sourceaccessioncode,
226
aggregateOrganismObservationID,//taxonoccurrence/sourceaccessioncode,
226 227
identifiedBy,//taxonoccurrence/taxondetermination[=true]/*_id/party/fullname,
227 228
parentScientificNameID,//taxonoccurrence/taxondetermination[=true]/*_id/taxonverbatim/*_id/taxonlabel/taxonlabel/sourceaccessioncode,
228 229
parentTaxonConceptID,//taxonoccurrence/taxondetermination[=true]/*_id/taxonverbatim/*_id/taxonlabel/taxonlabel/sourceaccessioncode,

Also available in: Unified diff