Skip to content

Cannot map an entity reference field in a Paragraph to the "author" or any other "name" CSL variable #72

@dara2

Description

@dara2

I have Person data in a Paragraph, in an entity reference field connected to the Person vocabulary. I’d like to map the Person entity reference field in the Paragraph to be the “author” in the citation. I did this:

  • Selected “Map from Entity” in the paragraph reference field.
  • In the Paragraph > Paragraph Type > Person entity reference field > set the CSL field as “author”

But I don’t see any names in the citation block.
This is what I have in my object, and “Dara Virks” is a term within Person taxonomy.
Screenshot 2024-05-03 at 10 33 29 AM
This is how I mapped the Person Name field in my paragraph type:
Screenshot 2024-05-10 at 10 37 50 AM
And this is the setting in my “Person Bundle” paragraph field in the Repository Item content type:
Screenshot 2024-05-03 at 10 35 50 AM

I talked with Akanksha about this and she said:

the author (or any CSL name variable) not being rendered is a bug. This is a problem with using author in anything other than typed relation. Since we use typed relation field for author we never really tested it with vanilla entity reference. In CSL, name fields have to be formatted differently and the formatting is done only for typed relation right now. I’ll raise a quick PR for this later today.

So it sounds like this is a bug. I'm opening this issue in case it helps. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions