Problem/Motivation

I've set bundle specific field mapping but values are not getting added as Dois->getDataCiteElementValues does not load bundle specific conf.

Steps to reproduce

Set up data mapping for a bundle, edit a node of that bundle, see fields are not populated.

Proposed resolution

Fix method.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dahousecat created an issue. See original summary.

nickolaj made their first commit to this issue’s fork.

nickolaj’s picture

Status: Active » Needs review

Fixed `getDataCiteElementValues()` to load bundle-specific config by appending the node's bundle ID suffix (e.g., `_article`) to the config keys for creators, publisher, and publication year mappings. The config is saved per-bundle in the admin form but was being read without the bundle suffix.

dahousecat’s picture

Sorry - I didn't attach my patch yesterday!

Since I've already written it here is just in case you still want it as I took as slightly different approach to try and keep things DRY