Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Assistance] Can we map the same paragraph differently when it's in different fields? #78

Open
rosiel opened this issue Aug 5, 2024 · 0 comments

Comments

@rosiel
Copy link

rosiel commented Aug 5, 2024

Use case:

I want a structured paragraph for titles, including nonsort, title, subtitle, partname, etc. The paragraph may have utility fields like "full title" and "sort title" which are not exposed in the form but are populated based on the other elements, probably during a hook_presave(), and then are used for display / indexed in Solr.

When dealing with an IR, this paragraph might apply both to "the thing itself" (eg a journal article or thesis) and to a related "host" (e.g. the book that contains a book chapter, the conference proceedings volume that holds the conference paper). I'd put them in different fields that both hold the paragraph type.

From what I can see, a Paragraph field can only have "map from referenced entity" and so I can't use a field in the same paragraph type as both the primary title (CSL "title") and the host title (CSL "container-title"). Is that so?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant