Works only with Crossref Registration Agency

Created on 5 April 2023, about 1 year ago
Updated 26 April 2023, about 1 year ago

I have tried doi field. It works fine with Crossref but not with other Registration Agencies (like DataCite)
Example
With DOI registered on Crossref it is OK
10.19182/agritrop/00003
10.19182/remvt.31389 : 10.19182
10.5802/jep.112
but
With DOI registered on DataCite
10.18167/DVN1/YGYL3W
10.58048/2263-7664/3681

There are a lot of warnings and no result
Warning: Attempt to read property "author" on array in Drupal\doi_field\Plugin\Field\FieldFormatter\DoiFieldFormatter->getInfo() (line 129 of modules/contrib/doi_field/src/Plugin/Field/FieldFormatter/DoiFieldFormatter.php).
Warning: foreach() argument must be of type array|object, null given in Drupal\doi_field\Plugin\Field\FieldFormatter\DoiFieldFormatter->formatAuthors() (line 211 of modules/contrib/doi_field/src/Plugin/Field/FieldFormatter/DoiFieldFormatter.php).
Warning: Attempt to read property "created" on array in Drupal\doi_field\Plugin\Field\FieldFormatter\DoiFieldFormatter->getInfo() (line 139 of modules/contrib/doi_field/src/Plugin/Field/FieldFormatter/DoiFieldFormatter.php).
Warning: Undefined array key "date-time" in Drupal\doi_field\Plugin\Field\FieldFormatter\DoiFieldFormatter->getInfo() (line 140 of modules/contrib/doi_field/src/Plugin/Field/FieldFormatter/DoiFieldFormatter.php).
Warning: Undefined array key "date-time" in Drupal\doi_field\Plugin\Field\FieldFormatter\DoiFieldFormatter->getInfo() (line 141 of modules/contrib/doi_field/src/Plugin/Field/FieldFormatter/DoiFieldFormatter.php).
Warning: Attempt to read property "URL" on array in Drupal\doi_field\Plugin\Field\FieldFormatter\DoiFieldFormatter->getInfo() (line 145 of modules/contrib/doi_field/src/Plugin/Field/FieldFormatter/DoiFieldFormatter.php).

Can you help me. Thank you

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

User interface

Created by

πŸ‡«πŸ‡·France jeanpaulbouvet

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024