Skip to content

Latest commit

 

History

History
168 lines (94 loc) · 3.56 KB

2014tc16rftn003-xls.md

File metadata and controls

168 lines (94 loc) · 3.56 KB

2014tc16rftn003XlsTransform

Map fields for 2014tc16rftn003 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 eligible expenditure allocated to the operation
  • Union co-financing rate in %

Parameters

  • record Object The row received from parsed file

Returns Budget

getDescription

Preprocess description.

Input fields taken from the record are:

  • Priority axis
  • Operation summary
  • Programme & operation specific objective
  • Union co-financing rate in % (average as in CP)

Parameters

  • record Object The row received from parsed file

Returns String

getProjectId

Preprocess project_id.

Input fields taken from the record are:

  • Operation name

Parameters

  • record Object The row received from parsed file

Returns String

getNutsCodeLevel

Gets NUTS code level from a string.

Parameters

Returns Number The level of NUTS or null if one can't be extracted

getLocations

Preprocess project_locations.

Input fields taken from the record are:

  • Country
  • Town
  • Operation postcode
  • NUTS1
  • NUTS2
  • NUTS3

Parameters

  • record Object The row received from parsed file

Returns Array<Location>

getThemes

Preprocess themes.

Input fields taken from the record are:

  • Programme's investment priority / thematic priority

Parameters

  • record Object The row received from parsed file

Returns Array<String>

getThirdParties

Preprocess third_parties.

Input fields taken from the record are:

  • Country
  • Beneficiary name in English
  • Has the lead of the operation (Y/N)

Parameters

  • record Object The row received from parsed file

Returns Array<ThirdParty>

formatDate

Preprocess/format date.

Parameters

  • date Date DateSupported formats:- DD/MM/YYYY

Returns Date The date formatted into an ISO 8601 date format

getTimeframe

Preprocess timeframe.

Input fields taken from the record are:

  • Operation start date
  • Operation 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