convert OpenMind date fields in migration
The OpenMind date fields are rather complex objects that are exported in the XML as JSON:
{
"additional_info": "time Ibn Sīnā was in Jurjān",
"calendar_type": "Julian",
"state": "known",
"from": {
"dayOfMonth": 7,
"century": 11,
"month": 1,
"ambiguity": 0,
"year": 1012,
"dayOfYear": 7
},
"input_form": "Range",
"until": {
"dayOfMonth": 6,
"century": 11,
"month": 1,
"ambiguity": 0,
"year": 1015,
"dayOfYear": 6
}
}
We should have a migration processing step to convert this JSON into a Drupal date field.
As a first step we should convert all dates to (normal) Gregorian calendar dates and have an additional formatter to display both Gregorian and Hijra dates.
Edited by Robert Casties