openmind_generator issueshttps://gitlab.gwdg.de/MPIWG/central-services/drupal/openmind_generator/-/issues2018-06-28T11:32:19Zhttps://gitlab.gwdg.de/MPIWG/central-services/drupal/openmind_generator/-/issues/8convert OpenMind date fields in migration2018-06-28T11:32:19ZRobert Castiescasties@mpiwg-berlin.mpg.deconvert OpenMind date fields in migrationThe OpenMind date fields are rather complex objects that are exported in the XML as JSON:
```json
{
"additional_info": "time Ibn Sīnā was in Jurjān",
"calendar_type": "Julian",
"state": "known",
"from": {
"dayOfM...The OpenMind date fields are rather complex objects that are exported in the XML as JSON:
```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.