1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-06-09 13:25:08 +02:00

csv_metadata_quality/app.py: Match dcterms.issued for dates

We used to only check fields that had "date" in their name because
we were using DSpace's default dc.date.* fields. Now we are using
dcterms.issued so I will add that one as well.
This commit is contained in:
Alan Orth 2021-02-28 15:11:06 +02:00
parent d76e72532a
commit dd2cfae047
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -142,7 +142,7 @@ def run(argv):
df[column] = df[column].apply(check.isbn)
# Check: invalid date
match = re.match(r"^.*?date.*$", column)
match = re.match(r"^.*?(date|dcterms\.issued).*$", column)
if match is not None:
df[column] = df[column].apply(check.date, field_name=column)