I'm trying to prepopulate the title (preferred label) on media representation based on the related record so the representation has the same name than the object (because they are scans of the record).
I set this entry in the prepopulate config file :
# what types of records does this rule apply to?
table = ca_object_representations,
restrictToTypes = ,
# mode determines handling of existing values in target element
# can be overwrite, or addIfEmpty
# See the 'target' setting below and http://docs.collectiveaccess.org/wiki/Prepopulate
mode = addIfEmpty,
# What's the prepopulate target?
# This can be an intrinsic field, labels or an attribute.
# Note that if you want to target a List attribute, you have to
# provide a valid list item idno or id for that list as value!
# See http://docs.collectiveaccess.org/wiki/Prepopulate
target = ca_object_representations.preferred_labels,
# skip this rule if expression returns true
# available variable names are bundle names
#skipIfExpression = ,
# content to prepopulate
# (this is a display template evaluated against the current record)
template = ^ca_objects.preferred_labels
But it does'nt work... I'm still having the [BLANK] value. What am i doing wrong ?