Project

General

Profile

« Previous | Next » 

Revision 4307

Added inputs/CTFS/PlotObservation/

View differences:

inputs/CTFS/PlotObservation/src.csv
1
CTFS[Veg+],Veg+,Comments
2
CensusID,,
3
PlotID,,
4
PlotCensusNumber,,
5
StartDate,,
6
EndDate,,
7
Description,,
inputs/CTFS/PlotObservation/map.csv
1
CTFS[Veg+],Veg+,Comments
2
Description,,
inputs/CTFS/PlotObservation/map.full.csv
1
CTFS[Veg+],Veg+,Comments
2
CensusID,CensusID
3
EndDate,EndDate
4
PlotCensusNumber,PlotCensusNumber
5
PlotID,PlotID
6
StartDate,StartDate
inputs/CTFS/PlotObservation/VegBIEN.csv
1
CTFS[Veg+],VegBIEN:,Comments
2
PlotID,"/location/authorlocationcode/_alt/2/_if[@name=""if locationID""]/cond/_exists",
3
PlotCensusNumber,"/location/authorlocationcode/_alt/2/_if[@name=""if locationID""]/else",
4
PlotCensusNumber,/location/locationevent/authoreventcode,
5
EndDate,/location/locationevent/obsenddate/_*/date/_dateRangeEnd/value,
6
StartDate,/location/locationevent/obsstartdate/_*/date/_dateRangeStart/value,
7
CensusID,/location/locationevent/sourceaccessioncode,
8
PlotID,"/location/parent_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then",
9
PlotID,"/location/sourceaccessioncode/_if[@name=""if subplot""]/else",
inputs/CTFS/PlotObservation/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <location id="-1">
4
        <locationevent>
5
            <authoreventcode>$PlotCensusNumber</authoreventcode>
6
            <obsenddate><_date><date><_dateRangeEnd><value>$EndDate</value></_dateRangeEnd></date></_date></obsenddate>
7
            <obsstartdate><_date><date><_dateRangeStart><value>$StartDate</value></_dateRangeStart></date></_date></obsstartdate>
8
            <sourceaccessioncode>$CensusID</sourceaccessioncode>
9
        </locationevent>
10
        <sourceaccessioncode>$PlotID</sourceaccessioncode>
11
    </location>
12
</VegBIEN>
13
Inserted 4 new rows into database

Also available in: Unified diff