1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-11-25 07:10:17 +01:00

csv_metadata_quality/experimental.py: Adjust citation match

We need to match both of these citation fields:

- dc.identifier.citation
- dcterms.bibliographicCitation
This commit is contained in:
Alan Orth 2021-10-06 16:13:10 +03:00
parent 22b359c8a8
commit 54ab869297
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

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])