Project

General

Profile

« Previous | Next » 

Revision 4338

inputs/CTFS/PlotObservation/: Remade (hadn't been automatically remade because it wasn't part of import_order.txt)

View differences:

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

Also available in: Unified diff