Map fields for FTS producer, XLS file types
Example input data: stub
Transform function: implementation details
record
Object Piece of data to transform before going to harmonized storage.
Returns Project JSON matching the type fields.
Gets country code from a country name. Contains a map of exceptions.
countryName
String The name of the country
Returns String The ISO 3166-1 country code
Gets NUTS code level from a string
code
String The NUTS code
Returns Number The level of NUTS or null if one can't be extracted
Preprocess budget
Input fields taken from the record
are:
Total amount
Funding Type
Type
record
Object The row received from parsed file
Returns Budget
Preprocess project_locations
Input fields taken from the record
are:
Address
City
Postal code
Country / Territory
NUTS2
Geographical Zone
record
Object The row received from parsed file
Returns Array List of {Location} objects for project_locations
field
Preprocess third_parties
Input fields taken from the record
are:
Name of beneficiary
Coordinator
Address
Country / Territory
record
Object The row received from parsed file
Returns Array List of {ThirdParty} objects for third_parties
field