1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-11-29 09:08:26 +01:00

Compare commits

..

2 Commits

Author SHA1 Message Date
81069259ba
CHANGELOG.md: Add note about bibliographicCitation
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-06 16:16:51 +03:00
54ab869297
csv_metadata_quality/experimental.py: Adjust citation match
We need to match both of these citation fields:

- dc.identifier.citation
- dcterms.bibliographicCitation
2021-10-06 16:13:10 +03:00
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Updated
- Python dependencies
- Regular expression to match all citation fields (dc.identifier.citation as
well as dcterms.bibliographicCitation)
## [0.4.7] - 2021-03-17
### Changed

View File

@ -52,7 +52,7 @@ def correct_language(row):
sample_strings.append(row[label])
# Extract citation if it is present
match = re.match(r"^.*?citation.*$", label)
match = re.match(r"^.*?[cC]itation.*$", label)
if match is not None:
sample_strings.append(row[label])