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:
parent
22b359c8a8
commit
54ab869297
@ -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])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user