Skip to content

TUL/Script for correcting dc.date.issued formats - #239

Open
jr-rk wants to merge 8 commits into
mainfrom
tul/wrong-date-format
Open

TUL/Script for correcting dc.date.issued formats#239
jr-rk wants to merge 8 commits into
mainfrom
tul/wrong-date-format

Conversation

@jr-rk

@jr-rk jr-rk commented Nov 3, 2025

Copy link
Copy Markdown
Contributor
Phases MS MM MK JR JM Total
ETA 0 0 0 0 0 0
Developing 0 0 0 0 0 0
Review 0 0 0 0 0 0
Total - - - - - 0
ETA est. 0
ETA cust. - - - - - 0

Problem description

Wrong date formats (e.g., d.m.yyyy, m.yyyy, ...) corrected by new updater option --fix-date-format.
This mode corrects date formats in existing dc.date.issued fields without using other metadata fields.

Behavior:

  • Null/empty values: Kept untouched
  • Year-only values (YYYY): Kept as-is (e.g., 2020 stays 2020)
  • Full dates with wrong format: Converted to YYYY-MM-DD (e.g., 30.5.20252025-05-30)
  • Partial dates: Converted to year-only format (e.g., 5/20252025)
  • Anomalies: Unparseable dates are logged and reported

(Edited the functionality of add_metadata.py added here)

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants