mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2025-06-07 17:41:44 +02: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:
@ -52,7 +52,7 @@ def correct_language(row):
|
|||||||
sample_strings.append(row[label])
|
sample_strings.append(row[label])
|
||||||
|
|
||||||
# Extract citation if it is present
|
# Extract citation if it is present
|
||||||
match = re.match(r"^.*?citation.*$", label)
|
match = re.match(r"^.*?[cC]itation.*$", label)
|
||||||
if match is not None:
|
if match is not None:
|
||||||
sample_strings.append(row[label])
|
sample_strings.append(row[label])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user