ISBN in certain cases null when using Pivot

Created on 26 March 2019, over 5 years ago
Updated 20 June 2023, about 1 year ago

Hi,

I'm currently using this module for the first time on a Drupal 8 project, and I like its integration with the metatag module. For my project I'm using the Book sub-module to markup a node type and I encountered a problem within my use case with the ISBN field.

The books on my site have two separate ISBN fields. One for the old ISBN-10 and one for current ISBN-13. On the metatag configuration page, in the ISBN field under WorkExample with Pivot enabled, I have entered the tokens as follows:

[node:field_isbn_10],[node:field_isbn_13]

In the following cases the ISBN field is correctly filled in the LD+JSON output:

  1. When ISBN-10 has a value, but ISBN-13 has not.
  2. When ISBN-10 and ISBN-13 have a value. In this case WorkExample has 2 separate objects with each a different ISBN value.

But when ISBN-10 has no value, but ISBN-13 does, the LD+JSON output gives ISBN a null value.

Is this by design or a bug?

Kind regards,

Suraj

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands SurajHo

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024