SIOS-Svalbard / Nansen_Legacy_template_generator

GNU General Public License v3.0
2 stars 0 forks source link

Dwc Fixes #2 #22

Closed lhmarsden closed 1 year ago

lhmarsden commented 1 year ago

A new configuration has been added for Darwin Core terms.

The Darwin core terms are pulled from a main source file (csv).

They are also pulled for each registered extension (xml files) because not all terms in Darwin Core Archive registered extensions are Darwin Core terms.

For consistency, I have stored them in JSON. I have reformatted the CF standard names and 'other fields' in the same way, so they can be handled more easily in the same way. Each term has 'id', 'description', 'valid', and 'format' fields as minimum.

A lot of code has had to be rewritten to account for these changes.

The make_xlsx.py file has been removed. I have been editing and adding to this for a long time, but it has not really been fit for purpose. This has been replaced by a 'create_template.py' file.

The logging system will also need to be restructured to account for these changes.