Enrich publication records - strategy #1276
nicolasfranck
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
During indexation of publications in the biblio frontend, every publication record is enriched with data from JCR and ECOOM, by doing a lookup in the mongodb database.
In our effort to move these kind of enrichments from the frontoffice to the backoffice, we invented a new field
called
external_fields
where this data may be stored.But when should this data be added?
external_fields.set
. But that requires a whole setup to fetch records enrich them and send them back. And even then, it is not clear when to do this again. e.g.<id>,external_fields.set,"ecoom-bof-css",1
Also, these enrichments only happen when publication record is updated, not when new enrichment data becomes available. With NATS? That would maybe complicate things, as there are two streams (from backoffice to frontend, and from nats) that may miss each other (a jcr record has an issn for something not yet available in backoffice, but the message needs to be skipped, and can never be fetched again).
I would vote for a save hook.
Beta Was this translation helpful? Give feedback.
All reactions