diff --git a/src/Serializer/ElifeAssessmentNormalizer.php b/src/Serializer/ElifeAssessmentNormalizer.php index 5b2c2fef..dd94d8da 100644 --- a/src/Serializer/ElifeAssessmentNormalizer.php +++ b/src/Serializer/ElifeAssessmentNormalizer.php @@ -54,6 +54,12 @@ public function normalize($object, $format = null, array $context = []) : array return $this->normalizer->normalize($block, $format, $context); }) ->toArray(); + if ($articleSection->getDoi() !== null) { + $data['doi'] = $articleSection->getDoi(); + } + if ($articleSection->getId() !== null) { + $data['id'] = $articleSection->getId(); + } } if ($object->getSignificance() !== null) { $data['significance'] = $object->getSignificance();