Skip to content

improve parsing of references #68

@ferrighi

Description

@ferrighi

references of type:
"references: https://doi.org/abcd (Scientific publication: Dyrrdal, A.V. et al. (2025). Klima i Norge – kunnskapsgrunnlag for klimatilpasning oppdatert i 2025. NCCS-report 1/2025, Norwegian Centre for Climate Services, Oslo, Norway), ...."

fail the comma separated parsing due to the presence of the nested parentheses inside the description. The current regex splits comma only outside parentheses, but this does not work if other nested parentheses are present.

We need to either find a more complex regex or write a better parsing.

https://github.com/steingod/mdharvest/blob/main/src/mdh_modules/nc_to_mmd.py#L835

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions