GetDKAN / dkan2

Deprecated: please use the 2.x branch of the dkan repo
https://github.com/GetDKAN/dkan
GNU General Public License v2.0
18 stars 16 forks source link

Add AmpOust and Socrata transform classes. #269

Closed janette closed 4 years ago

janette commented 4 years ago

AmpOust: Titles with ampersands render as & on Drupal sites, this class will replace "&" with "and" in dataset titles and theme values.

Socrata: Converts the url identifiers to standard ids. Adds titles to distributions if they are missing. And adds a dummy keyword if the keyword array is empty.

QA steps

dktl drush dkan-harvest:register '{"identifier":"tempe","extract":{"type":"\\Harvest\\ETL\\Extract\\DataJson","uri":"https://data.tempe.gov/data.json"},"transforms":["\\Drupal\\dkan_harvest\\Harvest\\Transform\\AmpOust"],"load":{"type":"\\Drupal\\dkan_harvest\\Load\\Dataset"}}'

dktl drush dkan-harvest:run tempe
dkan-harvest:register '{"identifier":"batonrouge","extract":{"type":"\\Harvest\\ETL\\Extract\\DataJson","uri":"https://data.brla.gov/data.json"},"transforms":["\\Drupal\\dkan_harvest\\Transform\\Socrata"],"load":{"type":"\\Drupal\\dkan_harvest\\Load\\Dataset"}}'

dktl drush dkan-harvest:run batonrouge

Needs tests

kimwdavidson commented 4 years ago

should be a recipe. closing.