Auto-populate fields with values (concat) from other properties?

Hi everyone :slight_smile:

Is it possible to auto-populate eg “dcterms:title” by concatenating values from other properties?

For example, if I have an Item of class “Event”, with the following properties:

  1. dcterms:type (Text)
  2. dcterms:date (Numeric: Date interval)

Could I do something like this?
dcterms:title = printf('%s - (%s)', dcterms:type, dcterms:date)?

Thank you very much in advance!

I wanted to do the exact same thing, but couldn’t find anything to do it. We’ve hacked it in for now using our own custom module that listens to the api.hydrate.post event (it also does a lot of other data prep and population, so was needed anyway).

In theory, it wouldn’t be too hard to build a generic module that takes some kind of expression to evaluate and populate on hydrate.