Project

General

Profile

« Previous | Next » 

Revision 11105

bugfix: mappings/VegCore-VegBIEN.csv: stratum's locationevent: link this to the parent locationevent, so that the parent locationevent's information (such as locationeventcontributors) is accessible to the stratum's locationevent

View differences:

inputs/CVS/observation_/VegBIEN.csv
18 18
OBSERVATION_ID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/sourceaccessioncode",
19 19
obsEndDate,/location/locationevent/obsenddate/_alt/1,
20 20
obsStartDate,/location/locationevent/obsstartdate/_alt/1,
21
OBSERVATION_ID,"/location/locationevent/parent_id/locationevent/sourceaccessioncode/_if[@name=""if stratum""]/then",
21 22
baseSaturation,/location/locationevent/soilsample/basesaturation_fraction/_percent_to_fraction/value,
22 23
exchangeCapacity,/location/locationevent/soilsample/cationexchangecapacity_cmol_kg,
23 24
soilClay,/location/locationevent/soilsample/clay_fraction/_percent_to_fraction/value,
inputs/CVS/taxonObservation_/VegBIEN.csv
10 10
OBSERVATION_ID,"/location/locationevent/_if[@name=""if subplot""]/else/sourceaccessioncode",
11 11
OBSERVATION_ID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/cond/_exists",
12 12
OBSERVATION_ID,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/sourceaccessioncode",
13
OBSERVATION_ID,"/location/locationevent/parent_id/locationevent/sourceaccessioncode/_if[@name=""if stratum""]/then",
13 14
interpretationDate,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/determinationdate/_alt/1/_dateRangeStart/value",
14 15
taxonFit,"/location/locationevent/taxonoccurrence/_if[@name=""if has accepted name""]/then/taxondetermination:[determinationtype=accepted]/taxonfit",
15 16
collectionDate,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1,
inputs/VegBank/taxon_observation.**/test.xml.ref
22 22
                            <sourceaccessioncode>$eventID</sourceaccessioncode>
23 23
                            <obsenddate>$endDate</obsenddate>
24 24
                            <obsstartdate>$startDate</obsstartdate>
25
                            <parent_id>
26
                                <locationevent>
27
                                    <sourceaccessioncode>
28
                                        <_if name="if stratum">
29
                                            <cond>$stratum__name</cond>
30
                                            <then>$eventID</then>
31
                                        </_if>
32
                                    </sourceaccessioncode>
33
                                </locationevent>
34
                            </parent_id>
25 35
                            <soilsample>
26 36
                                <basesaturation_fraction><_percent_to_fraction><value>$baseSaturation_percent</value></_percent_to_fraction></basesaturation_fraction>
27 37
                                <cationexchangecapacity_cmol_kg>$cationExchangeCapacity_cmol_kg</cationexchangecapacity_cmol_kg>
mappings/VegCore-VegBIEN.csv
88 88
eventDate,/location/locationevent/obsenddate/_alt/2/_dateRangeEnd/value,
89 89
startDate,/location/locationevent/obsstartdate/_alt/1,
90 90
eventDate,/location/locationevent/obsstartdate/_alt/2/_dateRangeStart/value,
91
stratum__name,"/location/locationevent/parent_id/locationevent/sourceaccessioncode/_if[@name=""if stratum""]/cond",
92
eventID,"/location/locationevent/parent_id/locationevent/sourceaccessioncode/_if[@name=""if stratum""]/then",
91 93
precipitation_m,/location/locationevent/precipitation_m,
92 94
precipitation_mm,/location/locationevent/precipitation_m/_mm_to_m/value,
93 95
acidity_percent,/location/locationevent/soilsample/acidity_fraction/_percent_to_fraction/value,
mappings/for_review/VegCore-VegBIEN.csv
88 88
eventDate,//locationevent/obsenddate,
89 89
startDate,//locationevent/obsstartdate,
90 90
eventDate,//locationevent/obsstartdate,
91
stratum__name,"//locationevent/sourceaccessioncode/_if[@name=""if stratum""]/cond",
92
eventID,"//locationevent/sourceaccessioncode/_if[@name=""if stratum""]/then",
91 93
precipitation_m,//locationevent/precipitation_m,
92 94
precipitation_mm,//locationevent/precipitation_m/_mm_to_m/value,
93 95
acidity_percent,//soilsample/acidity_fraction/_percent_to_fraction/value,

Also available in: Unified diff