Project

General

Profile

« Previous | Next » 

Revision 7803

inputs/BRIT/specimen_flat/map.csv: Only map Notes_Plant to occurrenceRemarks if there is a separate Locality_Description, in order to filter out Notes_Plant values that concatenate everything together (often including a herbarium name that would mess up the cultivated flag parsing)

View differences:

inputs/BRIT/specimen_flat/map.csv
32 32
Project_Name,projectName,,
33 33
Locality_Summary,locality,/_join/1,
34 34
Locality_Description,locality,/_join/2,
35
Locality_Description,occurrenceRemarks,"/_if[@name=""if has Locality_Description""]/cond",
35 36
Locality_Site_Specific,locality,/_join/3,
36 37
Habitat_Description,habitat,/_join/1,
37 38
Habitat_Summary,habitat,/_join/2,
38 39
Soil_Description,*Soil_Description,,
39
Notes_Plant,occurrenceRemarks,,
40
Notes_Plant,occurrenceRemarks,"/_if[@name=""if has Locality_Description""]/then",
40 41
Phenology_Stage,reproductiveCondition,,
41 42
Height_Min,height_m,/_avg/1,Assuming units based on the range and precision of values
42 43
Height_Max,height_m,/_avg/2,Assuming units based on the range and precision of values
inputs/BRIT/specimen_flat/VegBIEN.csv
26 26
Day_Collected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/day/_nullIf:[null=0,type=float]/value",
27 27
Month_Collected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/month/_nullIf:[null=0,type=float]/value",
28 28
Year_Collected,"/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/2/_date/year/_nullIf:[null=0,type=float]/value",
29
Notes_Plant,/location/locationevent/taxonoccurrence/aggregateoccurrence/notes/_join/1,
29
Locality_Description,"/location/locationevent/taxonoccurrence/aggregateoccurrence/notes/_join/1/_if[@name=""if has Locality_Description""]/cond",
30
Notes_Plant,"/location/locationevent/taxonoccurrence/aggregateoccurrence/notes/_join/1/_if[@name=""if has Locality_Description""]/then",
30 31
Collection_Number,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/authorplantcode/_first/2,
31 32
Phenology_Stage,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/reproductivecondition,
32 33
Catalog_Number,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
inputs/BRIT/specimen_flat/test.xml.ref
80 80
                                            </2>
81 81
                                        </_alt>
82 82
                                    </collectiondate>
83
                                    <notes>$Notes_Plant</notes>
83
                                    <notes>
84
                                        <_if name="if has Locality_Description">
85
                                            <cond>$Locality_Description</cond>
86
                                            <then>$Notes_Plant</then>
87
                                        </_if>
88
                                    </notes>
84 89
                                    <plantobservation>
85 90
                                        <authorplantcode>$Collection_Number</authorplantcode>
86 91
                                        <reproductivecondition>$Phenology_Stage</reproductivecondition>
inputs/BRIT/specimen_flat/new_terms.csv
18 18
Subregion_Name,county,,
19 19
Locality_Summary,locality,/_join/1,
20 20
Locality_Description,locality,/_join/2,
21
Locality_Description,occurrenceRemarks,"/_if[@name=""if has Locality_Description""]/cond",
21 22
Locality_Site_Specific,locality,/_join/3,
22 23
Habitat_Description,habitat,/_join/1,
23 24
Habitat_Summary,habitat,/_join/2,
24
Notes_Plant,occurrenceRemarks,,
25
Notes_Plant,occurrenceRemarks,"/_if[@name=""if has Locality_Description""]/then",
25 26
Phenology_Stage,reproductiveCondition,,
26 27
Height_Min,height_m,/_avg/1,Assuming units based on the range and precision of values
27 28
Height_Max,height_m,/_avg/2,Assuming units based on the range and precision of values

Also available in: Unified diff