Skip to content

Latest commit

 

History

History
149 lines (80 loc) · 2.95 KB

2014tc16rftn002-xls.md

File metadata and controls

149 lines (80 loc) · 2.95 KB

2014tc16rftn002XlsTransform

Map fields for 2014tc16rftn002 producer, XLS file types

Example input data: stub

Transform function: implementation details

Parameters

  • record Object Piece of data to transform before going to harmonized storage.

Returns Project JSON matching the type fields.

getBudget

Preprocess budget.

Input fields taken from the record are:

  • Total of eligible expenditure
  • ERDF expenditure allocated

Parameters

  • record Object The row received from parsed file

Returns Budget

getDescription

Preprocess description.

Input fields taken from the record are:

  • Acronym
  • Summary

Parameters

  • record Object The row received from parsed file

Returns String

getProjectId

Preprocess project_id.

Input fields taken from the record are:

  • Operation code nr.

Parameters

  • record Object The row received from parsed file

Returns String

getCodeByCountry

Gets country code from a country name.

Parameters

  • countryName String The name of the country

Returns String The ISO 3166-1 country code

getLocations

Preprocess project_locations.

Input fields taken from the record are:

  • Country

Parameters

  • record Object The row received from parsed file

Returns Array<Location>

getThemes

Preprocess themes.

Input fields taken from the record are:

  • Programme specific objective

Parameters

  • record Object The row received from parsed file

Returns Array<String>

getThirdParties

Preprocess third_parties.

Input fields taken from the record are:

  • Lead partner name
  • Lead partner location region
  • Country

Parameters

  • record Object The row received from parsed file

Returns Array<ThirdParty>

getTimeframe

Preprocess timeframe.

Input fields taken from the record are:

  • Start date
  • End date

Parameters

  • record Object The row received from parsed file

Returns Timeframe

getTitle

Preprocess title.

Input fields taken from the record are:

  • Operation name

Parameters

  • record Object The row received from parsed file

Returns String