Project

General

Profile

« Previous | Next » 

Revision 9875

bugfix: inputs/input.Makefile: %/VegBIEN.csv: use header from map.csv instead of the new columns, so that source.shortname is set to GBIF instead of VegCore

View differences:

inputs/GBIF/raw_occurrence_record_plants/VegBIEN.csv
1
VegCore,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
1
GBIF,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Filter; Comments,Comments
2 2
accessionNumber,"/_if[@name=""if specimen""]/cond/_exists",
3 3
dataProviderRecordID,"/_if[@name=""if specimen""]/cond/_exists",
4 4
specimenHolderInstitutions,"/_if[@name=""if specimen""]/else/source/shortname/_first/1",
inputs/input.Makefile
339 339
endif
340 340

  
341 341
%/VegBIEN.csv: %/map.csv $(coreMap)
342
	<$< $(bin)/cat_cols 1 2$(if $(wildcard $*/run),|$(bin)/cols 1 1 3\
342
	<$< $(bin)/cat_cols 1 2$(if $(wildcard\
343
$*/run),|$(bin)/cols 1 1 3|(head -1 $<; tail -n +2)\
343 344
)|$(bin)/join $(coreMap)|$(bin)/sort_map >$@
344 345
maps += $(autogenMaps)
345 346

  

Also available in: Unified diff