PMID not imported

Created on 12 March 2024, 8 months ago
Updated 13 March 2024, 8 months ago

Problem/Motivation

I am migrating an old Drupal 7 website that uses the Biblio module and need to import a large database of Biblio Content Items that use the PMID field. Even after configuring PMID > PMID on the settings page /admin/config/bibcite/settings/mapping/csl, the PMID field is not imported. The field is left blank.

Steps to reproduce

Configure PMID > PMID on the settings page /admin/config/bibcite/settings/mapping/csl and then import the source data via dashboard at /upgrade

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States gaelicmichael

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

Comments & Activities

  • Issue created by @gaelicmichael
  • πŸ‡ΊπŸ‡ΈUnited States gaelicmichael

    I has just occurred to me that the page I was using for specifying the mapping of fields when importing is under the CSL (whatever that stands for) tab. There is also a tab titled PubMedId.

    When I select that tab, an error is displayed:
    Error message
    Warning: Undefined array key "types" in Drupal\bibcite\Plugin\BibciteFormat->getTypes() (line 25 of modules/contrib/bibcite/src/Plugin/BibciteFormat.php).
    Warning: foreach() argument must be of type array|object, null given in Drupal\bibcite_entity\Form\MappingForm->buildForm() (line 86 of modules/contrib/bibcite/modules/bibcite_entity/src/Form/MappingForm.php).
    Warning: Undefined array key "fields" in Drupal\bibcite\Plugin\BibciteFormat->getFields() (line 18 of modules/contrib/bibcite/src/Plugin/BibciteFormat.php).
    Warning: foreach() argument must be of type array|object, null given in Drupal\bibcite_entity\Form\MappingForm->buildForm() (line 108 of modules/contrib/bibcite/modules/bibcite_entity/src/Form/MappingForm.php).

    Is this where the mapping is supposed to be provided? Is there a fix for this error?

Production build 0.71.5 2024