Project

General

Profile

« Previous | Next » 

Revision 6409

mappings/VegCore-VegBIEN.csv: source table mappings: Set shortname to env var $source when it's not explicitly specified, because shortname is a required field of source

View differences:

VegBIEN.csv
1 1
MT,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
id,"/_if[@name=""if specimen""]/cond/_exists",
3
institutionCode,"/_if[@name=""if specimen""]/else/source/shortname/_first/1",
2 4
id,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/1",
3 5
id,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/1/_if[@name=""if specimen""]/cond/_exists",
4 6
institutionCode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/1/_if[@name=""if specimen""]/then",
......
28 30
genus,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/genus,
29 31
locality,/location/locationnarrative/_merge/1,
30 32
continent,/location/locationplace/*_id/place/continent,
31
id,"/source/shortname/_if[@name=""if specimen""]/cond/_exists",
32
institutionCode,"/source/shortname/_if[@name=""if specimen""]/else",
33 33
basisOfRecord,,** No join mapping for basisOfRecord ** 
34 34
countryCode,,** No join mapping for countryCode ** 
35 35
datasetName,,** No join mapping for datasetName ** 

Also available in: Unified diff