eurodatacube / public-collections

Containing meta-data about the data collections available within Euro Data Cube, both core ones as well as the ones provided by users
https://collections.eurodatacube.com/
Apache License 2.0
10 stars 20 forks source link

improve LicenseUrl build in json creation #292

Open dthiex opened 1 year ago

dthiex commented 1 year ago

Currently we create a LicenseUrl link object no matter weather LicenseUrl is defined in the yaml or not. This leads to an empty LicenseUrl as can be seen here: https://collections.eurodatacube.com/stac/tsmn_water_quality_saturday.json

We should only include this in the json if LicenseUrl is defined. Main difficulty here is to format the json correctly so that the comma before the LicenseUrl link object is placed if it's present and not if it's not.

Needs to be done here: https://github.com/eurodatacube/public-collections/blob/main/_build/stac.hbs